I suggest to install it, as I think it is an excellent companion of Domoticz (or any other Home Automation system).
Install this as well, as it will extend your possibilities.
Add the hardware in Domoticz as well.
I also suggest to install MQTT Explorer on your laptop/desktop. Excellent tool.
If you have installed both Node Red and MQTT (also in Domoticz) the flow is ready.
If you have installed both Node Red and Mosquitto, you may want to import this flow:
Code: Select all
[{"id":"53864ab3.6d5304","type":"tab","label":"Temperature2Domoticz","disabled":false,"info":""},{"id":"5490d5ff.8a5774","type":"inject","z":"53864ab3.6d5304","name":"Inject 5 Minutes","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"300","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":570,"y":160,"wires":[["eaf2f3b6.01dd48"]]},{"id":"eaf2f3b6.01dd48","type":"http request","z":"53864ab3.6d5304","name":"Get Temperature","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://www.temperatur.nu/termo/abro/temp.txt","tls":"","persist":false,"proxy":"","authType":"","x":810,"y":160,"wires":[["66d5458.1a526bc","4fbd99e.7a945e8"]]},{"id":"66d5458.1a526bc","type":"debug","z":"53864ab3.6d5304","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1030,"y":220,"wires":[]},{"id":"4fbd99e.7a945e8","type":"function","z":"53864ab3.6d5304","name":"Prepare for Domoticz","func":"msg.payload = {\"command\":\"udevice\",\"idx\":11,\"nvalue\":0,\"svalue\":msg.payload.toString()};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1060,"y":160,"wires":[["1ccce439.04623c","844c19c8.4eba3"]]},{"id":"1ccce439.04623c","type":"debug","z":"53864ab3.6d5304","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1290,"y":220,"wires":[]},{"id":"844c19c8.4eba3","type":"mqtt out","z":"53864ab3.6d5304","name":"","topic":"domoticz/in","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"f9f13036.e28b58","x":1290,"y":160,"wires":[]},{"id":"f9f13036.e28b58","type":"mqtt-broker","name":"localhost","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Do not forget to replace the IDX of the virtual temperature sensor with your IDX (currently 11).