Skip to content

Commit

Permalink
add covers to test container
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Apr 2, 2024
1 parent 3b583aa commit 274386e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,33 @@ frontend:

logger:
default: "info"

cover:
- platform: template
covers:
vertical_blind:
device_class: blind
value_template: "{{is_state('input_boolean.test_service','on')}}"
position_template: "{{states('input_number.cover_position')|int}}"
set_cover_position:
service: input_number.set_value
data:
entity_id: "input_number.cover_position"
value: "{{position}}"
- platform: template
covers:
tilt_blind:
device_class: blind
value_template: "{{is_state('input_boolean.test_service','on')}}"
position_template: "{{states('input_number.cover_position_tilt')|int}}"
tilt_template: "{{states('input_number.cover_position_tilt')|int}}"
set_cover_position:
service: input_number.set_value
data:
entity_id: "input_number.cover_position_tilt"
value: "{{position}}"
set_cover_tilt_position:
service: input_number.set_value
data:
entity_id: "input_number.cover_position_tilt"
value: "{{tilt}}"

0 comments on commit 274386e

Please sign in to comment.