Powerfox Basic Flow for Homeassistant

https://community.home-assistant.io/t/poweropti-powerfox-powermeter-integration/344450

[{"id":"53f6c3844e89b0c0","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"599cb64d525d9217","type":"ha-entity","z":"53f6c3844e89b0c0","name":"Powerfox Stromzähler power","server":"7640cb9d.178d04","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"powerfox_meter_power"},{"property":"device_class","value":"power"},{"property":"icon","value":"mdi:transmission-tower"},{"property":"unit_of_measurement","value":"W"},{"property":"state_class","value":"measurement"},{"property":"last_reset","value":""}],"state":"payload.Watt","stateType":"jsonata","attributes":[{"property":"power","value":"payload.Watt","valueType":"jsonata"},{"property":"timestamp","value":"payload.Timestamp","valueType":"jsonata"},{"property":"friendly_name","value":"Powerfox Stromzähler power","valueType":"str"},{"property":"energy","value":"payload.A_Plus","valueType":"jsonata"}],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"$entity().state ? \"on\": \"off\"","outputPayloadType":"jsonata","x":1180,"y":380,"wires":[["bb0a25babedec5dc"]]},{"id":"bb0a25babedec5dc","type":"debug","z":"53f6c3844e89b0c0","d":true,"name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.Watt","targetType":"msg","statusVal":"","statusType":"auto","x":1430,"y":380,"wires":[]},{"id":"6e9a1b0ee8b3f0c8","type":"json","z":"53f6c3844e89b0c0","name":"","property":"payload","action":"","pretty":false,"x":870,"y":460,"wires":[["97d088b4836d61a5","599cb64d525d9217"]]},{"id":"92c468da20c827a3","type":"http request","z":"53f6c3844e89b0c0","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://backend.powerfox.energy/api/2.0/my/main/current?unit=kwh","tls":"","persist":false,"proxy":"","authType":"basic","senderr":false,"x":710,"y":460,"wires":[["6e9a1b0ee8b3f0c8"]]},{"id":"97d088b4836d61a5","type":"ha-entity","z":"53f6c3844e89b0c0","name":"Powerfox Stromzähler","server":"7640cb9d.178d04","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"powerfox_meter_energy"},{"property":"device_class","value":"energy"},{"property":"icon","value":"mdi:transmission-tower-import"},{"property":"unit_of_measurement","value":"kWh"},{"property":"state_class","value":"total"},{"property":"last_reset","value":"2019-06-01T00:00:00+00:00"}],"state":"payload.A_Plus","stateType":"jsonata","attributes":[{"property":"energy","value":"payload.A_Plus","valueType":"jsonata"},{"property":"timestamp","value":"payload.Timestamp","valueType":"jsonata"},{"property":"friendly_name","value":"Powerfox Stromzähler","valueType":"str"},{"property":"power","value":"payload.Watt","valueType":"jsonata"}],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"$entity().state ? \"on\": \"off\"","outputPayloadType":"jsonata","x":1160,"y":460,"wires":[["a558a365bd91a972"]]},{"id":"2f33408d4ebc36c4","type":"inject","z":"53f6c3844e89b0c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"date","x":520,"y":460,"wires":[["92c468da20c827a3"]]},{"id":"a558a365bd91a972","type":"debug","z":"53f6c3844e89b0c0","d":true,"name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.A_Plus","targetType":"msg","statusVal":"","statusType":"auto","x":1440,"y":460,"wires":[]},{"id":"7640cb9d.178d04","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]

Flow Info

Created 2 years, 6 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x2)
  • http request (x1)
  • inject (x1)
  • json (x1)
Other
  • ha-entity (x2)
  • server (x1)
  • tab (x1)

Tags

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