I hadn’t thought to look for it there before, but after checking I think I see it. I’m seeing “Backyard Activity” listed so unless my Automations are exposed that would have to be the Script.
I’m actually using the input_select to fire an Automation. Would input_boolean work better?
Maybe… I do use input booleans to fire an automation. And of course the automation can fire the script.
Input booleans show just like regular switches and in the Google Home app, you see them on the opening screen and can trigger them by tapping on them whereas scenes can only be triggered by voice (activate backyard in your case)
Interesting. The whole reason I’m using input_select is to provide a ‘tapping’ option through HA.
I don’t want to lose that functionality but I suppose I could manipulate the input_select from an input_boolean. Do you think input_select is behind the error?
I doubt it. I use an input_select but not via a script…
Google Assistant is pretty good but I have heard many people say that they can’t get scripts to work in GA… although they generally also say that GA is not showing the scripts either.
There is no reason you can’t have an input_boolean, get that to trigger an automation which triggers a script and have an input_select in the lovelace as well.
Just remember if there is no ‘off’ action for the input_boolean, you’ll want to have the automation turn the input_boolean off as well as trigger the script so next time when you want to run the script again, you can use the same turn on command to do that.
So expose the Automation through an input_boolean – basically just substituting it for the current Script? …and have the Automation manipulate the input_select?
OK, I’ll try that. If I’m following correctly this would give me buttons in GA while still retaining my drop-down list in HA.
Cool! This sounds like a better configuration even if it doesn’t resolve the error.
yes it will definitely do exactly that. Yes - you will def like the option of tapping a button in Google Home if you want to as well as having your input select. (make sure input_boolean is exposed)
I also added an Automation for input_boolean “off” – effectively making Inside Mode the default – so the buttons presented for the various Modes can be useful (assuming inside is our next destination).
automation:
- alias: "Backyard Mode Off"
initial_state: true
trigger:
# When "Backyard" Input Boolean is turned Off...
platform: state
entity_id: input_boolean.backyard
to: "off"
action:
# select "Inside" Activity Mode
- service: input_select.select_option
data:
entity_id: input_select.activity_modes
option: "Inside"
And within each Automation executed from the input_select I’m turning off every non-selected input_boolean.
it will show if the input_boolean is on or off but in my experience, it will only ’ read’ the state when you open it up - which is like everything else in there.
Yep, I just tested it and you’re exactly right (again).
I had to refresh Google Home – which can only be done by swiping down from the top of the home screen (AFAIK). But, that could still be pretty useful, especially with multiple users.
This also made me realize that I need to add input_boolean “on” actions to my input_select Automations.