Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created August 18, 2020 20:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyanski/6e8dd7dd4642b44206bbcba16d375b0f to your computer and use it in GitHub Desktop.
Save peyanski/6e8dd7dd4642b44206bbcba16d375b0f to your computer and use it in GitHub Desktop.
# Example configuration.yaml entry
sensor:
- platform: history_stats
name: "Vacation Kitchen"
entity_id: light.kitchen_lights
state: "on"
type: count
start: >
{{ as_timestamp(now()) - 86400 }}
duration: 00:00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment