Smart Home Automation Forum
integrate KC868-Server by RS485 modbus switch to home assistant - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-Server Raspberry Pi4 local server (https://www.kincony.com/forum/forumdisplay.php?fid=17)
+--- Thread: integrate KC868-Server by RS485 modbus switch to home assistant (/showthread.php?tid=2766)



integrate KC868-Server by RS485 modbus switch to home assistant - admin - 04-06-2023

modbus:
  - name: hub1
    type: serial
    baudrate: 9600
    bytesize: 8
    method: rtu
    parity: N
    port: /dev/ttyS0
    stopbits: 1
    switches:
      - name: Modbus-S1
        slave: 1
        address: 0
        write_type: coil
      - name: Modbus-S2
        slave: 1
        address: 1
        write_type: coil
      - name: Modbus-S3
        slave: 1
        address: 2
        write_type: coil
      - name: Modbus-S4
        slave: 1
        address: 3
        write_type: coil
      - name: Modbus-S5
        slave: 1
        address: 4
        write_type: coil
      - name: Modbus-S6
        slave: 1
        address: 5
        write_type: coil
      - name: Modbus-S7
        slave: 1
        address: 6
        write_type: coil
      - name: Modbus-S8
        slave: 1
        address: 7
        write_type: coil
      - name: Modbus-S9
        slave: 1
        address: 8
        write_type: coil
      - name: Modbus-S10
        slave: 1
        address: 9
        write_type: coil
      - name: Modbus-S11
        slave: 1
        address: 10
        write_type: coil
      - name: Modbus-S12
        slave: 1
        address: 11
        write_type: coil
      - name: Modbus-S13
        slave: 1
        address: 12
        write_type: coil
      - name: Modbus-S14
        slave: 1
        address: 13
        write_type: coil
      - name: Modbus-S15
        slave: 1
        address: 14
        write_type: coil
      - name: Modbus-S16
        slave: 1
        address: 15
        write_type: coil