Skip to content

Instantly share code, notes, and snippets.

@ppdms
Created June 15, 2024 17:51
Show Gist options
  • Select an option

  • Save ppdms/54e4e6eb40d7aadac3db1c692fca3e0a to your computer and use it in GitHub Desktop.

Select an option

Save ppdms/54e4e6eb40d7aadac3db1c692fca3e0a to your computer and use it in GitHub Desktop.
Home Assistant configuration.yml snippet for Adaptive Lighting statistics
adaptive_lighting:
template:
- sensor:
- name: "Sun Position"
unit_of_measurement: "°"
state: "{{ state_attr('switch.adaptive_lighting', 'sun_position') }}"
state_class: measurement
- name: "Adaptive Color Temperature"
unit_of_measurement: "K"
state: "{{ state_attr('switch.adaptive_lighting', 'color_temp_kelvin') }}"
state_class: measurement
- name: "Adaptive Brightness"
unit_of_measurement: "%"
state: "{{ state_attr('switch.adaptive_lighting', 'brightness_pct') }}"
state_class: measurement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment