Open nateww opened 9 months ago
This issue seems related, but no responses were given to it, and it was closed over 3 years ago.
This also seems relevant, but recent documentation implies that the homeassistant configuration effects the normal (non-discovery payload, not the discovery payload).
https://www.zigbee2mqtt.io/guide/configuration/devices-groups.html
homeassistant
Allows overriding the values of the Home Assistant discovery payload. See example below.
I didn't see any examples on this page related to discovery.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days
Not stale (just ignored)
Is your feature request related to a problem? Please describe
I have a Zigbee thermostat (https://www.zigbee2mqtt.io/devices/Zen-01-W.html) setup to controller my in-floor heating system. As such, when I configure the thermostat, it has no cooling mode OR fan-mode. Unfortunately, the default discovery sends out discovery for both the cooling mode and fan-mode, which causes multiple errors, and then one annoyance. Because the fan , and one error. First, the device can not be created properly, because the thermostat does not report the fan-mode, causing the following to appear in the home-assistant logs.
The fix is to update the configuration to remove these from the discovery config line.
Similarly, the default discovery template also sets both the high/low setpoint for the thermostat, which has no value in my setup (and the thermostat doesn't actually support this functionality as configured in my environment).
Since I had to modify the HA configuration anyway, it was trivial to remove the extra functionality and create a custom HA configuration that only contains the functionality my thermostat supports.
Describe the solution you'd like
Unfortunately, everytime Zigbee2MQTT restarts, it over-writes my customized discovery line. One solution is to disable HA discovery. However, I have dozens of other devices (and am constantly adding/removing devices on a fairly regular basis as I build out my new house), so I'd rather not disable discovery completely.
Two solutions come to mind:
These are two potential solutions I've considered, but perhaps others have ideas I haven't considered.
Describe alternatives you've considered
Disabling discovery completely, and then manually creating discovery topics for all of my devices. This is both error-prone, and removes one of the single-biggest advantage to Zigbee2MQTT, which is auto-configuration setup of Zigbee devices.
Additional context
I have researched the documentation as well as looked through the historical record, and I couldn't find anything of note that indicates it was possible to accomplish what I was hoping for.
https://www.zigbee2mqtt.io/guide/usage/integrations/home_assistant.html#overriding-discovery-properties
I attempted to decode the above information, and it wasn't obvious (to me) how to customize the discovery properties to modify and/or suppress existing discovery properties, or a way to disable discovery for a particular device.