Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created January 5, 2018 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/61f634a7518fef3b30bb4e955c00c45c to your computer and use it in GitHub Desktop.
Save LarsBergqvist/61f634a7518fef3b30bb4e955c00c45c to your computer and use it in GitHub Desktop.
Home Assistant template sensor for porch motion detection
sensor:
- platform: template
sensors:
porch_last_motion:
friendly_name: 'Porch last motion'
icon_template: mdi:walk
value_template: '{{ as_timestamp(states.sensor.porch_motion.last_updated) | timestamp_custom("%a %H:%M", True) }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment