I got a Shelly Dimmer 2 that I wrote some automation for to increase the brightness when my TV turns off, and it’s not already above a certain brightness.
alias: Nach Ausschalten von Shield Licht Couch auf 3% setzen
description: ""
triggers:
- type: turned_off
device_id: 2c604168eacd9f7d402cbbc62be15a27
entity_id: 81c94c492e3f7faface655e3bcbf257c
domain: remote
trigger: device
conditions:
- condition: numeric_state
entity_id: light.licht_couch
attribute: brightness
below: 2
actions:
- type: turn_on
device_id: c9d902cf185e86540f2f90b08fafddfc
entity_id: f9d040b10bdb9255352308a4355ec6d8
domain: light
brightness_pct: 3
mode: single
The automation works fine, except for the brightness condition. I assumed that the brightness
attribute of the entity would be equal to what is shown in the toggle button in the dashboard. For example, this is the toggle for that entity when it is on and set to 20%. As you can see in the settings of that toggle button, it belongs to that entity. But in the developer tools, the brightness
value of that entity is completely different (51):
I am very confused by this and must be gettings something completely wrong. Where are the brightness
values of that entity coming from, how can I reference the value that I as a simple user can see in the UI of the dashboard button, and how am I supposed to discover this myself?
1 post - 1 participant