Is there something like a valuechanged command in LUA which can be used instead of devicechanged? My problem is this. I'm using a a FosBaby camera with thermometer in my babyroom. Through a bash script I collect the current temperature every minute to update a virtual sensor in Domoticz. If the temperature drops below 16C the heating system is turned on.
Right now I use this line
Code: Select all
if (devicechanged['Temperatuur babykamer_Temperature']) < 16 then
commandArray['Verwarming Comfort']='On'