Flow Details
You need the Philips Hue integration. Just change the "light.wohnzimmer_2" entity to the entity of a room, zone or light in your home. Also remember to change the topic to your awtrix id.
alias: Licht Wohnzimmer
description: ""
triggers:
- trigger: state
entity_id:
- light.wohnzimmer_2
attribute: brightness
conditions: []
actions:
- action: mqtt.publish
metadata: {}
data:
evaluate_payload: false
qos: 0
retain: false
payload: >-
{"icon": "lightbulb",
"repeat": 1,
"center": true,
"stack": false,
"color": "#{{'%02x%02x%02x' | format( state_attr('light.wohnzimmer_2','rgb_color')[0],state_attr('light.wohnzimmer_2','rgb_color')[1], state_attr('light.wohnzimmer_2','rgb_color')[2])}}",
"progressC":"#{{'%02x%02x%02x' | format(
state_attr('light.wohnzimmer_2','rgb_color')[0],state_attr('light.wohnzimmer_2','rgb_color')[1],
state_attr('light.wohnzimmer_2','rgb_color')[2])}}",
"progressBC": "#666666",
"progress": "{{(state_attr('light.wohnzimmer_2', 'brightness') / 255 *
100) | int }}",
"pushIcon": 2,
"duration": 3,
"scrollSpeed": 65,
"text": "{{(state_attr('light.wohnzimmer_2', 'brightness') / 255 * 100) | int }}%"
}
topic: awtrix/notify
mode: single
-- Flow first published on January 16, 2025, last updated on January 16, 2025 at 22:13.