-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Excluding keys by default doesn't work #867
Comments
Can you share the plugin configuration you tried initially? Did it not work for any device, or only for specific devices? |
@itavero Uhh, sure. I can share an excerpt, it's rather large configuration. 😅
I only tried excluding To make the thermostats actually work, i.e. appear in Home, I had to add individual configs for each device to exclude homebridge-z2m/src/converters/climate.ts Lines 104 to 111 in 31b0fd9
|
@itavero I just noticed that my exclude for Anyhow, to ignore Also, I see some strange behavior in Home where color mode is not retained and always goes back to color temperature mode... Seems to happen mostly when color/mode is changed outside of HomeKit. 🤔 |
That is indeed the way it's should be.
If I recall correctly it should apply to all devices after restarting the Homebridge, unless they have their own Any reason you are excluding
Do you have the experimental |
Just making sure. 😉
Yep, I have. Do I need to re-add the lights for the flag to take effect? Edit: Interesting, when I choose a color from the color wheel in Home, the color mode seems to stick. However, selecting a preset from the color swatches isn't as reliable. Can you by chance try this yourself? |
@itavero Does default |
It should. But that's also the potential bug I'm thinking of |
Had quick look. The code that filters the exposes based on this setting is here: homebridge-z2m/src/platformAccessory.ts Lines 401 to 410 in 31b0fd9
Current code uses Lines 82 to 117 in 31b0fd9
|
@itavero Alright, just did some testing, with interesting results! So we now know for sure, that it's working for properties other than There's a chance it was all just a funny coincidence, because I excluded Edit: Yup, seems to work now. Not entirely sure what happened here... Maybe the plugin detected the new thermostat right before Homebridge was restarted? Anyhow, sorry for the noise! |
@itavero Just had an interesting thing happen... Do we do something special when Zigbee2MQTT reconnects (after an update)? And do we always filter out excluded keys? Another possibility would be some sort of stale cache on one of the Home hubs... 🤔 |
The way the information is received and processed is always the same, so I have no explanation for this yet. |
Ok, thanks for confirming. ✌️ There's a real chance that these transient, super weird issues are actually coming from HomeKit itself. The Home app has in part been quite buggy for months now. 😬 |
I tried today exclude by default device_temperature, but the temperature from all motion and door sensors are still shown, also did delete the cache for all devices in homebridge.
|
Is there an existing issue for this?
Describe the bug
Tried to exclude a few properties/keys by default (
occupied_cooling_setpoint
to be specific) so I don't have to manually add a new configuration entry for every single thermostat discovered via MQTT to actually make them appear in Home.Unfortunately, it seems like this doesn't work as expected, and excluded keys are still present on the newly discovered accessories.
However, excluding keys on a per-device basis works fine.
Related devices
No response
Related Devices
No response
Steps To Reproduce
No response
Expected behavior
No response
Device entry
No response
Status update
No response
Messages from this plugin
No response
This plugin
1.11.0-beta.5
Homebridge
1.7.0
Zigbee2MQTT
1.37.1-dev
Homebridge Config UI X (if applicable)
4.56.2
The text was updated successfully, but these errors were encountered: