When I first started using Home Assistant, I created a bunch of scenes using the GUI. Now that I understand the system a bit better, I’m leaning into YAML editing, and I’m also starting to track changes with git, so I want to trim down the YAML files to include only the necessary lines. I have a few questions about what’s ok to delete here.
Some scenes include an attribute called off_brightness
that’s set to various numbers. What does this mean?
These attributes all sound like a description of the device’s capabilities; what’s the purpose of including these in a scene?
supported_features
min_color_temp_kelvin
max_color_temp_kelvin
min_mireds
max_mireds
effect_list
supported_color_modes
Some RGB lights include multiple ways of describing color, but I would expect these to be mutually exclusive. Is this a bug? Here’s an example that includes all of these: hs_color
, rgb_color
, xy_color
, color_temp_kelvin
, and color_temp
.
light.bedroom_lamps_group_zha_group:
min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 500
effect_list:
- colorloop
supported_color_modes:
- color_temp
- xy
off_with_transition: false
off_brightness:
icon: mdi:lamp
friendly_name: Bedroom lamps group
supported_features: 44
color_mode: color_temp
brightness: 51
color_temp_kelvin: 2277
color_temp: 439
hs_color:
- 29.532
- 81.265
rgb_color:
- 255
- 149
- 47
xy_color:
- 0.572
- 0.388
state: 'on'
Any links to documentation are appreciated.