Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #in configuration.yaml
- template:
- - trigger:
- - platform: state
- entity_id: sensor.frontdoorlock_action #replace with your entity id
- to: door
- binary_sensor:
- - name: "front_door"
- unique_id: front_door
- device_class: door
- icon: mdi:door
- state: >
- {{ is_state_attr('sensor.frontdoorlock_action', 'action_id', 0) }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement