New to Home Assistant and really loving it. Have a question regarding input selects and scripts. I’m attempting to use an input select to call a hue scene which is a script, but the automation portion of this process is failing. Could anyone help me out? I spent an entire night troubleshooting this, lol.
alias: Scene Basement
trigger:
platform: state
entity_id: input_select.scene_basement
action:
I removed the option ‘-’ and still didn’t work. I have a logitech harmony hub with an input_select working just fine. I only encountered issues when referencing scripts. Thanks to everyone for your help so far.
The formatting tool was doing some weird things here so I didn’t use it. The input select seems to be working correctly. It’s the automation portion of the code that isn’t sending the script.turn_on cmd to the lights.
Did you get this working?
used this and made a test, it works but i got an error every time getting this:
Invalid service data for script.turn_on: Entity ID is an invalid entity id for dictionary value @ data[‘entity_id’]. Got’ ’
works fine, but why this error
here are my automation
`- alias: House Mode
trigger:
platform: state
entity_id: input_select.home_preset
id: ‘’
action:
Did executing scripts thru an input_select ever get resolved? I’m struggling with this exact same thing in another thread and now wondering if there is an inherit issue with this approach?
his issue has nothing to do with yours. His syntax is wrong and he’s missing an else like you are. But I can’t tell if that’s your problem because you didn’t post your code in the other thread. Instead you came here to get help where there is miss direction. So, if you simply post your code you’ll get help… or you can continue to search the forums for some magical solution.
Just searching and found something similar. Sure, you want me to post ALL my code? I posted everything tied to the input_select other than the scripts and those work fine by themself but just wanted to make sure as my customizations are fairly decent and to your post, I don’t really keep anything in my configuration file.