Jacob_nr.5
(Jacob nr.5)
September 22, 2019, 4:46pm
1
I use a iaomi mijia Aqara wireless key.
In ZHA, the 3 sensors (left, right and both) stay’s in the last state.
When you want to use the same click again it stays in the same state, so there is no difference.
Is there a solution?
Best regards,
Jacob
Jacob_nr.5
(Jacob nr.5)
October 24, 2019, 4:36pm
2
An update:
I changed and tested the new automations in the version 0.100.3.
I used the sensor in the automation and now I used the “Device” option.
In Yaml code:
Old:
- id: c01_beide_1x
alias: C01 - Beide 1x
trigger:
- entity_id: sensor.c01_cb
platform: state
to: both_single
condition: []
action:
- data:
entity_id: script.verlichting_keukenlampen_sfeer
service: script.turn_on
- data:
entity_id: script.verlichting_woonkamerlampen_sfeer
service: script.turn_on
New:
- id: c01_beide_1x
alias: C01 - Beide 1x
trigger:
- device_id: 471a6e612f4e4114ae41f7480db81383
domain: zha
platform: device
subtype: both_buttons
type: remote_button_short_press
condition: []
action:
- data:
entity_id: script.verlichting_keukenlampen_sfeer
service: script.turn_ont entity_id: script.verlichting_woonkamerlampen_sfeer
service: script.turn_on
The change in the interface:
Old:
New:
Now it is working fine.