Did you fix your issue? I’m trying with the templating method, but I’m facing a **UndefinedError: 'None' has no attribute 'attributes'**
error. Here is my template:
cover:
- platform: template
covers:
volet_salon_6:
friendly_name: Volet salon 6
position_template: "{{ 100 - (state_attr('cover.volet_salon_6', 'current_position') | int) }}"
open_cover:
service: cover.close_cover
data:
entity_id: cover.volet_salon_6
close_cover:
service: cover.open_cover
data:
entity_id: cover.volet_salon_6
stop_cover:
service: cover.stop_cover
data:
entity_id: cover.volet_salon_6
set_cover_position:
service: cover.set_cover_position
data:
entity_id: cover.volet_salon_6
position: "{{ 100 - (position) }}"
What is yours?