Skip to content

Instantly share code, notes, and snippets.

View kurankat's full-sized avatar

kurankat

  • Tasmanian Herbarium
  • Australia
View GitHub Profile
@kurankat
kurankat / hass_planetary_hours.yaml
Last active February 4, 2020 07:40
Home Assistant sensor, script and automation to play a sound at each changeover of planetary hour during the day
# Planetary hour calculations in sensors.yaml
- platform: template
sensors:
plan_hr_len:
friendly_name: "Planetary hour length today"
unit_of_measurement: "sec"
value_template: >
{{ state_attr('sensor.daylight', 'today') / 12 * 3600 }}
plan_hr_no:
friendly_name: "Planetary hour number"