Read Data from Piko inverter and post to mqtt

Read HTML Page from inverter and parse current power production values.

[{"id":"c4b2aad4.3b4d58","type":"mqtt-broker","broker":"docker","port":"1883","clientid":"nodered"},{"id":"2745ae26.d8ba52","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":false,"x":107,"y":51,"z":"32880b57.cd77f4","wires":[["f63842f.f09c7c"]]},{"id":"cb8dd3fb.34723","type":"html","name":"","tag":"body > form > font > table:nth-child(2) > tr:nth-child(4) > td:nth-child(3)","ret":"text","as":"multi","x":325,"y":311,"z":"32880b57.cd77f4","wires":[["59b2d597.a64d2c"]]},{"id":"f63842f.f09c7c","type":"http request","name":"","method":"GET","ret":"txt","url":"http://192.168.187.39","x":180,"y":168,"z":"32880b57.cd77f4","wires":[["cb8dd3fb.34723","cf872264.3078e","556e6c6c.aa9194"]]},{"id":"e68a1edb.1975e","type":"debug","name":"","active":true,"console":"false","complete":"false","x":842,"y":159,"z":"32880b57.cd77f4","wires":[]},{"id":"cf872264.3078e","type":"html","name":"","tag":"body > form > font > table:nth-child(2) > tr:nth-child(6) > td:nth-child(6)","ret":"text","as":"multi","x":345,"y":430,"z":"32880b57.cd77f4","wires":[["f05deb53.0fa218"]]},{"id":"556e6c6c.aa9194","type":"html","name":"","tag":"body > form > font > table:nth-child(2) > tr:nth-child(4) > td:nth-child(6)","ret":"text","as":"multi","x":329,"y":504,"z":"32880b57.cd77f4","wires":[["6f1bb75a.90e448"]]},{"id":"64e400cd.9b1c","type":"mqtt out","name":"","topic":"piko/wr/momentan","qos":"0","retain":"false","broker":"c4b2aad4.3b4d58","x":910,"y":312,"z":"32880b57.cd77f4","wires":[]},{"id":"f05deb53.0fa218","type":"template","name":"toJson","field":"payload","format":"handlebars","template":"{ \"wr\": 1, \"val\": {{payload}} }","x":707,"y":430,"z":"32880b57.cd77f4","wires":[["c823c52a.37dc38"]]},{"id":"c823c52a.37dc38","type":"mqtt out","name":"","topic":"piko/wr/tag","qos":"0","retain":"false","broker":"c4b2aad4.3b4d58","x":897,"y":430,"z":"32880b57.cd77f4","wires":[]},{"id":"d32a02f9.2cd6","type":"mqtt out","name":"","topic":"piko/wr/gesamt","qos":"0","retain":"false","broker":"c4b2aad4.3b4d58","x":914,"y":507,"z":"32880b57.cd77f4","wires":[]},{"id":"6f1bb75a.90e448","type":"template","name":"toJson","field":"payload","format":"handlebars","template":"{ \"wr\": 1, \"val\": {{payload}} }","x":705,"y":507,"z":"32880b57.cd77f4","wires":[["d32a02f9.2cd6"]]},{"id":"59b2d597.a64d2c","type":"template","name":"toJson","field":"payload","format":"handlebars","template":"{ \"wr\": 1, \"val\": {{payload}} }","x":696,"y":311,"z":"32880b57.cd77f4","wires":[["64e400cd.9b1c"]]},{"id":"550df25c.aaf20c","type":"mqtt in","name":"","topic":"piko/#","broker":"c4b2aad4.3b4d58","x":572,"y":132,"z":"32880b57.cd77f4","wires":[["e68a1edb.1975e"]]},{"id":"a4ce84e6.5b3178","type":"mqtt in","name":"","topic":"hm/#","broker":"c4b2aad4.3b4d58","x":570,"y":67,"z":"32880b57.cd77f4","wires":[["e68a1edb.1975e"]]}]
MehrCurry

Flow Info

created 2 years, 1 month ago

Node Types

Core
  • debug (x1)
  • html (x3)
  • http request (x1)
  • inject (x1)
  • mqtt in (x2)
  • mqtt out (x3)
  • mqtt-broker (x1)
  • template (x3)

Tags

  • solar
  • mqtt
  • piko
  • inverter
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option