Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created January 5, 2018 21:40
Embed
What would you like to do?
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