-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
filtered_attributes publishes attributes with 'null' values #10099
Comments
@Koenkk not really sure how this can happen, as we unconditionally delete the attributes listed from the message? Lines 258 to 260 in c2b5229
I've never seen attributes with |
Should be fixed now. @sjorge the filtered attributes were put back in: zigbee2mqtt/lib/extension/homeassistant.ts Line 1297 in 48b790c
|
Aah that makes sense, as I don’t run the homeassistent extension I never ran into that. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
I can confirm it works fine in stable version |
What happened
I'm trying to use the
filtered_attributes
option to remove attributes from the MQTT payload. The filtered attributes are not removed from the payload as described in the documentation but the values are replaced withnull
.What did you expect to happen
I would like to have the attributes removed from the JSON payload instead of
null
values.How to reproduce it (minimal and precise)
This is the configuration of one of my devices (devices.yaml):
MQTT log
zigbee2mqtt/z2m_router_1 {"led":null,"linkquality":72}
Debug info
Zigbee2MQTT version: 1.22.1
The text was updated successfully, but these errors were encountered: