Best method to use buttons with Home Assistant after .action removal ? #25677
silkyclouds
started this conversation in
General
Replies: 2 comments 2 replies
-
Personally I do everything via the UI and this works really well, example: When ![]() Then do ![]() |
Beta Was this translation helpful? Give feedback.
2 replies
-
Personally I've enabled the new event entity and I'm using that. It's a really trivial change: triggers:
- platform: state
entity_id: sensor.office_dial_moes_action
to: 'toggle'
# move this value to a new template condition, replacing the value with null (no quotes) becomes: triggers:
- trigger: state
entity_id: event.office_dial_moes_action
to: ~
# null and ~ (and NULL) are functionally identical - I just happen to prefer ~
conditions:
- condition: template
value_template: >-
{{ trigger.to_state.attributes.event_type == 'toggle' }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thank you for the amazing work on Zigbee2MQTT and the recent 2.0.0 release!
Now, I have one little issue since the removal of sensor.*_action entities, which directly impacts the use of buttons with Home Assistant.
Before the update, I used blueprints for my automations, particularly this one: https://epmatt.github.io/awesome-ha-blueprints/docs/blueprints/controllers/ikea_e1743/
This blueprint relied on the .action sensor to trigger different automations (e.g., turning lights on/off, switching between modes, etc.). However, since the .action entity is no longer exposed by default, my automations have stopped working, and I’m unsure how to adapt to the new system.
I’ve read the documentation and understand that using MQTT Device Triggers is now the recommended method.
Could you please provide guidance on how to best set up buttons like the IKEA E1743 (and eventually how to make use of buttons that needs to use HA automation to turn of devices) with the new system? Do you have any examples or recommended blueprints that work well with the MQTT Device Trigger approach?
Most of my buttons are simply paired directly with my bulbs, but two of my rooms has shit zigbee devices (ZBMINI-L...) that do not support pairing, therefore, I really do rely on HA to trigger these.
So for now, I decided to rewrite something from scratch, that actually checked the mqtt topic for one of these buttons :
not sure tyhis is best way to achieve things, though.
thanks ! :)
Beta Was this translation helpful? Give feedback.
All reactions