Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106634

Multiple Aqara cubes as trigger in one automation

$
0
0

Hi,
I have three Aqara cubes and want to have the same gestures binded to the same actions on all cubes. Therefore I want to use one automation for all three cubes. I can not find a syntax working with multiple entities as triggers.
This works:

- alias: cube_event_flip_180
  trigger:
    platform: event
    event_type: xiaomi_aqara.cube_action
    event_data:
      entity_id: binary_sensor.cube_158d0002a6f758
      action_type: flip180
  action:
    - service: light.toggle
      entity_id: light.livingroomsubbulb

This does not work:

- alias: cube_event_flip_180
  trigger:
    platform: event
    event_type: xiaomi_aqara.cube_action
    event_data:
      entity_id: binary_sensor.cube_158d0002a37196, binary_sensor.cube_158d0002a6f758, binary_sensor.cube_158d00010b265c
      action_type: flip180
  action:
    - service: light.toggle
      entity_id: light.livingroomsubbulb

This does also not work:

- alias: cube_event_flip_180
  trigger:
    platform: event
    event_type: xiaomi_aqara.cube_action
    event_data:
      entity_id:
      - binary_sensor.cube_158d0002a37196
      - binary_sensor.cube_158d0002a6f758
      - binary_sensor.cube_158d00010b265c
      action_type: flip180
  action:
    - service: light.toggle
      entity_id: light.livingroomsubbulb

Does anyone know how to include all three cubes?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>