Hive Heating SLR2b autodiscovery

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Hive Heating SLR2b autodiscovery

Post by MikeF »

Hi,

I have successfully paired a Hive Active Heating SLR2b receiver / SLT3b thermostat with Zigbee2MQTT, and autodiscovery has successfully created devices in Domoticz. Ones that I'm particularly interested in are local_temperature and occupied_heating_setpoint - the latter is created as a Thermostat / Setpoint device in Domoticz. I can change the setpoint via this device, as well as through a python script, reading the state of a selector switch and setting temperatures for different times of the day.

What I'm interested in is knowing when the heating is actually on or off (I have a combi boiler, so am not interested in DHW). The SLR2b exposes running_state_heat, with possible values 'idle' and 'heat'. I would like to add this to the autodiscovery configuration, but I don't know how. (I've followed this thread: https://www.domoticz.com/forum/viewtopic.php?t=39429.)

Any help would be very welcome.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by waltervl »

Do you see that running_state_heat in Zigbee2MQTT change its state?

Why is that switch not created? Are the elements in the config topic not recognized. Perhaps also read the Zwave thermostat issue for reference https://github.com/domoticz/domoticz/issues/6052
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by MikeF »

Yes, running_state_heat in Zigbee2MQTT changes its state - increasing setpoint above the local temperature produces the following:

Code: Select all

Subscribing to topic zigbee2mqtt/Hive_SLR2b:
{
    "linkquality": 138,
    "local_temperature_heat": 19.07,
    "local_temperature_water": 21,
    "occupied_heating_setpoint_heat": 22,
    "occupied_heating_setpoint_water": 32,
    "running_state_heat": "heat", <----- was "idle"
    "running_state_water": "idle",
    "system_mode_heat": "heat",
    "system_mode_water": "off",
    "temperature_setpoint_hold_duration_heat": 65535,
    "temperature_setpoint_hold_duration_water": 0,
    "temperature_setpoint_hold_heat": true,
    "temperature_setpoint_hold_water": false
}
As such, it's not a switch, but a state - in Zigbee2MQTT it can be read but not written to. I can read it with Node Red, but I'd like it to be automatically updated through AD.

I'll check out the Zwave thermostat issue you referenced - thanks.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by waltervl »

What does the config topic look like now?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by MikeF »

Here's the payload for homeassistant/climate/0x001e5e090241aad0/climate_heat/config:
Spoiler: show

Code: Select all

{
    "action_template": "{% set values = {None:None,'idle':'idle','heat':'heating','cool':'cooling','fan_only':'fan'} %}{{ values[value_json.running_state_heat] }}",
    "action_topic": "zigbee2mqtt/Hive_SLR2b",
    "availability": [
        {
            "topic": "zigbee2mqtt/bridge/state",
            "value_template": "{{ value_json.state }}"
        }
    ],
    "current_temperature_template": "{{ value_json.local_temperature_heat }}",
    "current_temperature_topic": "zigbee2mqtt/Hive_SLR2b",
    "device": {
        "identifiers": [
            "zigbee2mqtt_0x001e5e090241aad0"
        ],
        "manufacturer": "Hive",
        "model": "Dual channel heating and hot water thermostat (SLR2b)",
        "name": "Hive_SLR2b",
        "via_device": "zigbee2mqtt_bridge_0x00124b0029dc127e"
    },
    "max_temp": "32",
    "min_temp": "5",
    "mode_command_topic": "zigbee2mqtt/Hive_SLR2b/heat/set/system_mode",
    "mode_state_template": "{{ value_json.system_mode_heat }}",
    "mode_state_topic": "zigbee2mqtt/Hive_SLR2b",
    "modes": [
        "off",
        "auto",
        "heat"
    ],
    "name": "Heat",
    "object_id": "hive_slr2b_heat",
    "origin": {
        "name": "Zigbee2MQTT",
        "sw": "1.36.1",
        "url": "https://www.zigbee2mqtt.io"
    },
    "temp_step": 0.5,
    "temperature_command_topic": "zigbee2mqtt/Hive_SLR2b/heat/set/occupied_heating_setpoint",
    "temperature_state_template": "{{ value_json.occupied_heating_setpoint_heat }}",
    "temperature_state_topic": "zigbee2mqtt/Hive_SLR2b",
    "temperature_unit": "C",
    "unique_id": "0x001e5e090241aad0_climate_heat_zigbee2mqtt"
}
There is a reference to value_json.running_state_heat at the beginning, but I can't tell if this is complete (this is getting to the outer limits of my understanding!).
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by MikeF »

I'm wondering about adding the following to the config:

Code: Select all

    "running_state_template": "{{ value_json.running_state_heat }}",
    "running_state_topic": "zigbee2mqtt/Hive_SLR2b",
Would this work?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by waltervl »

Jus do it, what can go wrong?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Hive Heating SLR2b autodiscovery

Post by MikeF »

Well, nothing - as nothing happened! Also, when I restarted zigbee2mqtt, my changes disappeared, suggesting that the config is generated by herdsman-converters.

I can live without it, as I can publish running_state_heat to domoticz by a timed Node Red flow, at whatever interval I choose.

Thanks for your help.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests