better_thermostat icon indicating copy to clipboard operation
better_thermostat copied to clipboard

Moes ts601 not working

Open lasic87 opened this issue 2 years ago • 8 comments

i have that error. My thermostat is moes TS601 / gtz04

Logger: homeassistant.components.zha.entity Source: components/zha/entity.py:150 Integration: Zigbee Home Automation (documentation, issues) First occurred: 18:02:59 (4 occurrences) Last logged: 18:12:46

climate.termostat_3_moesthermostat: can't set 'off' mode. Supported modes are: [<HVACMode.HEAT: 'heat'>] climate.termostat_2_moesthermostat: can't set 'off' mode. Supported modes are: [<HVACMode.HEAT: 'heat'>] climate.termostat_1_moesthermostat: can't set 'off' mode. Supported modes are: [<HVACMode.HEAT: 'heat'>]

lasic87 avatar Sep 15 '22 16:09 lasic87

Can you Share the Diagnostics from better thermostat or the Developer states from your device?

Looks Like it have no off mode

KartoffelToby avatar Sep 15 '22 19:09 KartoffelToby

<template TemplateState(<state climate.termostat_kuchnia_moesthermostat=heat; hvac_modes=[<HVACMode.HEAT: 'heat'>], min_temp=5.0, max_temp=35.0, preset_modes=['none', 'away', 'Schedule', 'comfort', 'eco', 'boost', 'Complex'], current_temperature=21.0, temperature=15.0, hvac_action=idle, preset_mode=Schedule, system_mode=[4]/heat, occupancy=Occupancy.Occupied, occupied_heating_setpoint=1500, unoccupied_heating_setpoint=1500, friendly_name=termostat_kuchnia Moesthermostat, supported_features=17 @ 2022-09-15T18:35:02.010644+02:00>)>

lasic87 avatar Sep 15 '22 21:09 lasic87

I have got a similar device "Moes BHT-002-GALZB" (TS0601 from _TZE200_aoclfnxz) - that one does have an "off" mode.

perhaps the diagnose info from that helps as well?

better_thermosat device config_entry-better_thermostat-451f4224098708ea9da62293432571cd.json.txt

underlying physical device zha-781ff12630479e27224762af51ad5b8e-_TZE200_aoclfnxz TS0601-e8854cc97840dbd67c3df8080f9006e7.json.txt

developer tools for the physical device:

hvac_modes:
  - 'off'
  - heat
min_temp: 7
max_temp: 30
current_temperature: 20
temperature: 14
hvac_action: idle
system_mode: '[<SystemMode.Heat: 4>]/heat'
occupied_heating_setpoint: 1400
friendly_name: TRV_Küche_unten Thermostat
supported_features: 1

developer tools for the better_thermostat device:

hvac_modes:
  - heat
  - 'off'
min_temp: 7
max_temp: 30
target_temp_step: 1
current_temperature: 20.7
temperature: 16
hvac_action: heating
window_open: false
call_for_heat: true
last_change: null
child_lock: false
friendly_name: TRV_AI_Kueche_unten
supported_features: 1

bsafh avatar Sep 16 '22 06:09 bsafh

@bsafh you got the same error?

KartoffelToby avatar Sep 16 '22 08:09 KartoffelToby

at the moment, with beta-18, I do not see any errors in the log, so maybe Moes sells two different models under the same model type (TS0601) - unfortunately, that happens quite often.

bsafh avatar Sep 16 '22 09:09 bsafh

I reinstall hole better termostat and now a can't add any termostat, I have this log in better termostat

Ten błąd pochodzi z niestandardowej integracji.

Logger: aiohttp.server Source: custom_components/better_thermostat/helpers.py:312 Integration: Better Thermostat (documentation, issues) First occurred: 14:05:44 (1 occurrences) Last logged: 14:05:44

Error handling request Traceback (most recent call last): File "/config/custom_components/better_thermostat/helpers.py", line 288, in get_device_model entity_reg = await er.async_get(self.hass) TypeError: object EntityRegistry can't be used in 'await' expression

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 178, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper result = await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/better_thermostat/config_flow.py", line 73, in async_step_user device_model = await get_device_model(self) File "/config/custom_components/better_thermostat/helpers.py", line 312, in get_device_model .get("model", "generic") AttributeError: 'NoneType' object has no attribute 'get'

lasic87 avatar Sep 16 '22 12:09 lasic87

@lasic87 both problems are addressed in Beta 19, pls check it and close this issue if its fixed

KartoffelToby avatar Sep 16 '22 20:09 KartoffelToby

@bsafh @KartoffelToby

Full name of my thermostat is TZE200_ckud7u2l TS0601

After install beta 19 i can add thermostat again without problems. Byt when i set thermostat to off a have this error in logs:

Logger: homeassistant.components.zha.entity Source: components/zha/entity.py:150 Integration: Zigbee Home Automation (documentation, issues) First occurred: 09:43:55 (1 occurrences) Last logged: 09:43:55

climate.termostat_kuchnia_moesthermostat: can't set 'off' mode. Supported modes are: [<HVACMode.HEAT: 'heat'>]

In develop tools looks like this:

For real thermostat:

{'hvac_modes': [<HVACMode.HEAT: 'heat'>], 'min_temp': 5.0, 'max_temp': 35.0, 'preset_modes': ['none', 'away', 'Schedule', 'comfort', 'eco', 'boost', 'Complex'], 'current_temperature': 19.5, 'temperature': 15.0, 'hvac_action': <HVACAction.HEATING: 'heating'>, 'preset_mode': 'Complex', 'system_mode': '[4]/heat', 'occupancy': <Occupancy.Occupied: 1>, 'occupied_heating_setpoint': 1500, 'unoccupied_heating_setpoint': 1500, 'friendly_name': 'termostat_kuchnia Moesthermostat', 'supported_features': 17}

For Better termostat:

{'hvac_modes': ['heat', 'off'], 'min_temp': 5.0, 'max_temp': 35.0, 'target_temp_step': 1, 'current_temperature': 19.3, 'temperature': 15.0, 'hvac_action': 'off', 'window_open': False, 'call_for_heat': True, 'last_change': None, 'child_lock': False, 'friendly_name': 'Kuchnia', 'supported_features': 1}

config_entry-better_thermostat-71d2e794032a2d03c3607f54af076e82.json.txt zha-75976279e351c65b93044049a956cf3b-_TZE200_ckud7u2l TS0601-b39787abb1260e870239645cf7e2968c.json.txt

lasic87 avatar Sep 17 '22 08:09 lasic87

Looks like this device has only a heat Mode, how is it handled without BT? Can ha turn it off? Or goes it just to min temp?

KartoffelToby avatar Sep 17 '22 13:09 KartoffelToby

@KartoffelToby It is zigbee device in TUYA app there is an option to set valve in force close/force open. This is some kind of clone device of model MOES TS0601 i ques base on what i read on other forums. However in the zigbee integrations with ZHA there is a switch to on off device image

lasic87 avatar Sep 17 '22 20:09 lasic87

Urg that's difficult, I can't do anything for such a special case, there would be the possibility to teach BT to set the target temperature to 5°C if there is no off mode. would that be a solution?

KartoffelToby avatar Sep 17 '22 23:09 KartoffelToby

It has an entity switch.on/of byt not such artibute. Did you think i can use that in some kind template?

lasic87 avatar Sep 18 '22 08:09 lasic87

If i add such a extra, it will make the maintaining more complex

But i have a solution, in the Next beta Better Thermostat has events.

You can Just Build an automation triggerd by bt Off mode to Switch it off or on

KartoffelToby avatar Sep 19 '22 18:09 KartoffelToby

@KartoffelToby ofcourse i udnderstand. Many thanks for your intrest of my problem, and ofcourse for you great work BT is great idea.

lasic87 avatar Sep 21 '22 07:09 lasic87

In Beta 21 i implement the events, give it a try

KartoffelToby avatar Sep 22 '22 18:09 KartoffelToby