|
[backcolor=rgba(10, 10, 10, 0.4)]Invalid config for [cover.template]: [data_template] is an invalid option for [cover.template]. Check: cover.template->covers->cover_zhuwo->data_template. (See ?, line ?).
cover:
- platform: template
covers:
cover_zhuwo:
friendly_name: "covezhuwo"
open_cover:
service: cover.open_cover
data:
entity_id: cover.0x00124b0019dba041_cover
close_cover:
service: cover.close_cover
data:
entity_id: cover.0x00124b0019dba041_cover
stop_cover:
service: cover.stop_cover
data:
entity_id: cover.0x00124b0019dba041_cover
set_cover_position:
service: script.cover_position
data_template:
position: "{{position}}"
value_template: "{{is_state('sensor.cover_zhuwo', 'open')}}"
icon_template: >-
{% if is_state('sensor.cover_zhuwo', 'open') %}
mdi:window-open
{% else %}
mdi:window-closed
{% endif %}
sensor:
- platform: template
sensors:
cover_zhuwo:
value_template: >-
{% if is_state('binary_sensor.0x00158d0002009961_contact', 'on') %}
open
{% else %}
closed
{% endif %}
script:
cover_position:
sequence:
- service: cover.set_cover_position
data_template:
entity_id: cover.0x00124b0019dba041_cover
position: "{{position}}"
[backcolor=rgba(10, 10, 10, 0.4)]
Invalid config for [cover.template]: [data_template] is an invalid option for [cover.template]. Check: cover.template->covers->cover_zhuwo->data_template. (See ?, line ?).
报错这个请问是啥问题 帮忙修改下
|
|