Hey,
I’m trying to template my covers to have an option to shade using tilts. All works, however, tilt position value is not updated in input_number:
cover:
- platform: template
covers:
templated_antek:
friendly_name: "templated_antek"
device_class: shutter
value_template: "{{ is_state('cover.antek', 'open') }}"
open_cover:
action: cover.open_cover
target:
entity_id: cover.antek
close_cover:
action: cover.close_cover
target:
entity_id: cover.antek
stop_cover:
action: cover.stop_cover
target:
entity_id: cover.antek
position_template: "{{ state_attr('cover.antek', 'current_position') }}"
set_cover_position:
action: cover.set_cover_position
target:
entity_id: cover.antek
data:
position: "{{ position }}"
# TILT support
tilt_template: "{{ states('input_number.cover_tilt_antek') | int }}"
set_cover_tilt_position:
action: lcn.pck
data:
device_id: 830920f1379692d508543a3f6b725110
pck: JW{{ '{:03d}'.format(100 - tilt if tilt > 0 else 100) }}001
Seems like there’s no option to add secondary action within set_cover_tilt_position which would basically update input_number. Wondering if there’s any option without creating extra scripts which would wrap performing “lcn.pck” and updating input_number. I had a hope it all happens behind scenes as a part of tilt_template.