Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-H32B blinds motor control and connect
#7
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

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  Cool

   
Reply


Messages In This Thread
RE: KC868-H32B blinds motor control and connect - by mnichu - 11-17-2022, 10:00 PM

Forum Jump:


Users browsing this thread:
2 Guest(s)