local device = {} device.model = "HY607W-3A" device.vendor = "Tuya" device.description = "Thermostat for gas boiler" device.exposes = { { type = "climate", features = { { type = "numeric", name = "local_temperature", property = "local_temperature", access = 1, unit = "°C", description = "Current temperature measured on the device", }, { type = "numeric", name = "occupied_heating_setpoint", property = "occupied_heating_setpoint", access = 3, unit = "°C", min = 5, max = 35, value_step = 0.5, description = "Temperature setpoint", }, }, }, { type = "enum", name = "mode_state", property = "mode_state", access = 3, description = "Thermostat mode: manual, auto, or temp_override", values = { "manual", "auto", "temp_override" }, }, { type = "binary", name = "state", property = "state", access = 3, value_on = "ON", value_off = "OFF", description = "ON/OFF thermostat", }, { type = "enum", name = "running_state", property = "running_state", access = 1, description = "State of heating", values = { "idle", "heat" }, }, } device.tuyaDatapoints = { { dp = 16, name = "local_temperature", converter = "divideBy10" }, { dp = 50, name = "occupied_heating_setpoint", converter = "divideBy10" }, { dp = 125, name = "state", converter = "onOff" }, } device.fingerprint = { { model = "TS0601", manufacturer = "_TZE200_khah2lkr", }, } return device