Awtrix Home Assistant Turn Display On/Off based on Presence Sensor

Use with Home Assistant
Turn Display On/Off based on Presence
- Works with
- Home Assistant
- Topic
- Smarthome
- Includes
- Flow
Flow description
Paste the code into your home assistant automation
Important: Replace the entity_id (binary_sensor.espresence_presence) with your own sensor
It only works for real presence detectors not with normal movement detectors !
If needed i can add another automation for movement detectors that activates the display for X Minutes if it detects movement.
also replace Awtrix/cmd/display with "Yourawtrixtopic/cmd/display
zma7QBR7Nt3F.yaml
alias: AWTRIX - Display Presence On/Off
description: Turns Display on if Presence is detected // Off if no Presence detected
triggers:
- entity_id: binary_sensor.espresence_presence
trigger: state
- event: start
trigger: homeassistant
actions:
- data:
topic: Awtrix/cmd/display
payload: >-
{{ {"power": is_state('binary_sensor.espresence_presence', 'on')} |
tojson }}
qos: 0
retain: false
action: mqtt.publish
mode: single
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More flows for Home Assistant or Smarthome
Something wrong with this flow? Report it.
Have an idea?
Sign in to ask questions and join the conversation.