05.07.2022, 06:36
Add before multiply function:
Then modify mqtt_to_object_conv table:
Code:
function onofftobool(payload)
return tostring(payload):lower() == 'on'
end
Then modify mqtt_to_object_conv table:
Code:
mqtt_to_object_conv = {
['shellies/shellyplug-s-D9AA39/relay/0'] = onofftobool,
}