Sonoff POW setup with the Grafana/Raspberry image


Sonoff POW setup with the Grafana/Raspberry image

 

Gear that can be purchased:

  • Sonoff mixed search on Ebay: https://goo.gl/PHjssZ
  • Sonoff the one used in the video and that I use: https://goo.gl/p6xuaH
  • FTDI adapter: https://goo.gl/PrGULv
  • Wires to adapter: https://goo.gl/4oHTuu
  • Header pins: https://goo.gl/gvpxHz

 

Link on how to install the Tasmota software

Code used in node-red: (Just import via clipboard in node red to get it working)

[{“id”:”1c648404.0b859c”,”type”:”debug”,”z”:”56316c98.1b7e74″,”name”:””,”active”:false,”console”:”false”,”complete”:”false”,”x”:586,”y”:123,”wires”:[]},{“id”:”42135153.0281c”,”type”:”mqtt in”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”tele/sonoff2/ENERGY”,”qos”:”2″,”broker”:”6c4a2646.3e8b18″,”x”:316.99999618530273,”y”:232.99999523162842,”wires”:[[“1c648404.0b859c”,”2e2d9dd3.5a3c32″]]},{“id”:”d7e022e.4780ae”,”type”:”mqtt in”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”stat/sonoff1/POWER”,”qos”:”2″,”broker”:”6c4a2646.3e8b18″,”x”:316.9999771118164,”y”:323.99998474121094,”wires”:[[“ae7e348d.4d0068”]]},{“id”:”3df89715.7e09b8″,”type”:”mqtt out”,”z”:”56316c98.1b7e74″,”name”:”SONoff2″,”topic”:”cmnd/sonoff2/power”,”qos”:””,”retain”:””,”broker”:”6c4a2646.3e8b18″,”x”:586.5,”y”:534,”wires”:[]},{“id”:”e1f7f95a.48cd88″,”type”:”inject”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”on”,”payload”:”on”,”payloadType”:”str”,”repeat”:””,”crontab”:””,”once”:false,”x”:300.5,”y”:474,”wires”:[[“3df89715.7e09b8”]]},{“id”:”d3442d23.abb92″,”type”:”inject”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”OFF”,”payload”:”toggle”,”payloadType”:”str”,”repeat”:””,”crontab”:””,”once”:false,”x”:305.5,”y”:545,”wires”:[[“3df89715.7e09b8”]]},{“id”:”dcf18792.964548″,”type”:”mqtt in”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”stat/sonoff2/POWER”,”qos”:”2″,”broker”:”6c4a2646.3e8b18″,”x”:321.9999771118164,”y”:380.99998474121094,”wires”:[[“ae7e348d.4d0068”]]},{“id”:”d0f0a5bb.7088f8″,”type”:”mqtt in”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”tele/sonoff1/ENERGY”,”qos”:”2″,”broker”:”6c4a2646.3e8b18″,”x”:310.99999618530273,”y”:163.99999904632568,”wires”:[[“1c648404.0b859c”]]},{“id”:”ae7e348d.4d0068″,”type”:”debug”,”z”:”56316c98.1b7e74″,”name”:””,”active”:true,”console”:”false”,”complete”:”false”,”x”:554,”y”:381,”wires”:[]},{“id”:”2e2d9dd3.5a3c32″,”type”:”json”,”z”:”56316c98.1b7e74″,”name”:””,”x”:532.5,”y”:230,”wires”:[[“3f2aa682.fbb8da”,”30ff9ca8.302e94″,”75967807.ddb828″]]},{“id”:”3f2aa682.fbb8da”,”type”:”influxdb out”,”z”:”56316c98.1b7e74″,”influxdb”:”6befdff9.f9215″,”name”:””,”measurement”:”sonoff2″,”x”:779.5,”y”:194,”wires”:[]},{“id”:”30ff9ca8.302e94″,”type”:”change”,”z”:”56316c98.1b7e74″,”name”:””,”rules”:[{“t”:”set”,”p”:”payload”,”pt”:”msg”,”to”:”payload.Power”,”tot”:”msg”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:720,”y”:274,”wires”:[[“75967807.ddb828″,”fe0749a4.78b4f8”]]},{“id”:”75967807.ddb828″,”type”:”debug”,”z”:”56316c98.1b7e74″,”name”:””,”active”:true,”console”:”false”,”complete”:”false”,”x”:997.5,”y”:261,”wires”:[]},{“id”:”fe0749a4.78b4f8″,”type”:”mqtt out”,”z”:”56316c98.1b7e74″,”name”:””,”topic”:”emon/sonoff/2″,”qos”:”0″,”retain”:””,”broker”:”6c4a2646.3e8b18″,”x”:981.5,”y”:346,”wires”:[]},{“id”:”6c4a2646.3e8b18″,”type”:”mqtt-broker”,”z”:””,”broker”:”localhost”,”port”:”1883″,”clientid”:””,”usetls”:false,”compatmode”:true,”keepalive”:”60″,”cleansession”:true,”willTopic”:””,”willQos”:”0″,”willPayload”:””,”birthTopic”:””,”birthQos”:”1″,”birthPayload”:””},{“id”:”6befdff9.f9215″,”type”:”influxdb”,”z”:””,”hostname”:”127.0.0.1″,”port”:”8086″,”protocol”:”http”,”database”:”powerwall”,”name”:””,”usetls”:false,”tls”:””}]

Liked it? Take a second to support daromer on Patreon!