With arduino I am sending in to domoticz some data to TEXT sensor.
I am using the following code to trigger if text sensor has some changes. ( rewriting the code now )
Code: Select all
if (devicechanged[sensorLogRF] == "[22:51:48] 610ecc_10000001") then
if (otherdevices['Switch'] == 'Off') then
commandArray[getdevname4idx(4)] = "On"
end
if (otherdevices['Switch'] == 'On') then
commandArray[getdevname4idx(4)] = "Off"
end
print("Rem1")
end
Any ideas how to trim the sensorLogRF device ?
Code: Select all
if (devicechanged[sensorLogRF] == "*10000001") then
Any idas to try?