Hallo kann mir jemand helfen, ich habe 3 cover aber es wird nur eins angezeigt.
hat jemand eine idee woran das liegen könnte?
Bei den Lichtern funktioniert es.
configuration.yaml:
cover:
- platform: template
covers:
rollo_1:
device_class: shutter
unique_id: '1002'
value_template: >-
{% if is_state('binary_sensor.1Q1','on') %}Opening
{% elif is_state('binary_sensor.1Q2','on') %}Closing
{% elif is_state('binary_sensor.cover_1','on') %}Open
{% else %}Closed
{% endif %}
open_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 0
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 0
state: false
close_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 1
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 1
state: false
stop_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 2
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 2
state: false
rollo_2:
device_class: shutter
unique_id: '1002'
value_template: >-
{% if is_state('binary_sensor.1Q3','on') %}Opening
{% elif is_state('binary_sensor.1Q4','on') %}Closing
{% elif is_state('binary_sensor.cover_2','on') %}Open
{% else %}Closed
{% endif %}
open_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 4
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 4
state: false
close_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 5
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 5
state: false
stop_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 6
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 6
state: false
rollo_3:
device_class: shutter
unique_id: '1002'
value_template: >-
{% if is_state('binary_sensor.1Q5','on') %}Opening
{% elif is_state('binary_sensor.1Q6','on') %}Closing
{% elif is_state('binary_sensor.cover_3','on') %}Open
{% else %}Closed
{% endif %}
open_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 8
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 8
state: false
close_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 9
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 9
state: false
stop_cover:
- service: modbus.write_coil
data:
hub: "logo1"
address: 10
state: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: modbus.write_coil
data:
hub: "logo1"
address: 10
state: false