quazzie / tellstick-plugin-mqtt-hass

Plugin for tellstick, connect to homeassistant via mqtt with autodiscovery.
39 stars 7 forks source link

Climate not working after rebooting Tellstick #25

Closed yurgh closed 3 years ago

yurgh commented 3 years ago

I'm including a Heatit Z-TRM2fx floor thermostat in my network, and it works fine both from the Telldus app and from Home Assistant using the plugin on a Tellstick Znet Lite v2. However after rebooting the Tellstick it only works from the Telldus app.

The debug log of a working thermostat modification:

09:11:54 - climateState exception 1
09:11:54 - {"origin": "mqtt_hass", "stateValue": {"changeMode": 0, "temperature": 22.0, "mode": "heat"}, "state": 2048, "devicetype": "climate", "deviceId": 74, "type": "deviceStateChanged"}
09:11:54 - Command THERMOSTAT value: {'changeMode': False, 'mode': 'heat', 'temperature': 22.0}

Note DeviceId: 69 and 74 is the same device, I tried factory resetting a few times and IDs get increased. After rebooting (not working) the debug topic says:

17:49:02 - climateState exception 1
17:49:02 - {"origin": "mqtt_hass", "stateValue": {"changeMode": 0, "temperature": 19.0, "mode": "heat"}, "state": 2048, "devicetype": "climate", "deviceId": 69, "type": "deviceStateChanged"}
17:49:02 - Command THERMOSTAT value: {'changeMode': False, 'mode': 'heat', 'temperature': 19.0}

To me it looks the same, apart from the temperature ofc. Is there some way of easily debugging what causes the exception to be thrown?

Some lines from the boot logging: Device ID 73 is the main device, 74 is the thermostat subdevice.

09:23:29 - config updated devices_configured [('hub', 'hub', 'hub'), ('remote', '32', '32'), ('remote', '33', '33'), ('remote', '34', '34'), ('switch', '37', '37'), ('switch', '43', '43'), ('sensor', '44', '44_1_0'), ('switch', '46', '46'), ('sensor', '1', '1_1_0'), ('sensor', '2', '2_1_0'), ('sensor', '2', '2_2_0'), ('sensor', '3', '3_1_0'), ('switch', '4', '4'), ('switch', '16', '16'), ('switch', '18', '18'), ('switch', '20', '20'), ('remote', '27', '27'), ('remote', '28', '28'), ('remote', '29', '29'), ('remote', '30', '30'), ('remote', '31', '31'), ('climate', '74', '74'), ('sensor', '75', '75_1_0'), ('binary_sensor', '75', '75'), ('sensor', '76', '76_1_0'), ('binary_sensor', '76', '76'), ('sensor', '77', '77_256_0'), ('sensor', '77', '77_256_2'), ('sensor', '77', '77_256_4'), ('switch', '77', '77')]

09:23:29 - Updating config.devices_configured to : [('hub', 'hub', 'hub'), ('remote', '32', '32'), ('remote', '33', '33'), ('remote', '34', '34'), ('switch', '37', '37'), ('switch', '43', '43'), ('sensor', '44', '44_1_0'), ('switch', '46', '46'), ('sensor', '1', '1_1_0'), ('sensor', '2', '2_1_0'), ('sensor', '2', '2_2_0'), ('sensor', '3', '3_1_0'), ('switch', '4', '4'), ('switch', '16', '16'), ('switch', '18', '18'), ('switch', '20', '20'), ('remote', '27', '27'), ('remote', '28', '28'), ('remote', '29', '29'), ('remote', '30', '30'), ('remote', '31', '31'), ('climate', '74', '74'), ('sensor', '75', '75_1_0'), ('binary_sensor', '75', '75'), ('sensor', '76', '76_1_0'), ('binary_sensor', '76', '76'), ('sensor', '77', '77_256_0'), ('sensor', '77', '77_256_2'), ('sensor', '77', '77_256_4'), ('switch', '77', '77')]

09:23:29 - {"methods": 2050, "battery": null, "isSensor": false, "deviceId": 74, "sensors": {}, "name": "kabel termostat", "parameters": {"devicetype": "00000011-0001-1000-2005-ACCA54000000", "thermostat": {"setpoints": {"heat": {}, "eco-heat": {}, "cool": {}}, "modes": ["off", "heat", "cool", "eco-heat"]}}, "state": [1, ""], "typeStr": "zwave", "type": "climate", "isDevice": true}

09:23:29 - {"methods": 2050, "battery": null, "isSensor": true, "deviceId": 73, "sensors": {}, "name": "kabel", "parameters": {"devicetype": "00000011-0001-1000-2005-ACCA54000000", "thermostat": {"setpoints": {"heat": {"max": 35.0, "min": 5.0}, "eco-heat": {"max": 35.0, "min": 5.0}, "cool": {"max": 35.0, "min": 5.0}}, "modes": ["off", "heat", "cool", "eco-heat"]}}, "state": [1, ""], "typeStr": "zwave", "type": "climate", "isDevice": true}

I'm very thankful for help on this, as I would like to keep the Tellstick - but I need to be able to control the floor heating: Winter is coming... :)

edit: I decided it was more cost effective to just run the z-wave network off an Aeotec Z-stick, instead. Leaving the issue open, in case anyone else runs into it. The plugin is still golden for all my 433MHz-devices 👍

quazzie commented 3 years ago

Try 0.90.1. Rewrote the plugin. If there is still some problem please capture new debug and reopen / create new issue. Thanks.