Replies: 8 comments
-
Any thing like you can see in #834 and #817? Not sure these trigger automatically mind |
Beta Was this translation helpful? Give feedback.
-
Those are excellent additions, and along the same lines of making this stuff easier. But the difference (from what I can tell) is those you create within the HA app, this FR would let you do everything completely within the Shortcuts app itself. |
Beta Was this translation helpful? Give feedback.
-
I see that scenes are now supported in this way. Works great. Is it possible to extend this to allow automations and scripts to be triggered? My use case is that I want to trigger them by an rfid tag without having to confirm. |
Beta Was this translation helpful? Give feedback.
-
You can execute any service call, including triggering automations or scripts, using the 'call service' Shortcut. This ticket is about making them more accessible by adding helper shortcuts. |
Beta Was this translation helpful? Give feedback.
-
Yes, exactly. I would like to select from some options on the screen. I tried manually typing the json and couldn't get it to work. Probably I typed something wrong. |
Beta Was this translation helpful? Give feedback.
-
You can also avoid writing JSON manually by using the "Dictionary" action to craft the input to the service call. |
Beta Was this translation helpful? Give feedback.
-
Sounds great but that's still pretty complicated. It's not obvious what to type. I assume it's following the pattern here. Seeing the script and automation friendly names in the shortcuts app would be way more helpful. |
Beta Was this translation helpful? Give feedback.
-
Here's an example on how you can trigger an automation or turn on a script via Shortcuts: You can copy and paste the JSON from the above examples here, and then just customize it to fit your entity ID:
And here's an example of the Dictionary method that Zac mentioned: You can use whichever method you prefer. After you create one, you can just duplicate that Shortcut which makes future ones easier. So this is possible already, but not too user-friendly or accessible at the moment. Typing JSON on the iOS keyboard is a drag, and looking up the entity ID is also kind of a pain. Hence this feature request exploring ways to make it less complicated :) |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently to do simple things in Shortcuts like activate a scene, you need to either use JSON (not user friendly) or place the Dictionary action inside your shortcut (easier but less obvious). And after using the "Call Service" action and selecting
scene.turn_on
service there's still no way to actually see all your available scenes; you'd need to either remember the entity ID or go looking through the HA app for it. Not totally user-friendly IMO.Describe the solution you'd like
I just remembered an older idea I had in #314. I closed that issue last year during the 2.0 beta when Shortcuts creation was moved outside of the Home Assistant iOS app and done completely in the iOS 13 Shortcuts app. But after giving this another thought, I think a tweaked version of that idea could still work and be extremely useful.
Basically with this idea, there'd be an "Activate Scene" action and then you simply tap the variable to see all your scenes and pick from the list. The existing "Call Service" action already retrieves all the services from your Home Assistant instance, this would be doing the same thing except just showing scenes. The user flow would be very similar to the "Control Home" action of the default Home app:
There'd be two other actions "Trigger automation" and "Run script" that would work the same way. I think that would handle probably like 90% of use cases in a super easy and user-friendly way. The "Call Service" action would still exist for the lesser-used or more advanced stuff not handled by those three actions.
Beta Was this translation helpful? Give feedback.
All reactions