powerfox poweropti - Electricity meter flow
Read out the poweropti power meter from Powerfox with a HTTP Request and transfer this to MQTT. Please, use your login data which that you registered with. Additional information about dataformat and information can be found under: https://www.powerfox.energy/wp-content/uploads/2020/05/powerfox-Kunden-API.pdf
[{"id":"a5de0ef7.06a18","type":"http request","z":"7f4d3683.8a0738","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://backend.powerfox.energy/api/2.0/my/main/current","tls":"","persist":false,"proxy":"","authType":"basic","x":370,"y":1560,"wires":[["56285c28.ff8da4"]]},{"id":"e7dca8e7.619a58","type":"inject","z":"7f4d3683.8a0738","name":"make request","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":160,"y":1560,"wires":[["a5de0ef7.06a18"]]},{"id":"56285c28.ff8da4","type":"json","z":"7f4d3683.8a0738","name":"","property":"payload","action":"","pretty":false,"x":550,"y":1560,"wires":[["3b43cf16.33829"]]},{"id":"3b43cf16.33829","type":"split","z":"7f4d3683.8a0738","name":"","splt":",","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"key","x":700,"y":1560,"wires":[["825cc5de.ec63e8"]]},{"id":"825cc5de.ec63e8","type":"change","z":"7f4d3683.8a0738","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"\"stromzaehler_status/\" & parts.key","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":1560,"wires":[["2f651988.b901c6"]]},{"id":"e79bd4bd.2169d8","type":"mqtt out","z":"7f4d3683.8a0738","name":"","topic":"","qos":"0","retain":"true","broker":"ace8299e.ebc148","x":1290,"y":1560,"wires":[]},{"id":"2f651988.b901c6","type":"calculator","z":"7f4d3683.8a0738","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"rdec","constant":"0","round":false,"decimals":0,"x":1100,"y":1560,"wires":[["e79bd4bd.2169d8"]]},{"id":"ace8299e.ebc148","type":"mqtt-broker","name":"Mqtt Broker","broker":"192.168.0.10","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]