mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-06 19:18:59 +00:00
1.2 KiB
1.2 KiB
layout, title, description, date, sidebar, comments, sharing, footer, ha_category, logo, ha_iot_class, ha_release
layout | title | description | date | sidebar | comments | sharing | footer | ha_category | logo | ha_iot_class | ha_release |
---|---|---|---|---|---|---|---|---|---|---|---|
page | Season Sensor | Instructions on how to add season sensors into Home Assistant. | 2017-07-04 07:00:00 | true | false | true | true | Utility | home-assistant.png | Local Polling | 0.53 |
The season
sensor will display the current astronomical or meteorological season (Spring, Summer, Autumn, Winter) based on the user's setting in the configuration file.
All information about how the seasons work was taken from Wikipedia:
- https://en.wikipedia.org/wiki/Season#Astronomical
- https://en.wikipedia.org/wiki/Equinox
- https://en.wikipedia.org/wiki/Solstice
{% linkable_title Configuration %}
To enable the sensor, add the following lines to your configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: season
type: astronomical
{% configuration %}
type:
description: "Type of season definition. Options are meteorological
or astronomical
."
required: false
type: string
default: astronomical
{% endconfiguration %}