Added service to Dynalite (#14201)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Ziv 2020-08-11 12:14:06 +03:00 committed by GitHub
parent 32ecd4a529
commit c7615068be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,6 +298,24 @@ For example, you would go to your kitchen light and turn it on. Now you log into
The initial process can be a bit time consuming and tedious, but it only has to be done once. Once you are done configuring, it is better to set `autodiscover` to `false`, since there are many "fake" channels and areas that the system uses for internal communication and you do not want to have visible.
## Services
### Service `dynalite.request_area_preset`
Send a command on the Dynalite network asking an area to report its currently selected preset. Normally, channel 1 (default) is used, but in some implementation, specific areas will need other channels.
<div class='note'>
This does not return the area preset. It sends a network command asking the area to report its preset. Once it reports, that will be caught and handled by the system.
</div>
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `host` | yes | Which gateway to send the command to. If not specified, sends to all configured gateways.
| `area` | no | Which area to request the preset for.
| `channel` | yes | Which channel to use. If not specified, uses the area configuration or system default.
## Events
### Event `dynalite_preset`