I am trying to send a daily snapshot of the vivarium temperature and humidity to my whatsapp just to give me peace of mind that the viv is maintaining a good temperature. Eventually I will have it message me if the temp gets too low or too high, but I also want a daily snapshot.
I started by trying to use the format node, and taking the entities in there. I found something similar in the post below.
But when I hit inject, the text comes out okay, but the entity values are not showing. I have tried with a few temp and humidity sensors I have set up but nothing. There is no error message in the debug, It just shows the output string, with no entity values between just a gap…
I’ll attempt to put the node red flow on here. (dont shoot me if I get it wrong im a noob)
Thanks in advance.
Rob
[{"id":"373a2ab4.29c286","type":"inject","z":"eab07eeee23ea2ba","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":1240,"wires":[["9646d923.432558"]]},{"id":"9646d923.432558","type":"api-current-state","z":"eab07eeee23ea2ba","name":"Reggy_Temp","server":"d2541961.8b4938","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.coco_temperature","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":230,"y":1300,"wires":[["d92bf2f0.d578"]]},{"id":"d92bf2f0.d578","type":"api-current-state","z":"eab07eeee23ea2ba","name":"Reggy_Humid","server":"d2541961.8b4938","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.coco_humidity","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":400,"y":1360,"wires":[["67634f6c.20eb7"]]},{"id":"3e380017.db9a8","type":"debug","z":"eab07eeee23ea2ba","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":1500,"wires":[]},{"id":"67634f6c.20eb7","type":"template","z":"eab07eeee23ea2ba","name":"format it","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Reggies Viv Temperature is {{Reggy_Temp}} 'C and Humidity is {{Reggy_Humid}}%","output":"str","x":540,"y":1420,"wires":[["3e380017.db9a8"]]},{"id":"d2541961.8b4938","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]