Capability initialize and initialize function

@mike.maxwell is the capability and function related? whats the use for each?

also on system reboot like after hub update are all event subscriptions and scheduled jobs restored?

thank you.

Capabilities define commands and attributes.
All subscriptions and jobs are restored.

right. so where can I find the commands and attributes defined by the initialize capability?

what about the jobs scheduled between when the update started and ended?

Initialize is some what special, it has no attributes and only one command, initialize, is that capability exists it is called after the hub starts.

Jobs that are missed due to hub restarting are run after the hub startup is complete.

1 Like

thanks @mike.maxwell. was checking to see if I needed to add capability initialize to rooms. but if everything gets restored after hub restart … no reason to.