cancel
Showing results for 
Search instead for 
Did you mean: 

inputselector.state is not working

Szilvaadam
Community Member

Seems there is a mismatch within the input naming of script editor and the tv's input name (maybe the capital letters?)

The tv input names are HDMI 1,HDMI 2, etc..

As the options only dynamic entries, I tried to select every options from the dropwon but could not work, as a starter did not even start. When i added as a condition at least i could see that it showed: "condition does not met" (even when i added isNot and any of the inputs...) :

automations:
- starters:
- type: device.state.InputSelector
device: LG TV
state: currentInput
is: hdmi 3

 

Is there any solution to this?

2 REPLIES 2

kcruzgonzalez
Community Specialist
Community Specialist

Hi Szilvaadam,

 

Thank you for posting in the community. I'm sorry to hear that there is an error using the script editor on the Google Home app. Don't worry, I'm here to help.

In order to give you some steps, I need you to answer me the next questions.

When did the issue start?

What automation are you trying to perform? 

Also, to create scripted automations, we would like to recommend using the basics of YAML, a human-readable scripting language that allows you to enter line-by-line instructions to create home automations.

Understand how routines work, including terminology like starters and actions.

Also, it is necessary to know how to use the script editor to write scripted automations.

For more detailed info on how to write a script, follow Write scripted automations with the script editor.

 

Let me know if you have any further questions.

 

Regards,

 

Kevin

When did the issue start?

From the very beginning when I started to use the script. 

 

What automation are you trying to perform? 

As I wrote in the OG post:

automations:

- starters:

- type: device.state.InputSelector

device: LG TV

state: currentInput

is: hdmi 3

As the options only dynamic entries, I tried to select every options from the dropdown but could not work, as a starter did not even start. When i added as a condition at least i could see that it showed: "condition does not met" (even when i added isNot and any of the inputs...)