Hi,
i integrated many devices in HA with ZHA and everything went fine.
Now i tried to make my first automation with a TS0601 (Hysen Thermostatic Radiator Valve Controller HY368 Zigbee compatibility).
On the lovelace it works pretty good. I can see the actual temperature and can steer the temperature that the thermostat should heat. But when i try to an automatic steering it wont work (mainly im the problem i think).
As entities there are three:
- switch.thermostat_on_off
- sensor.thermostat_power
- climate.thermostat_thermostat
with (1) i can him switch on and off (works) about the interface
with (2) i can readout the batterystatus (i think it works too, 100% with new batteries) in the interface
with (3) i can see the actual temperature, can steer the temperature he should heat to and select some “Modes” (none, away, schedule, comfort, eco, boost, complex)
I want a time steered automation like from 17:00 21C and from 23:00 15C and additional when the switch is pressed 24C for 1h.
Like i said on the lovelace interface i can all switch manually. But i cant get an automation run. I cant handle the temperatures. I can only switch the “modes” or turn it on and off.
The signature of the thermostat is
{
"node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
"endpoints": {
"1": {
"profile_id": 260,
"device_type": "0x0301",
"in_clusters": [
"0x0000",
"0x0001",
"0x0004",
"0x0005",
"0x0006",
"0x0201",
"0x0204",
"0xef00"
],
"out_clusters": [
"0x000a",
"0x0019"
]
}
},
"manufacturer": "_TZE200_cwnjrr72",
"model": "TS0601",
"class": "zhaquirks.tuya.ts0601_trv.MoesHY368_Type1"
}
In the developer section i found this:
and i took a working automation, where i can set the “modes” and tried to replace it with the variables out of this. So i tried to cange
alias: Thermostatsteuerung Badezimmer
description: ''
trigger:
- platform: time
at: '22:30'
condition: []
action:
- device_id: 52601c1c5427b02e73feacda89b57202
domain: climate
entity_id: climate.thermostat_thermostat
type: set_preset_mode
preset_mode: away
mode: single
in
alias: Thermostatsteuerung Badezimmer
description: ''
trigger:
- platform: time
at: '22:30'
condition: []
action:
- device_id: 52601c1c5427b02e73feacda89b57202
domain: climate
entity_id: climate.thermostat_thermostat
type: set_occupied_heating_setpoint
occupied_heating_setpoint: 1650
mode: single
But i get a “Message malformed: not a valid value for dictionary value @ data[‘type’]”
I think there are some missing variables this script cant reach.
Whatever i found this topic here and i think this was the same or similar problem:
but i dont get a clue how to work with these informations. Maybe someone can give me a tip what is wrong here and where and what i have to read to understand the automations on a very easy level to get this thing started (i dont even understand the meaning of quirks…).
Im a very newbee and maybe automation is not so easy as it seems, but maybe someone can help me.
Thanks and regards from germany
Dirk