Hi There. I am trying to build a cover template from a lock. I am trying to make use of the new Tile Card ‘Features’ so I can open and close my lock from the front-end tile but it’s only been built for covers so far. Here is my code I am trying to put in configuration.yaml - The new lock ‘cover’ is showing up as unavailable. Any help would be much appreciated
- platform: template
covers:
basement_door:
device_class: door
friendly_name: "Basement Door Lock Cover"
value_template: "{{ states('binary_sensor.basement_open')|float > 0 }}"
open_cover:
- condition: state
entity_id: lock.basement
state: "unlocked"
- service: lock.unlock
target:
entity_id: lock.basement
close_cover:
- condition: state
entity_id: lock.basement
state: "locked"
- service: lock.lock
target:
entity_id: lock.basement