12-08-2025, 12:05 PM
Hello, I have a KC868-A8, i configured it by YAML CONFIG, to control the 4 shutters work with physical switches.
When I operate the shutter from the Home Assistant dashboard, I get the percentage information for the opening level, but when I operate it with a physical switch, I don't get that information.
Configuration
switch:
- platform: gpio
name: "light5"
id: relay05
interlock: [relay06]
pin:
pcf8574: pcf8574_hub_out_1
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "light6"
id: relay06
interlock: [relay05]
pin:
pcf8574: pcf8574_hub_out_1
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "light7"
id: relay07
interlock: [relay08]
pin:
pcf8574: pcf8574_hub_out_1
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "light8"
id: relay08
interlock: [relay07]
pin:
pcf8574: pcf8574_hub_out_1
number: 7
mode: OUTPUT
inverted: true
#################################################################################
binary_sensor:
- platform: gpio
name: "input1"
on_press:
then:
- switch.toggle: relay01
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "input2"
on_press:
then:
- switch.toggle: relay02
pin:
pcf8574: pcf8574_hub_in_1
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "input3"
on_press:
then:
- switch.toggle: relay03
pin:
pcf8574: pcf8574_hub_in_1
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "input4"
on_press:
then:
- switch.toggle: relay04
pin:
pcf8574: pcf8574_hub_in_1
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "input5"
on_press:
then:
- switch.toggle: relay05
pin:
pcf8574: pcf8574_hub_in_1
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "input6"
on_press:
then:
- switch.toggle: relay06
pin:
pcf8574: pcf8574_hub_in_1
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "input7"
on_press:
then:
- switch.toggle: relay07
pin:
pcf8574: pcf8574_hub_in_1
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "input8"
on_press:
then:
- switch.toggle: relay08
pin:
pcf8574: pcf8574_hub_in_1
number: 7
mode: INPUT
inverted: true
#################################################################################
cover:
- platform: time_based
name: "VOLET 1"
open_action:
- switch.turn_on: 'relay05'
open_duration: 30sec
close_action:
- switch.turn_on: 'relay06'
close_duration: 30sec
stop_action:
- switch.turn_off: 'relay05'
- switch.turn_off: 'relay06'
- platform: time_based
name: "VOLET2"
open_action:
- switch.turn_on: 'relay07'
open_duration: 20sec
close_action:
- switch.turn_on: 'relay08'
close_duration: 20sec
stop_action:
- switch.turn_off: 'relay07'
- switch.turn_off: 'relay08'
When I operate the shutter from the Home Assistant dashboard, I get the percentage information for the opening level, but when I operate it with a physical switch, I don't get that information.
Configuration
switch:
- platform: gpio
name: "light5"
id: relay05
interlock: [relay06]
pin:
pcf8574: pcf8574_hub_out_1
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "light6"
id: relay06
interlock: [relay05]
pin:
pcf8574: pcf8574_hub_out_1
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "light7"
id: relay07
interlock: [relay08]
pin:
pcf8574: pcf8574_hub_out_1
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "light8"
id: relay08
interlock: [relay07]
pin:
pcf8574: pcf8574_hub_out_1
number: 7
mode: OUTPUT
inverted: true
#################################################################################
binary_sensor:
- platform: gpio
name: "input1"
on_press:
then:
- switch.toggle: relay01
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "input2"
on_press:
then:
- switch.toggle: relay02
pin:
pcf8574: pcf8574_hub_in_1
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "input3"
on_press:
then:
- switch.toggle: relay03
pin:
pcf8574: pcf8574_hub_in_1
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "input4"
on_press:
then:
- switch.toggle: relay04
pin:
pcf8574: pcf8574_hub_in_1
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "input5"
on_press:
then:
- switch.toggle: relay05
pin:
pcf8574: pcf8574_hub_in_1
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "input6"
on_press:
then:
- switch.toggle: relay06
pin:
pcf8574: pcf8574_hub_in_1
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "input7"
on_press:
then:
- switch.toggle: relay07
pin:
pcf8574: pcf8574_hub_in_1
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "input8"
on_press:
then:
- switch.toggle: relay08
pin:
pcf8574: pcf8574_hub_in_1
number: 7
mode: INPUT
inverted: true
#################################################################################
cover:
- platform: time_based
name: "VOLET 1"
open_action:
- switch.turn_on: 'relay05'
open_duration: 30sec
close_action:
- switch.turn_on: 'relay06'
close_duration: 30sec
stop_action:
- switch.turn_off: 'relay05'
- switch.turn_off: 'relay06'
- platform: time_based
name: "VOLET2"
open_action:
- switch.turn_on: 'relay07'
open_duration: 20sec
close_action:
- switch.turn_on: 'relay08'
close_duration: 20sec
stop_action:
- switch.turn_off: 'relay07'
- switch.turn_off: 'relay08'

