Smart Home Automation Forum

Full Version: A16 rs485 problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
Help me pls for a16
not working relay after 8relay on rs485


- platform: modbus_controller
    name: 'modbus-switch2_1'
    address: 0  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_2'
    address: 1  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1
   
  - platform: modbus_controller
    name: 'modbus-switch2_3'
    address: 2  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_4'
    address: 3  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_5'
    address: 4  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1       

  - platform: modbus_controller
    name: 'modbus-switch2_6'
    address: 5  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_7'
    address: 6  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1
   
  - platform: modbus_controller
    name: 'modbus-switch2_8'
    address: 7  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_9'
    address: 8  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_10'
    address: 9  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1   

  - platform: modbus_controller
    name: 'modbus-switch2_11'
    address: 10  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1       

  - platform: modbus_controller
    name: 'modbus-switch2_12'
    address: 11  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_13'
    address: 12  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1
   
  - platform: modbus_controller
    name: 'modbus-switch2_14'
    address: 13  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_15'
    address: 14  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

  - platform: modbus_controller
    name: 'modbus-switch2_16'
    address: 15  # 0:relay1  1:relay2 ......
    register_type: coil
    bitmask: 1

address 10,11 etc not working
I can switch only 8 relays? my hardware A16
do you use KCS firmware? if YES, which version you are using?
Yes, v 1.0.24. First A16 working on esphome, second on kcs
please use this newest V2 version, here is download link: https://www.kincony.com/forum/showthread.php?tid=3791
(06-20-2024, 09:50 AM)admin Wrote: [ -> ]please use this newest V2 version, here is download link: https://www.kincony.com/forum/showthread.php?tid=3791

binding input to output not working
V2 firmware use IFTTT command for INPUT link with OUTPUT. my means, you can test V2 firmware, whether you can use modbus command for 9-16 channel output.
(06-20-2024, 10:31 AM)admin Wrote: [ -> ]V2 firmware use IFTTT command for INPUT link with OUTPUT. my means, you can test V2 firmware, whether you can use modbus command for 9-16 channel output.

OK
i have checked with OUTPUT9 with modbus command, it's OK.
[attachment=5464]
can you take a photo how you connect wire with your A16 board? whether you have connect the RED wire as mine?
[attachment=5465]
Ok, i'm tomorrow send video
Hi, v2 firmware also not working. What address 9-16 relay?
- platform: modbus_controller
name: 'modbus-switch2_13'
address: 12 # 0:relay1 1:relay2 ......
register_type: coil
bitmask: 1

Relay 13 - address 12? Or 0x0B?