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

Magic cube contions - easier method?

$
0
0

I couldn’t find a straightforward way to stop an alarm from going off on the weekend so I created an input boolean and two automations to turn it on / off based on the face of a Aqara magic cube. It works but seems primitive.

alias: Turn On alarm with Magic cube face 1 up
description: ‘’
trigger:

  • device_id: dd157d8e752bab120f9c72a55432bc56
    domain: zha
    platform: device
    type: device_flipped
    subtype: face_1
    condition: []
    action:
  • service: input_boolean.turn_on
    data: {}
    target:
    entity_id: input_boolean.alarm_on_off
    mode: single

alias: Turn Off alarm with Magic cube face 2 up
description: ‘’
trigger:

  • device_id: dd157d8e752bab120f9c72a55432bc56
    domain: zha
    platform: device
    type: device_flipped
    subtype: face_2
    condition: []
    action:
  • service: input_boolean.turn_off
    data: {}
    target:
    entity_id: input_boolean.alarm_on_off
    mode: single

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 103195

Trending Articles



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