I've already found a script that splits the TemperatureHumidty from my Aeotec MultiSensor6 into 2 dummy sensors:
Code: Select all
commandArray = {}
-- Bathroom
sensorTemperature, sensorHumidity, sensorHumidityStatus = otherdevices_svalues['MS_Badkamer_TempHum']:match("([^;]+);([^;]+);([^;]+)")
table.insert (commandArray, { ['UpdateDevice'] = string.format("%d|0|%.2f", otherdevices_idx['MS_Badkamer_Temp'], tonumber(sensorTemperature)) })
table.insert (commandArray, { ['UpdateDevice'] = string.format("%d|%d|%d", otherdevices_idx['MS_Badkamer_Hum'], sensorHumidity, sensorHumidityStatus) })
return commandArray
MS_Badkamer_Temp = Dummy Temperature
MS_Badkamer_Hum = Dummy Humidity
But this is constantly updating the dummy sensors, causing a lot of lines in the logs. I would like to have it update only when the value's of the seperate dummy sensors are different from the MultiSensor 6.
Can someone help me out with this?