-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
added support to include the UM pir mqtt device to associate with has… #4653
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
base: main
Are you sure you want to change the base?
added support to include the UM pir mqtt device to associate with has… #4653
Conversation
…s wled integration device by adding mac adresse & ip to discovery information
WalkthroughThe update extends the Home Assistant MQTT discovery payload across multiple usermod modules by adding a device connections array containing the device's MAC and IP addresses. In the PIR sensor switch module, an availability topic was also added. The multi relay module's discovery payload now includes detailed device metadata such as name, unique ID, manufacturer, model, and software version. The SHT usermod replaced an unsupported chip model call with predefined macros for device model and manufacturer. No logic or control flow changes were introduced; the modifications focus solely on enhancing the JSON payload structure for Home Assistant integration. Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
i think that should be added to all the usermods, since there are a couple others that also hav this "problem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to add a few comments in the code for non-HA users (like myself) to find out what the change does.
…D hass integration via Mac adress matching for all hass-um
Done |
added support to include the UM pir mqtt device to associate with hass wled integration device by adding mac adresse & ip to discovery information
previously the um only send basic mqtt discovery that will be discovered as individual stand alone device in mqtt integration, by using this commit it will merge the mqtt device with WLED device. pretty neat.
Summary by CodeRabbit