my configuration if someone need... for Home Assistant
interlock in my case set to 1 second but it possible to set 100;200;300 millisecond or something simmilar
Template for cover (for configuration.yaml or separate name_file.yaml):
switch.relay1c - shutter down
switch.relay2c -shutter up
entity card : ( "Paper Buttons Row" from HACS required)
Time for open and close shutters i have setting direct in KC868-H32B.
Result:
Enjoy
interlock in my case set to 1 second but it possible to set 100;200;300 millisecond or something simmilar
Template for cover (for configuration.yaml or separate name_file.yaml):
switch.relay1c - shutter down
switch.relay2c -shutter up
Code:
cover:
- platform: template
covers:
garderoba:
device_class: shutter
friendly_name: "Roleta garderoba"
position_template: 50
open_cover:
- service: switch.turn_off
target:
entity_id: switch.relay1c
- condition: state
entity_id: switch.relay2c
state: "off"
- delay: '00:00:01'
- service: switch.turn_on
target:
entity_id: switch.relay2c
close_cover:
- service: switch.turn_off
target:
entity_id: switch.relay2c
- condition: state
entity_id: switch.relay1c
state: "off"
- delay: '00:00:01'
- service: switch.turn_on
target:
entity_id: switch.relay1c
stop_cover:
service: switch.turn_off
target:
entity_id:
- switch.relay1c
- switch.relay2c
icon_template: >-
{% if is_state('switch.relay1c', 'on') %}
mdi:arrow-down-bold-outline
{% elif is_state('switch.relay2c', 'on') %}
mdi:arrow-up-bold-outline
{% endif %}
entity card : ( "Paper Buttons Row" from HACS required)
Code:
type: entities
entities:
- entity: cover.garderoba
card_mod:
style: |
:host {
{% if states('switch.relay1c') == 'on' %}
--paper-item-icon-color: red;
color: ;
{% elif states('switch.relay2c') == 'on' %}
--paper-item-icon-color: red;
color: ;
{% endif %}
}
Time for open and close shutters i have setting direct in KC868-H32B.
Result:
Enjoy
