-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add device id include list for mqtt hass discovery #1988
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
Conversation
This looks good. Any comments or objections from other current users of the script? |
This would be prefect, and allow low-config filtering. :) (and in my case, allow me to remove about 500 unused entities ) |
This would be great for sure! I'd also (or instead of) love to have this in the main rtl_433 executable so the stuff I don't care about doesn't even make it to my mqtt server. Now I periodically manually remove things from there with MQTT Explorer when I'm debugging some stuff |
So this very simplistically only matches on This should certainly cut down on false positives creating unwanted devices in Hass, but there will be edge cases where matching It's low probability but you'll still get a device created if any of the enabled protocols (other models) have a false positive with one of the white listed IDs. Doing whitelisting/blacklisting based on the composite identifier |
I can't seem to get this to work: `pi@rpi2-rtl-433:~ $ python ./rtl_433_mqtt_hass.py -H 192.168.16.5 -u MQTT -P password --ids 77 ^CTraceback (most recent call last): ` |
Thanks. I guess line 645 should have been: |
Thanks, that change worked. I had worked around the problem by using the -R switch on the rtl_433 command line. |
Thanks for the feedback, fixed with 315b98b now. |
New argument (
-I
/--ids
) for a list of numeric ID's that will be discovered. If this argument is supplied then any devices outside of these ID's will be ignored.Example: