iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

Support for Smart termostatic radiator valve TRVZB from Sonoff #237

Open spurnvoj opened 7 months ago

spurnvoj commented 7 months ago

Is your feature request related to a problem? Please describe: Sonoff made new termostatic radiator valve that is supported by smarthings. Description of the radiator valve: https://sonoff.tech/product/home-appliances/trvzb/

Homebridge only detects battery state and temperature. Log:

[11/18/2023, 7:45:14 PM] [Smartthings Plug (IK)] Updated status for Living room radiator-main: {"thermostatOperatingState":{"thermostatOperatingState":{"value":"idle","timestamp":"2023-11-18T18:05:44.865Z"}},"temperatureMeasurement":{"temperature":{"value":24.8,"unit":"C","timestamp":"2023-11-18T18:16:27.081Z"}},"thermostatHeatingSetpoint":{"heatingSetpoint":{"value":24,"unit":"C","timestamp":"2023-11-16T06:25:01.697Z"}},"refresh":{},"thermostatMode":{"thermostatMode":{"value":"heat","data":{"supportedThermostatModes":["off","heat","emergency heat"]},"timestamp":"2023-11-15T13:40:32.870Z"},"supportedThermostatModes":{"value":["off","heat","emergency heat"],"timestamp":"2023-11-07T03:01:40.884Z"}},"battery":{"battery":{"value":100,"unit":"%","timestamp":"2023-11-07T06:03:43.859Z"}},"firmwareUpdate":{"lastUpdateStatusReason":{"value":null},"availableVersion":{"value":"00001101","timestamp":"2023-11-04T11:08:44.231Z"},"lastUpdateStatus":{"value":null},"state":{"value":"normalOperation","timestamp":"2023-11-04T11:08:44.233Z"},"currentVersion":{"value":"00001101","timestamp":"2023-11-04T11:08:44.232Z"},"lastUpdateTime":{"value":null}}}

Describe the solution you'd like: It would be great to have the current setpoint and mode visible as well. User should be able to modify those parameters.