Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Tunable White - Preset Tuning Selection from Script/Automation? #207

Answered by spooonylove
spooonylove asked this question in Q&A
Discussion options

You must be logged in to vote

Answer!

A friendly redditor assisted me by directing me to the Home Assistant Developer - States tab, and recommending i look at the listed attributes of a given entity. Per the screenshot below my long-desired "list of presets" is there for the entity. Further, it looks like I was very close in my original code (case sensitive attributes).

Anyway, I've included a screenshot of the developer State tab, for others to take a peek at.

Final functional script:

living_room_lights_night_light_mode:
  sequence:
  - service: light.turn_on
    target:
      entity_id:
      - light.bulb200
      - light.bulb201
    data:
      effect: Night light
  mode: single
  alias: Living Room Lights - Night…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bstork0807
Comment options

@spooonylove
Comment options

@bstork0807
Comment options

@brettonw
Comment options

Answer selected by spooonylove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants