EPMatt / awesome-ha-blueprints

A curated collection of automation blueprints for Home Assistant.
https://epmatt.github.io/awesome-ha-blueprints
GNU General Public License v3.0
811 stars 237 forks source link

Update ZHA event data to what ZHA provides in HA 2024.03.01 #605

Open ogajduse opened 3 months ago

ogajduse commented 3 months ago

Breaking change

Breaking changes for older HA versions, ZHA respectively that do not emit two extra zeros in the event args for each button action

Proposed change

This PR fixes args for all available actions of the Ikea E1744 button. The new ZHA version adds two zeros at the end of the args list. This PR adapts the controller automation to the change. Fixes #533

I have also made the regex lazier around whitespace since the output of the sensor last_controller_event is a pretty formatted JSON.

Checklist*

github-actions[bot] commented 3 months ago

Hey @ogajduse, thank you so much for your contribution! 🚀

🔄 We're currently running a few checks to make sure that everything is great with your contribution. If further actions need to be performed before your contribution can be reviewed, additional guidance will be provided to you in the next comment.

Results are coming soon, stay tuned!