Hello,
my switch is called “Aqara button 1” in Phoscon App and here is log:
2019-01-10 13:45:21 DEBUG (MainThread) [pydeconz.deconzdevice] Aqara Button 1 created as
{'_async_callbacks': [],
'_battery': None,
'_buttonevent': 1002,
'_deconz_id': '/sensors/13',
'_ep': 1,
'_etag': '4da7fd7a089ff3e3cc270e5f836c284f',
'_manufacturername': 'LUMI',
'_modelid': 'lumi.sensor_switch',
'_name': 'Aqara Button 1',
'_on': True,
'_reachable': True,
'_sensor_class': None,
'_sensor_icon': None,
'_sensor_unit': None,
'_swversion': None,
'_type': 'ZHASwitch',
'_uniqueid': '00:15:44:55:02:01:63:b1-01-0006'}
Here is my automatisation:
- id: pause_my_room_2
initial_state: 'on'
alias: Play/Pause Google Home 2
trigger:
- platform: event
event_type: deconz.event
event_data:
id: aqara_button_1
event: 1002
action:
- service: media_player.media_play_pause
data:
entity_id: media_player.my_room
I tried as id
:
id: 'aqara_button_1'
id: aqara_button_1
id: Aqara Buton 1
id: 'Aqara Buton 1'
id: lumi.sensor_switch
id: 'lumi.sensor_switch'
Nothing helped so far.
What am I doing wrong?
Thank you.