I am trying to do something that should be basic. I have a button zigbee from AOARA which is in HA. But i cannot seem to get the automation to send a signal to my WEMO maker to open garage.
if it’s a button, does it have 2 states (on/off) (e.g. light switch) or just one state (on) (e.g. doorbell)
If the latter you need to catch the event as the button state will never change:
trigger:
- platform: event
event_type: signal_received
event_data:
entity_id: sensor.doorbell_sound
Please post the yaml generated by the UI, rather than screenshots. Ta.
- id: ‘1539717711439’
alias: garage wireless button
trigger:- event_data:
entity_id: binary_sensor.switch_158d0002132960
event_type: signal_received
platform: event
condition: []
action: - alias: ‘’
data:
entity_id: switch.garage_door
service: homeassistant.toggle
- event_data:
That is not yaml, please see the panel at the top of the page to format your code properly.
- id: '1539717711439'
alias: garage wireless button
trigger:
- event_data:
entity_id: binary_sensor.switch_158d0002132960
event_type: signal_received
platform: event
condition: []
action:
- alias: ''
data:
entity_id: switch.garage_door
service: homeassistant.toggle
Can you share how you configured your binary_sensor.switch_158d0002132960?
Also can you confirm that when you run the automation manually it does toggle the garage door?
the button automatically added by the system when i linked the hub, unsure where to find the configuration. There is no reference in the configuration.yaml
try the following:
- id: '1539717711439'
alias: garage wireless button
trigger:
- entity_id: binary_sensor.switch_158d0002132960
state: 'on'
platform: state
action:
- entity_id: switch.garage_door
service: homeassistant.toggle
When you push the button (binary sensor I’m assuming…) then it should toggle the garage switch.
I’m confused, HA / discovery added it automatically as a binary_sensor and called it a switch?
what value can you see for that button in the dev tools?
Can you also give us the output of these commands when you paste them in the template editor in the dev tools?
{{states.binary_sensor.switch_158d0002132960}}
This didn’t work unfortunately.
What do you see in the states page when you push the button?
then press the button and paste that code again to see if the timestamp changes
template is an example file, nothing specific
yeah you need to paste {{states.binary_sensor.switch_158d0002132960}}
instead of the example
I guessed that, no worries. So if you press the button the timestamp changes right?
Are you in any way able to hold the button and refresh the template page (just press enter) and see if the state changes (should show =on; at the end of the first line