Channel identifier:
mode
State:
tuya/thermostat/dsp/4/state
Example output: {"4":"auto"} Possible values: auto/temp_auto/holiday/manual/comfort/eco/BOOST
Command:
tuya/thermostat/dps/4/command
Channel identifier:
setpoint
State:
tuya/thermostat/dsp/2/state
Example output: {"2": 220}
Command:
tuya/thermostat/dps/2/command
Incoming Value Transformations:
JS:tuya-in.js
Outgoing Value Transformation:
JS:tuya-out.js
Channel identifier:
temperature
State:
tuya/thermostat/dsp/3/state
Incoming Value Transformations:
JS:tuya-in.js
Channel identifier:
valve_percent
State:
tuya/thermostat/dsp/109/state
Command:
tuya/thermostat/dps/109/command
tuya-in.js:
(function(i) {
return (i / 10)
})(input)
tuya-out.js:
(function(i) {
return (i * 10)
})(input)
String Radiator_Mode "Mode" <radiator> { channel="mqtt:topic:home:zgw1dev1:mode" }
Number Radiator_Setpoint "Temperature setpoint [%.1f °C]" <radiator> { channel="mqtt:topic:home:zgw1dev1:setpoint" }
Number Radiator_Temperature "Current temperature [%.1f °C]" <temperature> { channel="mqtt:topic:home:zgw1dev1:temperature" }
Number Radiator_Valve_Percent "Valve percent [%d %%]" { channel="mqtt:topic:home:zgw1dev1:valve_percent" }
Frame label="Heating" {
Setpoint item=Radiator_Setpoint minValue=15 maxValue=30 step=0.5
Selection item=Radiator_Mode mappings=[auto='Auto', temp_auto='Auto temp', manual='Manual', comfort='Comfort']
Text item=Radiator_Setpoint
Text item=Radiator_Temperature
Text item=Radiator_Valve_Percent
}
Channel identifier:
power
State:
tuya/tuya_device_1/dps/1/state
Command:
tuya/tuya_device_1/dps/1/command
Custom On/Open Value:
True
Custom Off/Closed Value:
False
Channel identifier:
w
State:
tuya/tuya_device_1/dps/19/state
Incoming Value Transformations: JS:tuya-energy.js
Channel identifier:
v
State:
tuya/tuya_device_1/dps/20/state
Incoming Value Transformations: JS:tuya-energy.js
(function(i) {
return Math.ceil(i / 10)
})(input)
Switch Socket_Power "Socket" { channel="mqtt:topic:socket:power" } Number Socket_W "Power (W)" { channel="mqtt:topic:socket:w" } Number Socket_Vt "Power (V) [%s]" { channel="mqtt:topic:socket:v" }
Switch item=Socket_Power Text item=Socket_W Text item=Socket_Vt