Add config flow to Moon (#21855)

This commit is contained in:
Franck Nijhof 2022-03-27 13:04:53 +02:00 committed by GitHub
parent e7e844de3b
commit 213037a761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,22 +11,23 @@ ha_codeowners:
ha_domain: moon ha_domain: moon
ha_platforms: ha_platforms:
- sensor - sensor
ha_config_flow: true
--- ---
The `moon` integration tracks the phases of the moon. The Moon integration tracks the phases of the moon.
## Configuration {% include integrations/config_flow.md %}
To enable the moon sensor, add the following lines to your `configuration.yaml`: The sensor provided by this integration will return one of the following values:
```yaml - `new_moon`
# Example configuration.yaml entry - `waxing_crescent`
sensor: - `first_quarter`
- platform: moon - `waxing_gibbous`
``` - `full_moon`
- `waning_gibbous`
This sensor will return one of the following values: - `last_quarter`
`new_moon`, `waxing_crescent`, `first_quarter`, `waxing_gibbous`, `full_moon`, `waning_gibbous`, `last_quarter` or `waning_crescent` . - `waning_crescent`
<p class='img'> <p class='img'>
<img src='/images/screenshots/more-info-dialog-moon.png' /> <img src='/images/screenshots/more-info-dialog-moon.png' />