Flow to get notification when Netatmo thermostat is set in Manual mode

This flow check every minute if the Netatmo thermostat has been set in Manual mode and send a notification to Telegram

[{"id":"135f727.28c7b8e","type":"inject","z":"8413c094.e4f28","name":"1min","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":1660,"wires":[["22382df3.e97e92"]]},{"id":"22382df3.e97e92","type":"get thermostats data","z":"8413c094.e4f28","name":"","creds":"62882e04.588ee","x":220,"y":1720,"wires":[["6e16d8b.714f428"]]},{"id":"6e16d8b.714f428","type":"rbe","z":"8413c094.e4f28","name":"changed?","func":"rbe","gap":"","start":"","inout":"out","property":"payload.devices[0].modules[0].setpoint.setpoint_mode","x":420,"y":1720,"wires":[["7073e892.cf8cf8"]]},{"id":"7073e892.cf8cf8","type":"switch","z":"8413c094.e4f28","name":"manual?","property":"payload.devices[0].modules[0].setpoint.setpoint_mode","propertyType":"msg","rules":[{"t":"eq","v":"manual","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":560,"y":1720,"wires":[["324e270e.ff6d48"]]},{"id":"324e270e.ff6d48","type":"function","z":"8413c094.e4f28","name":"Termostato manuale","func":"\n    msg.payload = {chatId :2285843, type : 'message', content : \"Termostato impostato su Manuale, a \"+msg.payload.devices[0].modules[0].setpoint.setpoint_temp+\" °C. La temperatura attuale rilevata è di \"+msg.payload.devices[0].modules[0].measured.temperature+\" °C.\"}\n     \n    return msg;\n    \n\n\n\n\n","outputs":1,"noerr":0,"x":620,"y":1640,"wires":[["58588dde.747944"]]},{"id":"58588dde.747944","type":"telegram sender","z":"8413c094.e4f28","name":"messaggio Telegram","bot":"599e5277.3d6a3c","x":860,"y":1640,"wires":[[]]},{"id":"62882e04.588ee","type":"NetatmoConfigNode","z":"","client_id":"xxxxxxxxxxx","client_secret":"xxxxxxxxxxxxxxxx","username":"[email protected]","password":"xxxxxxxxxx","device_id":"xx:xx:xx:xx:xx:xx"},{"id":"599e5277.3d6a3c","type":"telegram bot","z":"","botname":"@_bot","usernames":"@xxxxxxxx","chatids":"111111","baseapiurl":"","updatemode":"polling","pollinterval":"3000","usesocks":false,"sockshost":"","socksport":"","socksusername":"","sockspassword":"","bothost":"","localbotport":"","publicbotport":"","privatekey":"","certificate":"","useselfsignedcertificate":false,"verboselogging":false}]

Flow Info

Created 5 years, 9 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • function (x1)
  • inject (x1)
  • rbe (x1)
  • switch (x1)
Other

Tags

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