Initial draft device automations docs#321
Conversation
| sidebar_label: Actions | ||
| --- | ||
|
|
||
| Device actions allow a user to have a device to something. Examples are to turn a light on or open the door. |
There was a problem hiding this comment.
to have a device do something.
|
|
||
| Device conditions allow a user to check if a certain device condition is met. Examples are is a light on or is the floor wet. | ||
|
|
||
| Device conditions are defined as dictionaries. These dictionaries are created by your integration and are passed to your integration to createa a function that checks the condition. |
There was a problem hiding this comment.
to create a function that checks
|
|
||
| ## `async async_condition_from_config(config, config_validation)` | ||
|
|
||
| Create a condition function from a function. The condition functions should be an async-friendly callback that |
There was a problem hiding this comment.
Missing end of sentence.
| sidebar_label: Introduction | ||
| --- | ||
|
|
||
| Device Automations provides users with a device-centric layer on top of the core concepts of Home Assistant. When creating automations, users no longer have to deal with core concepts like states and events. Instead, they will be able to pick a device and then pick from a list of pre-defined triggers, conditions and actions. |
There was a problem hiding this comment.
Device Automations provide users
|
|
||
| Device Automations provides users with a device-centric layer on top of the core concepts of Home Assistant. When creating automations, users no longer have to deal with core concepts like states and events. Instead, they will be able to pick a device and then pick from a list of pre-defined triggers, conditions and actions. | ||
|
|
||
| Integrations can hook in this system by exposing functions to generate the pre-defined triggers, conditions, actions and having functions that can listen for the triggers, check the condition and execute the action. |
There was a problem hiding this comment.
Integrations can hook into this system
|
|
||
| Integrations can hook in this system by exposing functions to generate the pre-defined triggers, conditions, actions and having functions that can listen for the triggers, check the condition and execute the action. | ||
|
|
||
| Device automations are not exposing extra functionality but are a way for users to not have to learn new concepts. Device automatoins are using events, state and service helpers under the hood. |
There was a problem hiding this comment.
Device automations are using events, state and service helpers under the hood.
Yeah, @MartinHjelmare do you have any suggestion for wording? I added a note like this:
|
|
I think it's good. But we're not consistent as a whole in the dev docs about how we name the |
|
Yeah I think that's an artifact from our component past. I think that we should go with |
Just a quick write up. Relies on home-assistant/core#26880