Getting user's Scenes and Automations

Hi!
Is there a way to get the user's Scenes and Automations, same as you can get he's Accessories?
Thanks!

Replies

hi, who is he's. I don't understand what you mean. The only part that is understood is automations, but its not the same as accessories. although automations can be used in acessories do to the processors within the code. accessories is built to hold data but automations can run the code in action.
Scenes, also known as action sets, can be accessed via:
Code Block swift
extension HMHome {
    open var actionSets: [HMActionSet] { get }
}


Automations, also known as triggers, can be accessed via:
Code Block swift
extension HMHome {
open var triggers: [HMTrigger] { get }
}