I need a little help. I want to have a drop down selector in my Lovelace dashboard that I can select a WLED preset that will then be used in a node red flow. Im planning on using it to pre select a preset before a holiday for my out door lighting that will then be used when the flow triggers after the sun goes down. I can handle all the parts of this except the preset drop-down menu. I’ve been trying to use a current state node to pull the preset list from homeassistant and then a call service node to set a input select helpers options but I just can’t figure out the json for the data field in the call service node. Or if there is a better way.
I don’t use Node Red but in case you are interested this is how I currently achieve this with an Automation:
alias: Kitchen Light Scenes
description: Turn On Kitchen Scene Based on Input Select
trigger:
- entity_id: input_select.kitchen_scenes
platform: state
condition: []
action:
- data_template:
entity_id: scene.{{trigger.to_state.state}}
service: scene.turn_on
initial_state: "on"
mode: queued
max: 5
And the associated Helper configured via the UI:
I set this up a while ago with a Scene for each effect rather than a Preset.
The input_select can be accessed from the UI, I also have a Zigbee remote and another Automation/Blueprint to cycle through the various effects.