Powerfox Basic Flow for Homeassistant - get W purchased

This flow is for Nodered with/in Homeassistant !

With this flow you can get the actuall W you purchase from your energy supplier.

In "http-request" you have to enter your Powerfox "user" and "password".

And in "Powerfox Watt" you can Enter the Entity Name vor Homeassistant !!

[{"id":"8564acac2af8092f","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"d5c9ea89d247b772","type":"json","z":"8564acac2af8092f","name":"","property":"payload","action":"","pretty":false,"x":870,"y":460,"wires":[["b0df7c2831a8a983"]]},{"id":"b0df7c2831a8a983","type":"change","z":"8564acac2af8092f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.Watt","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":460,"wires":[["04c5b6af2bb97e80"]]},{"id":"04c5b6af2bb97e80","type":"function","z":"8564acac2af8092f","name":"","func":"msg.payload = parseFloat((msg.payload).toFixed(2));\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1240,"y":460,"wires":[["b9054a60ac2aaab5"]]},{"id":"b9054a60ac2aaab5","type":"ha-entity","z":"8564acac2af8092f","name":"Powerfox Watt","server":"7640cb9d.178d04","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"netz_bezug_watt_aktuell"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"msg","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"$entity().state ? \"on\": \"off\"","outputPayloadType":"jsonata","x":1430,"y":460,"wires":[["a316803714cf47c6"]]},{"id":"a316803714cf47c6","type":"debug","z":"8564acac2af8092f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1610,"y":460,"wires":[]},{"id":"59a0c3d4bcc8dc29","type":"inject","z":"8564acac2af8092f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"date","x":520,"y":460,"wires":[["1ecbc9b07e7c342b"]]},{"id":"1ecbc9b07e7c342b","type":"http request","z":"8564acac2af8092f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://backend.powerfox.energy/api/2.0/my/main/current","tls":"","persist":false,"proxy":"","authType":"basic","credentials":{},"x":710,"y":460,"wires":[["d5c9ea89d247b772"]]},{"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 3 years, 7 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

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

Tags

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