Created
January 5, 2018 21:40
-
-
Save LarsBergqvist/61f634a7518fef3b30bb4e955c00c45c to your computer and use it in GitHub Desktop.
Home Assistant template sensor for porch motion detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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