Hi All,
I’m not sure if this the right channel to ask this.
I have a new Shelly Dimmer 2 and it works good when setting the brightness.
But I can’t figure out how to read the actual brightness.
Can anyone help?
Cheers
Florian
Hi All,
I’m not sure if this the right channel to ask this.
I have a new Shelly Dimmer 2 and it works good when setting the brightness.
But I can’t figure out how to read the actual brightness.
Can anyone help?
Cheers
Florian
It is the brightness attribute in the light entity. In my case
supported_color_modes:
- brightness
friendly_name: Dining Table Lights
supported_features: 32
color_mode: brightness
brightness: 255
You can create a template in configuration.yaml
template:
- sensor:
- name: Bedroom brightness
state: "{{ state_attr('light.shellydimmer2_98cdac0d04df', 'brightness') | int(0) }}"
state_class: measurement