26.12.2020, 16:28
Modify the script around line 108, change this:
To this:
Also make sure that Shelly MQTT address is not 127.0.0.1 but LM IP address.
Code:
if type(value) == 'boolean' then
value = value and 1 or 0
end
To this:
Code:
if type(value) == 'boolean' then
value = value and 'on' or 'off'
end
Also make sure that Shelly MQTT address is not 127.0.0.1 but LM IP address.