Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,832
» Latest member: markusd1984
» Forum threads: 3,866
» Forum posts: 19,745

Full Statistics

Online Users
There are currently 35 online users.
» 0 Member(s) | 23 Guest(s)
AhrefsBot, Applebot, PetalBot, Sogou web, bot

Latest Threads
Very Low Volume even at M...
Forum: KinCony AS
Last Post: MartinBanner
Yesterday, 11:23 PM
» Replies: 0
» Views: 7
AS-ESP32-S3 won't initial...
Forum: Getting Started with ESPHome and Home Assistant
Last Post: MartinBanner
Yesterday, 11:03 PM
» Replies: 10
» Views: 222
N60 N30 N20 N10 ARM CPU f...
Forum: N30
Last Post: admin
Yesterday, 10:05 PM
» Replies: 6
» Views: 76
Just Arrived: Annoying Bu...
Forum: KinCony AS
Last Post: admin
03-25-2026, 10:12 PM
» Replies: 4
» Views: 1,060
kWh resolution
Forum: N30
Last Post: admin
03-25-2026, 10:11 PM
» Replies: 34
» Views: 1,232
Channels always have curr...
Forum: KC868-AP / ADR
Last Post: admin
03-25-2026, 09:09 AM
» Replies: 21
» Views: 6,071
"KCS" v3.24.2 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
03-24-2026, 05:58 AM
» Replies: 0
» Views: 130
N60 Energy RS485 Modbus P...
Forum: N60
Last Post: admin
03-24-2026, 05:42 AM
» Replies: 1
» Views: 366
N30 Energy RS485 Modbus P...
Forum: N30
Last Post: admin
03-24-2026, 05:41 AM
» Replies: 1
» Views: 440
N20 Energy RS485 Modbus P...
Forum: N20
Last Post: admin
03-24-2026, 05:40 AM
» Replies: 1
» Views: 388

  rs485 SHT
Posted by: Read.0h1 - 06-11-2025, 02:17 PM - Forum: F16 - Replies (5)

I apologize for my lack of knowledge here but I am trying to set up an SHT temperature and humidity sensor (purchased through your website) to my F16 board. I found YAML in a different thread and copied it and changed the pin numbers to match my board. I am using ESPhome through Homeassistant. The YAML pertaining to the temperature humidity sensor is as follows:

uart:
  - id: uart_modbus
    baud_rate: 9600
    tx_pin: 16
    rx_pin: 17
# Config Modbus
modbus:
  uart_id: uart_modbus
  id: modbus1
modbus_controller:
  - id: modbus_sensor
    address: 0x01  # device address
    modbus_id: modbus1
sensor:

  - platform: modbus_controller
    modbus_controller_id: modbus_sensor
    name: "RS485 Temperature Sensor"
    id: temperature_sensor
    address: 0x0000
    register_type: holding
    value_type: U_WORD
    unit_of_measurement: "°C"
    accuracy_decimals: 1
    filters:
      - lambda: if (x < 10000) return x * 0.1; else return -1 * (x - 10000) * 0.1;
   
  - platform: modbus_controller
    modbus_controller_id: modbus_sensor
    name: "RS485 Humidity Sensor"
    id: humidity_sensor
    address: 0x0001
    register_type: holding
    value_type: U_WORD
    unit_of_measurement: "%"
    accuracy_decimals: 1
    filters:
      - multiply: 0.1



The sensors read as unavailalbe in homeassistant. I have a feeling that the issue may be in the address of the specific sensors, but I have no idea since I have never used the RS485 pins before.

Print this item

  DS3231 battery
Posted by: cln - 06-11-2025, 07:36 AM - Forum: KC868-A16v3 - Replies (2)

Hello,
Can you tell me the reference number of the battery to insert into the holder to keep time?
I couldn't find this information in the documentation.
Kind regards.

Print this item

  F-24: Problem using built-in 433MHz receiver with ESPHome (GPIO40 issue)
Posted by: mwsieminski - 06-10-2025, 05:23 PM - Forum: F24 - Replies (3)

Hello,
I'm using the Kincony F-24 controller and trying to get the built-in 433MHz receiver working under ESPHome.
I get the following error:

Code:
[15:27:57][C][remote_receiver.esp32:161]: Remote Receiver:
[15:27:57][C][remote_receiver.esp32:162]:   Pin: GPIO40
[15:27:57][C][remote_receiver.esp32:173]:   Channel: 0
[15:27:57][C][remote_receiver.esp32:174]:   RMT memory blocks: 3
[15:27:57][C][remote_receiver.esp32:175]:   Clock divider: 80
[15:27:57][C][remote_receiver.esp32:178]:   Tolerance: 25%
[15:27:57][C][remote_receiver.esp32:179]:   Filter out pulses shorter than: 50 us
[15:27:57][C][remote_receiver.esp32:180]:   Signal is done after 10000 us of no changes
[15:27:57][E][remote_receiver.esp32:183]: Configuring RMT driver failed: ESP_ERR_INVALID_ARG (in rmt_config)
[15:27:57][E][component:085]:   Component remote_receiver is marked FAILED


Below is part of my ESPHome YAML configuration:
Code:
esphome:
  name: f24
  friendly_name: "Kincony F24 Controller"
  project:
    name: kincony.f24-smart-home
    version: "1.0"
 
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  id: ha_api
  encryption:
    key: !secret

ota:
  platform: esphome
  password: !secret

ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1
  domain: .local
  id: ethernet_interface


web_server:
  port: 80

i2c:
  - id: bus_a
    sda: GPIO8
    scl: GPIO18
    scan: true
    frequency: 400kHz

pcf8574:
  - id: 'pcf8574_outputs_9_24'
    i2c_id: bus_a
    address: 0x25
  - id: 'pcf8574_inputs_1_16'
    i2c_id: bus_a
    address: 0x24
  - id: 'pcf8574_outputs_1_8_inputs_17_24'
    i2c_id: bus_a
    address: 0x26

globals:
  - id: current_ip_address
    type: std::string
    restore_value: no
    initial_value: '"Booting..."'
  - id: ha_status_text
    type: std::string
    restore_value: no
    initial_value: '"Offline"'
  - id: rf_code_display
    type: std::string
    restore_value: no
    initial_value: '""'
  - id: click_counts
    type: int
    initial_value: '0'


# Sekcja definiująca fizyczne wyjścia (przekaźniki)
output:
  - platform: gpio
    id: output_wiatrolap
    pin: { pcf8574: pcf8574_outputs_1_8_inputs_17_24, number: 12, mode: OUTPUT, inverted: true }
  - platform: gpio
    id: output_salon
    pin: { pcf8574: pcf8574_outputs_1_8_inputs_17_24, number: 13, mode: OUTPUT, inverted: true }


binary_sensor:
  - platform: status
    name: "Kincony F24 Status"
    id: f24_status_ha
  - platform: template
    name: "Kincony F24 Ethernet Status"
    id: ethernet_connected_status
    lambda: |-
      return id(ethernet_interface).is_connected();
    on_press:
      then:
        - lambda: |-
            id(current_ip_address) = id(ethernet_interface).get_ip_addresses()[0].str();
            id(ha_status_text) = "ETH OK";
            ESP_LOGI("ethernet", "Ethernet connected. IP: %s", id(current_ip_address).c_str());
    on_release:
      then:
        - lambda: |-
            id(current_ip_address) = "AP Mode";
            id(ha_status_text) = "AP Mode";
            ESP_LOGW("ethernet", "Ethernet disconnected. Activating AP mode.");
  - platform: template
    id: wifi_ap_active
    name: "Kincony F24 WiFi AP Active"
    internal: true
    lambda: |-
      return !id(ethernet_interface).is_connected();


  - platform: gpio
    name: "Włącznik Wiatrołap"
    pin:
      pcf8574: pcf8574_inputs_1_16
      number: 0
      inverted: true
    filters:
      - delayed_on: 10ms
    on_press:
      then:
        - lambda: 'id(click_counts) = 0;'
    on_multi_click:
      - timing:
          - ON for at most 600ms
          - OFF for at most 600ms
          - ON for at most 600ms
          - OFF for at least 200ms
        then:
          - homeassistant.event:
              event: esphome.wiatrolap_double_click
              data:
                input: "1"
          - logger.log: "Włącznik Wiatrołap: Dwuklik"
      - timing:
          - ON for at most 600ms
          - OFF for at least 351ms
        then:
          - light.toggle: light_wiatrolap
          - logger.log: "Wlacznik Wiatrołap: Pojedynczy klik"

  - platform: gpio
    name: "Włącznik Salon"
    pin:
      pcf8574: pcf8574_inputs_1_16
      number: 1
      inverted: true
    filters:
      - delayed_on: 10ms
    on_press:
      then:
        - lambda: 'id(click_counts) = 0;'
    on_multi_click:
      - timing:
          - ON for at most 600ms
          - OFF for at most 600ms
          - ON for at most 600ms
          - OFF for at least 200ms
        then:
          - homeassistant.event:
              event: esphome.salon_double_click
          - logger.log: "Włącznik Salon: Dwuklik"
      - timing:
          - ON for at most 600ms
          - OFF for at least 351ms
        then:
          - light.toggle: light_salon
          - logger.log: "Wlacznik Salon: Pojedynczy klik"

 

# Sekcja definiująca logiczne encje świateł
light:
  - platform: binary
    name: "Wiatrołap"
    id: light_wiatrolap
    output: output_wiatrolap
  - platform: binary
    name: "Salon"
    id: light_salon
    output: output_salon

#normal version for RF receiver - not working
#remote_receiver:
#  pin:
#    number: GPIO40
#    inverted: true
#  dump:
#    - rc_switch
#  tolerance: 50%
#  filter: 250us
#  idle: 4ms
#  buffer_size: 2kb

#  on_rc_switch:
#    then:
#     - logger.log:
#         format: "RC Switch received. Code: %u"
#         args: [ 'x.code' ]
#    - lambda: |-
#        id(rf_code_display) = "RC: " + to_string(x.code);
#    - homeassistant.event:
#         event: esphome.f24_rf_received
#         data:
#          code: !lambda 'return x.code;'

# Minimal version for testing - not working
remote_receiver:
  pin:
    number: GPIO40
    inverted: true
  dump: rc_switch
 
button:
  - platform: restart
    name: "Kincony F24 Restart"

font:
  - file: "gfonts://Roboto"
    id: roboto_12
    size: 12
  - file: "gfonts://Roboto"
    id: roboto_10
    size: 10

display:
  - platform: ssd1306_i2c
    id: oled_display
    model: "SSD1306 128x64"
    address: 0x3C
    i2c_id: bus_a
    update_interval: 2s
    pages:
      - id: page1
        lambda: |-
          it.strftime(0, 0, id(roboto_10), "%H:%M:%S", id(homeassistant_time).now());
          it.print(0, 12, id(roboto_12), id(current_ip_address).c_str());
          it.print(0, 28, id(roboto_12), id(ha_status_text).c_str());
          if (!id(rf_code_display).empty()) {
            it.print(0, 44, id(roboto_12), id(rf_code_display).c_str());
          }
          it.horizontal_line(0, 57, 128);
          it.printf(0, 58, id(roboto_10), "F24 Controller");;
         
time:
  - platform: homeassistant
    id: homeassistant_time
    on_time:
      - seconds: 0
        minutes: 0
        then:
          - logger.log: "Synchronizing time with Home Assistant."

interval:
  - interval: 5s
    then:
      - lambda: |-
          if (id(ethernet_interface).is_connected()) {
            id(current_ip_address) = id(ethernet_interface).get_ip_addresses()[0].str();
            if (id(f24_status_ha).state) {
               id(ha_status_text) = "ETH HA OK";
            } else {
               id(ha_status_text) = "ETH OK";
            }
          } else if (id(wifi_ap_active).state) {
            id(current_ip_address) = "AP: 192.168.4.1";
            id(ha_status_text) = "AP Mode";
          } else {
            id(current_ip_address) = "No Network";
            id(ha_status_text) = "Offline";
          }
 

sensor:
  - platform: adc
    pin: GPIO5
    name: "F24 A1 Voltage"
    update_interval: 60s
    attenuation: 12db
  - platform: adc
    pin: GPIO7
    name: "F24 A2 Voltage"
    update_interval: 60s
    attenuation: 12db
  - platform: adc
    pin: GPIO6
    name: "F24 A3 Current"
    update_interval: 60s
    unit_of_measurement: mA
    attenuation: 12db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: GPIO4
    name: "F24 A4 Current"
    update_interval: 60s
    unit_of_measurement: mA
    attenuation: 12db
    filters:
      - multiply: 6.66666666

My questions:
  1. Is the 433MHz receiver really connected to native GPIO40 of the ESP32?
  2. Is this GPIO compatible with the RMT hardware required by remote_receiver in ESPHome?
  3. Could the RF receiver be connected via an I²C expander (like PCF8574), or is it mapped internally in another way?

Thanks for your support!

Print this item

  free sample
Posted by: peisenberg - 06-10-2025, 01:44 PM - Forum: Apply for free sample product - No Replies

I would like to request a KC868-A4 Free Sample to start a new project (B) for a smart home product for grow automation of hydroponic lettuce. System will be connected to LLM
Thank you.

Print this item

  revive old broken H32B
Posted by: belar - 06-10-2025, 10:16 AM - Forum: KC868-HxB series Smart Controller - Replies (7)

Hi, I have an old H32B,
H32B200526353

I once flashed it with too big a firmware, and it stopped working for me, you said that I need ch341a to flash it now.
Please tell me the order of actions
I have a problem with it, I need to revive it

bootloader tool not work
i have MiniPro TL866

Print this item

Photo What's H32B firmware how to download
Posted by: kenlgj - 06-10-2025, 09:02 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

dear:  l have a device ATT some photos. can you tell me what's firmware for it?

PLS




Attached Files Thumbnail(s)
           
Print this item

  Sharing My ESP-IDF Project: KC868-A32M and KC868-HAv2 with Modbus
Posted by: mrwolfj - 06-09-2025, 05:20 PM - Forum: DIY Project - Replies (2)

I'm sharing a project I developed using ESP-IDF with the KC868-A32M and KC868-HAv2 boards, incorporating Modbus communication. 

While I won't be continuing active development on this particular project, I wanted to open-source my work to help others who might be embarking on a similar journey.

Developing with these boards and Modbus can present unique challenges, and my aim here is to provide a starting point and demonstrate how I approached the integration using ESP-IDF. 

My hope is that this project will serve as a valuable reference and save you some time and effort in your own development. Feel free to explore the code, adapt it to your needs, and build upon it  Smile

You can find the project files here TrigPLC-ESP

Print this item

  Communication between two A16 over RS485 on ESPHOME with uart not working
Posted by: MarioR - 06-09-2025, 04:50 PM - Forum: KC868-A16 - Replies (5)

Hello,

i would like to have two A16s communicate with uart via the RS485 in the ESPHome.
The two RS485 are cross-connected A=>B and B=>A.

One A16 is the transmitter and the other is the receiver.

When the binary sensor is triggered, a message should be sent to the receiver, which should then trigger an action.

So far the log says that the transmitter is transmitting, but according to the log nothing arrives at the receiver.

Transmitter, i have shortened the yaml to the essential parts:

Code:
substitutions:
  mydelay_on: 50ms
  mydelay_off: 300ms
  uartcommand_allup: 0xAC, 0xAB, 0x01, 0x99
  uartcommand_alldown: 0xAC, 0xAB, 0x02, 0x99

esphome:
  name: roller-shutter-2
  friendly_name: Roller_Shutter_2
  on_boot:
    priority: -100
    then:
      - lambda: |-
          id(rollershutter_2).MySetup();
          id(rollershutter_2).InitialRun();

esp32:
  board: esp32dev
  framework:
    type: esp-idf

debug:

# Logger must be at least debug (default)
logger:
  level: DEBUG
  baud_rate: 9600

uart:
  - id: rs485
    tx_pin: GPIO13
    rx_pin: GPIO16
    baud_rate: 9600
    stop_bits: 1
    parity: NONE
    data_bits: 8
    debug:
      direction: BOTH
      dummy_receiver: false
      sequence:
        - lambda: |-
            UARTDebug::log_binary(direction, bytes, ';');
button:
  - platform: uart
    id: uart_master_all_up
    uart_id: rs485
    data: $uartcommand_allup
  - platform: uart
    uart_id: rs485
    id: uart_master_all_down
    data: $uartcommand_alldown

pcf8574:
  - id: inputs_1_8
    address: 0x22
    pcf8575: false
  - id: inputs_9_16
    address: 0x21
    pcf8575: false
  - id: outputs_1_8
    address: 0x24
    pcf8575: false
  - id: outputs_9_16
    address: 0x25
    pcf8575: false

binary_sensor:
  - platform: gpio
    name: "ZEN_I_U"
    pin:
      pcf8574: inputs_9_16
      number: 2
      mode: INPUT
      inverted: true
    filters:
      - delayed_on: $mydelay_on
      - delayed_off: $mydelay_off
    on_press:
      then:
        - uart.write: [0xAC, 0xAB, 0x01, 0x99]

  - platform: gpio
    name: "ZEN_I_D"
    pin:
      pcf8574: inputs_9_16
      number: 3
      mode: INPUT
      inverted: true
    filters:
      - delayed_on: $mydelay_on
      - delayed_off: $mydelay_off
    on_press:
      then:
        - uart.write: [0xAC, 0xAB, 0x02, 0x99]

  - platform: gpio
    name: "URL_I_UD"
    pin:
      pcf8574: inputs_9_16
      number: 4
      mode: INPUT
      inverted: true
    filters:
      - delayed_on: $mydelay_on
      - delayed_off: $mydelay_off
    on_press:
      then:
        - switch.turn_on: uart_master_holiday
    on_release:
      then:
        - switch.turn_off: uart_master_holiday

switch:
  - platform: template
    id: uart_master_holiday
    optimistic: True
    on_turn_on:
      then:
        - uart.write: [0xAC, 0xAB, 0x03, 0x99]
    on_turn_off:
      then:
        - uart.write: [0xAC, 0xAB, 0x04, 0x99]

Receiver, also  shortened:

Code:
esphome:
  name: roller-shutter-1
  friendly_name: Roller_Shutter_1

esp32:
  board: esp32dev
  framework:
    type: esp-idf

debug:

# Logger must be at least debug (default)
logger:
  level: DEBUG
  baud_rate: 9600

uart:
  - id: rs485
    tx_pin: GPIO13
    rx_pin: GPIO16
    baud_rate: 9600
    stop_bits: 1
    parity: NONE
    data_bits: 8
    debug:
      direction: RX
      dummy_receiver: true
      sequence:
        - lambda: |-
            UARTDebug::log_binary(direction, bytes, ';');

Where can i search the problem?

Best regards Mario

Print this item

  KC868-A128 INPUT toggle OUTPUT ESPhome yaml
Posted by: admin - 06-09-2025, 08:52 AM - Forum: KC868-A128 - No Replies

   
   

Code:
esphome:
  name: a128
  friendly_name: a128

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:


# Example configuration entry
i2c:
   - id: bus_a
     sda: 5
     scl: 16
     scan: true
     frequency: 400kHz
   - id: bus_b
     sda: 15
     scl: 4
     scan: true
     frequency: 400kHz
     

# Example configuration entry
ethernet:
   type: LAN8720
   mdc_pin: GPIO23
   mdio_pin: GPIO18
   clk_mode: GPIO17_OUT
   phy_addr: 0

  # Optional manual IP
  # manual_ip:
  #   static_ip: 192.168.1.198
  #   gateway: 192.168.1.1
  #   subnet: 255.255.255.0 



# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_out_2'  # for output channel 17-32
    i2c_id: bus_a
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_out_3'  # for output channel 33-48
    i2c_id: bus_a
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_out_4'  # for output channel 49-64
    i2c_id: bus_a
    address: 0x22
    pcf8575: true
   
  - id: 'pcf8574_hub_out_5'  # for output channel 65-80
    i2c_id: bus_a
    address: 0x26
    pcf8575: true

  - id: 'pcf8574_hub_out_6'  # for output channel 81-96
    i2c_id: bus_a
    address: 0x27
    pcf8575: true

  - id: 'pcf8574_hub_out_7'  # for output channel 97-112
    i2c_id: bus_a
    address: 0x20
    pcf8575: true

  - id: 'pcf8574_hub_out_8'  # for output channel 113-128
    i2c_id: bus_a
    address: 0x23
    pcf8575: true



  - id: 'pcf8574_hub_in_1'  # for a128-input channel 1-16
    i2c_id: bus_b
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_in_2'  # for a128-input channel 17-32
    i2c_id: bus_b
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_in_3'  # for a128-input channel 33-48
    i2c_id: bus_b
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_in_4'  # for a128-input channel 49-64
    i2c_id: bus_b
    address: 0x22
    pcf8575: true   

  - id: 'pcf8574_hub_in_5'  # for a128-input channel 65-80
    i2c_id: bus_b
    address: 0x26
    pcf8575: true   

  - id: 'pcf8574_hub_in_6'  # for a128-input channel 81-96
    i2c_id: bus_b
    address: 0x27
    pcf8575: true   

  - id: 'pcf8574_hub_in_7'  # for a128-input channel 97-112
    i2c_id: bus_b
    address: 0x20
    pcf8575: true   

  - id: 'pcf8574_hub_in_8'  # for a128-input channel 113-128
    i2c_id: bus_b
    address: 0x23
    pcf8575: true   

   
# Individual outputs
switch:
  - platform: gpio
    name: "a128-light1"
    id: light1
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light5"
    id: light5
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light6"
    id: light6
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light7"
    id: light7
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light8"
    id: light8
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light9"
    id: light9
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light10"
    id: light10
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light11"
    id: light11
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light12"
    id: light12
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light13"
    id: light13
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light14"
    id: light14
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light15"
    id: light15
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light16"
    id: light16
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light17"
    id: light17
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light18"
    id: light18
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light19"
    id: light19
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light20"
    id: light20
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light21"
    id: light21
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light22"
    id: light22
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light23"
    id: light23
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light24"
    id: light24
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light25"
    id: light25
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light26"
    id: light26
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light27"
    id: light27
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light28"
    id: light28
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light29"
    id: light29
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light30"
    id: light30
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light31"
    id: light31
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light32"
    id: light32
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light33"
    id: light33
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light34"
    id: light34
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light35"
    id: light35
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light36"
    id: light36
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light37"
    id: light37
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light38"
    id: light38
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light39"
    id: light39
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light40"
    id: light40
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light41"
    id: light41
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light42"
    id: light42
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light43"
    id: light43
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light44"
    id: light44
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light45"
    id: light45
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light46"
    id: light46
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light47"
    id: light47
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light48"
    id: light48
    pin:
      pcf8574: pcf8574_hub_out_3
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light49"
    id: light49
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light50"
    id: light50
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light51"
    id: light51
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light52"
    id: light52
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light53"
    id: light53
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light54"
    id: light54
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light55"
    id: light55
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light56"
    id: light56
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light57"
    id: light57
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light58"
    id: light58
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light59"
    id: light59
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light60"
    id: light60
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light61"
    id: light61
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light62"
    id: light62
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light63"
    id: light63
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light64"
    id: light64
    pin:
      pcf8574: pcf8574_hub_out_4
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light65"
    id: light65
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light66"
    id: light66
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light67"
    id: light67
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light68"
    id: light68
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light69"
    id: light69
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light70"
    id: light70
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light71"
    id: light71
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light72"
    id: light72
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light73"
    id: light73
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light74"
    id: light74
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light75"
    id: light75
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light76"
    id: light76
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light77"
    id: light77
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light78"
    id: light78
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light79"
    id: light79
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light80"
    id: light80
    pin:
      pcf8574: pcf8574_hub_out_5
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light81"
    id: light81
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light82"
    id: light82
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light83"
    id: light83
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light84"
    id: light84
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light85"
    id: light85
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light86"
    id: light86
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light87"
    id: light87
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light88"
    id: light88
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light89"
    id: light89
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light90"
    id: light90
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light91"
    id: light91
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light92"
    id: light92
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light93"
    id: light93
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light94"
    id: light94
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light95"
    id: light95
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light96"
    id: light96
    pin:
      pcf8574: pcf8574_hub_out_6
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light97"
    id: light97
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light98"
    id: light98
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light99"
    id: light99
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light100"
    id: light100
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light101"
    id: light101
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light102"
    id: light102
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light103"
    id: light103
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light104"
    id: light104
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light105"
    id: light105
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light106"
    id: light106
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light107"
    id: light107
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light108"
    id: light108
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light109"
    id: light109
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light110"
    id: light110
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light111"
    id: light111
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light112"
    id: light112
    pin:
      pcf8574: pcf8574_hub_out_7
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light113"
    id: light113
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light114"
    id: light114
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light115"
    id: light115
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light116"
    id: light116
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light117"
    id: light117
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light118"
    id: light118
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light119"
    id: light119
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light120"
    id: light120
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light121"
    id: light121
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light122"
    id: light122
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light123"
    id: light123
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light124"
    id: light124
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light125"
    id: light125
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light126"
    id: light126
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light127"
    id: light127
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a128-light128"
    id: light128
    pin:
      pcf8574: pcf8574_hub_out_8
      number: 15
      mode: OUTPUT
      inverted: true


     
# Individual inputs
binary_sensor:
  - platform: gpio
    name: "a128-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light1

  - platform: gpio
    name: "a128-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light2

  - platform: gpio
    name: "a128-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light3

  - platform: gpio
    name: "a128-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light4

  - platform: gpio
    name: "a128-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light5

  - platform: gpio
    name: "a128-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light6

  - platform: gpio
    name: "a128-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light7

  - platform: gpio
    name: "a128-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light8

  - platform: gpio
    name: "a128-input9"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light9

  - platform: gpio
    name: "a128-input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light10

  - platform: gpio
    name: "a128-input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light11

  - platform: gpio
    name: "a128-input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light12

  - platform: gpio
    name: "a128-input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light13

  - platform: gpio
    name: "a128-input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light14

  - platform: gpio
    name: "a128-input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light15

  - platform: gpio
    name: "a128-input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light16

  - platform: gpio
    name: "a128-input17"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light17

  - platform: gpio
    name: "a128-input18"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light18

  - platform: gpio
    name: "a128-input19"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light19

  - platform: gpio
    name: "a128-input20"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light20

  - platform: gpio
    name: "a128-input21"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light21

  - platform: gpio
    name: "a128-input22"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light22

  - platform: gpio
    name: "a128-input23"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light23

  - platform: gpio
    name: "a128-input24"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light24

  - platform: gpio
    name: "a128-input25"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light25

  - platform: gpio
    name: "a128-input26"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light26

  - platform: gpio
    name: "a128-input27"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light27

  - platform: gpio
    name: "a128-input28"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light28

  - platform: gpio
    name: "a128-input29"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light29

  - platform: gpio
    name: "a128-input30"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light30

  - platform: gpio
    name: "a128-input31"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light31

  - platform: gpio
    name: "a128-input32"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light32

  - platform: gpio
    name: "a128-input33"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light33

  - platform: gpio
    name: "a128-input34"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light34

  - platform: gpio
    name: "a128-input35"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light35

  - platform: gpio
    name: "a128-input36"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light36

  - platform: gpio
    name: "a128-input37"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light37

  - platform: gpio
    name: "a128-input38"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light38

  - platform: gpio
    name: "a128-input39"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light39

  - platform: gpio
    name: "a128-input40"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light40

  - platform: gpio
    name: "a128-input41"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light41

  - platform: gpio
    name: "a128-input42"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light42

  - platform: gpio
    name: "a128-input43"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light43

  - platform: gpio
    name: "a128-input44"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light44

  - platform: gpio
    name: "a128-input45"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light45

  - platform: gpio
    name: "a128-input46"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light46

  - platform: gpio
    name: "a128-input47"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light47

  - platform: gpio
    name: "a128-input48"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light48

  - platform: gpio
    name: "a128-input49"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light49

  - platform: gpio
    name: "a128-input50"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light50

  - platform: gpio
    name: "a128-input51"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light51

  - platform: gpio
    name: "a128-input52"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light52

  - platform: gpio
    name: "a128-input53"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light53

  - platform: gpio
    name: "a128-input54"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light54

  - platform: gpio
    name: "a128-input55"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light55

  - platform: gpio
    name: "a128-input56"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light56

  - platform: gpio
    name: "a128-input57"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light57

  - platform: gpio
    name: "a128-input58"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light58

  - platform: gpio
    name: "a128-input59"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light59

  - platform: gpio
    name: "a128-input60"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light60

  - platform: gpio
    name: "a128-input61"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light61

  - platform: gpio
    name: "a128-input62"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light62

  - platform: gpio
    name: "a128-input63"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light63

  - platform: gpio
    name: "a128-input64"
    pin:
      pcf8574: pcf8574_hub_in_4
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light64

  - platform: gpio
    name: "a128-input65"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light65

  - platform: gpio
    name: "a128-input66"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light66

  - platform: gpio
    name: "a128-input67"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light67

  - platform: gpio
    name: "a128-input68"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light68

  - platform: gpio
    name: "a128-input69"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light69

  - platform: gpio
    name: "a128-input70"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light70

  - platform: gpio
    name: "a128-input71"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light71

  - platform: gpio
    name: "a128-input72"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light72

  - platform: gpio
    name: "a128-input73"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light73

  - platform: gpio
    name: "a128-input74"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light74

  - platform: gpio
    name: "a128-input75"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light75

  - platform: gpio
    name: "a128-input76"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light76

  - platform: gpio
    name: "a128-input77"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light77

  - platform: gpio
    name: "a128-input78"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light78

  - platform: gpio
    name: "a128-input79"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light79

  - platform: gpio
    name: "a128-input80"
    pin:
      pcf8574: pcf8574_hub_in_5
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light80

  - platform: gpio
    name: "a128-input81"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light81

  - platform: gpio
    name: "a128-input82"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light82

  - platform: gpio
    name: "a128-input83"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light83

  - platform: gpio
    name: "a128-input84"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light84

  - platform: gpio
    name: "a128-input85"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light85

  - platform: gpio
    name: "a128-input86"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light86

  - platform: gpio
    name: "a128-input87"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light87

  - platform: gpio
    name: "a128-input88"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light88

  - platform: gpio
    name: "a128-input89"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light89

  - platform: gpio
    name: "a128-input90"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light90

  - platform: gpio
    name: "a128-input91"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light91

  - platform: gpio
    name: "a128-input92"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light92

  - platform: gpio
    name: "a128-input93"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light93

  - platform: gpio
    name: "a128-input94"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light94

  - platform: gpio
    name: "a128-input95"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light95

  - platform: gpio
    name: "a128-input96"
    pin:
      pcf8574: pcf8574_hub_in_6
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light96

  - platform: gpio
    name: "a128-input97"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light97

  - platform: gpio
    name: "a128-input98"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light98

  - platform: gpio
    name: "a128-input99"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light99

  - platform: gpio
    name: "a128-input100"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light100

  - platform: gpio
    name: "a128-input101"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light101

  - platform: gpio
    name: "a128-input102"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light102

  - platform: gpio
    name: "a128-input103"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light103

  - platform: gpio
    name: "a128-input104"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light104

  - platform: gpio
    name: "a128-input105"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light105

  - platform: gpio
    name: "a128-input106"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light106

  - platform: gpio
    name: "a128-input107"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light107

  - platform: gpio
    name: "a128-input108"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light108

  - platform: gpio
    name: "a128-input109"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light109

  - platform: gpio
    name: "a128-input110"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light110

  - platform: gpio
    name: "a128-input111"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light111

  - platform: gpio
    name: "a128-input112"
    pin:
      pcf8574: pcf8574_hub_in_7
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light112

  - platform: gpio
    name: "a128-input113"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light113

  - platform: gpio
    name: "a128-input114"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light114

  - platform: gpio
    name: "a128-input115"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light115

  - platform: gpio
    name: "a128-input116"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light116

  - platform: gpio
    name: "a128-input117"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light117

  - platform: gpio
    name: "a128-input118"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light118

  - platform: gpio
    name: "a128-input119"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light119

  - platform: gpio
    name: "a128-input120"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light120

  - platform: gpio
    name: "a128-input121"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 8
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light121

  - platform: gpio
    name: "a128-input122"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 9
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light122

  - platform: gpio
    name: "a128-input123"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 10
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light123

  - platform: gpio
    name: "a128-input124"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 11
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light124

  - platform: gpio
    name: "a128-input125"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 12
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light125

  - platform: gpio
    name: "a128-input126"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 13
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light126

  - platform: gpio
    name: "a128-input127"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 14
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light127

  - platform: gpio
    name: "a128-input128"
    pin:
      pcf8574: pcf8574_hub_in_8
      number: 15
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: light128


web_server:
  port: 80
yaml file download:

.txt   KC868-A128-HA-input-toggle-output.txt (Size: 50.21 KB / Downloads: 214)

firmware BIN file download (download at 0x0 address , directly to use): 

.zip   a128-input-toggle-output.zip (Size: 418.19 KB / Downloads: 391)

after download firmware, ethernet will work as DHCP mode. find the IP address from your router, then use IP address login by web browser.

Print this item

  Does KCS v3 firmware for KC868-H16S3 support a 'delay' parameter in MQTT SET commands
Posted by: itzek - 06-09-2025, 06:21 AM - Forum: B16 - Replies (1)

Hello admin
I am using a B16 smart relay controller with your KCS v3 firmware. I am integrating it with Home Assistant to control a Somfy WT roller shutter.
For this application, I need to send an MQTT command to activate a relay for a specific duration (e.g., "turn on output1 for 3 seconds, then turn it off automatically").
I've reviewed the KCS v3 MQTT protocol document (specifically, section 1 about setting ON/OFF of a digital output channel). It shows how to turn relays ON or OFF:

Code:
{"outputX":{"value":true}}

Code:
{"outputX":{"value":false}}
My question is: Does KCS v3 firmware support an additional parameter like
Code:
{"delay": milliseconds}
within the MQTT SET command, similar to how some other firmwares allow?
For example, would a command like this work to turn on
Code:
output1
for 3 seconds and then automatically turn it off?
Code:
{"output1":{"value":true}},{"delay":3000}
If not, what is the recommended method for implementing time-based relay control (e.g., activating a relay for a specific duration) when integrating with Home Assistant using KCS v3 firmware?
Thank you for your assistance.

Print this item