Add info about new yeelight start_flow service#8166
Add info about new yeelight start_flow service#8166rytilahti merged 1 commit intohome-assistant:nextfrom zewelor:add_info_about_new_start_flow_service_and_config_options_to_yeelight
Conversation
| Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition` | ||
|
|
||
|
|
||
| More info about values, transitions: https://gitlab.com/stavros/python-yeelight/blob/master/yeelight/flow.py |
There was a problem hiding this comment.
I think it would be nicer to link to the documentation here: https://yeelight.readthedocs.io/en/stable/flow.html . Also, considering there are not so many options, maybe simply writing them out here?
There was a problem hiding this comment.
I think that would require to copy this whole section: https://yeelight.readthedocs.io/en/stable/yeelight.html#flow-objects
There was a problem hiding this comment.
Fair enough! I think linking the documentation instead of the source code is enough (the examples will make it clear how to use them) 👍
| required: false | ||
| type: string | ||
| custom_effects: | ||
| description: "List of custom effects to add. Check examples below" |
|
|
||
| | Service data attribute | Optional | Description | | ||
| |---------------------------|----------|---------------------------------------------------------------------------------------------| | ||
| | `entity_id` | yes | Only act on a specific yeelight. Else targets all. | |
There was a problem hiding this comment.
I think this should be mandatory, see home-assistant/core#19006
|
Thanks for Review. Updated with comments addressed. |
|
@rytilahti Do I need to change anything more here ? |
rytilahti
left a comment
There was a problem hiding this comment.
I added a couple of things which need to be changed, then it's all good, thanks again for the effort :-)
|
|
||
| This example shows how you can add your custom effects in your configuration. | ||
|
|
||
| Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition` |
| required: false | ||
| type: string | ||
| custom_effects: | ||
| description: List of custom effects to add. Check examples below |
There was a problem hiding this comment.
Add dots at the end of each description, then it'd be consistent with other docs.
| | Service data attribute | Optional | Description | | ||
| |---------------------------|----------|---------------------------------------------------------------------------------------------| | ||
| | `entity_id` | yes | Only act on a specific yeelight. Else targets all. | | ||
| | `entity_id` | no | Only act on a specific yeelights. | |
|
|
||
| | Service data attribute | Optional | Description | | ||
| |---------------------------|----------|---------------------------------------------------------------------------------------------| | ||
| | `entity_id` | no | Only act on a specific yeelights. | |
| |---------------------------|----------|---------------------------------------------------------------------------------------------| | ||
| | `entity_id` | no | Only act on a specific yeelights. | | ||
| | `count` | yes | The number of times to run this flow (0 to run forever). | | ||
| | `transitions` | no | Array of transitions, for desired effect. For more info check [example](#custom-effects) | |
There was a problem hiding this comment.
remove ', for desired effect', I think it's superfluous.
There was a problem hiding this comment.
Also, 'See [examples below] ..'
| Possible transitions are `RGBTransition`, `HSVTransition`, `TemperatureTransition`, `SleepTransition` | ||
|
|
||
|
|
||
| More info about values, transitions in [library docs](https://yeelight.readthedocs.io/en/stable/flow.html) |
There was a problem hiding this comment.
More info about transitions and their expected parameters can be found in [python-yeelight documentation].
|
Thanks, fixed everything from comments. |
rytilahti
left a comment
There was a problem hiding this comment.
Thanks, let's merge this! 🥇
Description:
Pull request in home-assistant (if applicable): home-assistant/core#20107
Checklist:
nextis for changes and new documentation that will go public with the next home-assistant release. Fixes, changes and adjustments for the current release should be created againstcurrent.