![]() ![]() ![]() So, the final step is to take that dictionary, which now includes the entity_id of input_kit_action_selection and the value from what I picked, and call the input_t_value service. ![]() (easier to understand in the screenshot below) This input_text value will be the value I picked from the pop-up. This dictionary is used to format the results in a way that can then call the input_text in Home Assistant. It's called "Choose from".īased on what I choose, that value is then added to a dictionary. Then, I added another action that will provide a pop-up on my iPhone with that list and the ability to pick one of the items. Once I got that list from Home Assistant, I added a new Shortcut action to split that list by New Lines. This basically allows me to get a list of possible choices from Home Assistant based on where I am in my home. I won't go into too much detail here on the full template, but here are a few lines of the template: I created a new action from the Home Assistant App called "Render the provided template". I started out by creating a input_text called: input_kit_action_selection in Home Assistant.Īfter I opened the Shortcut app on my iPhone. Then, take the item I picked and provide it back to Home Assistant. To do that, I needed Home Assistant to provide that list, depending on where I am in my home. (I use ESPresense to be able to determine where I am in my house, so I had that part figured out.) Once I determine where I am in my home, I want to provide a list of actions that I can pick from. I knew I wanted the action to do something based on where I am in my home. Since one of the choices for the button is Apple's Shortcuts, I wanted to figure out a way to use that, without fully relying on Shortcuts. I wanted to make the action button a useful trigger for my home automation. I recently got the iPhone 15, that includes the action button. I pick an item, and that triggers an automation in Home Assistant: When I click the iPhone 15 Action button, this pop-up appears on my screen with a list of items to pick from based on where I am in my home. Before you take the time to read the full how-to, here's the end result: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |