跳转至

使用ncn5120模块-在hassio中快速配置

  1. 硬件连接

参考前面两个视频的内容,使用usb或者wifi连接方式都可以

  1. 增加add-on仓库

https://github.com/da-anda/hass-io-addons

https://github.com/zhujisheng/hass-io-addons

  1. 配置

    address: 0.0.1
    client_address: '0.0.2:10'
    interface: tpuart
    device: /dev/ttyACM0
    usb_filters: ''
    custom_config: |-
      [main]
      addr = 0.0.1
      client-addrs = 0.0.2:10
      connections = server,A.tcp,interface
      logfile = /dev/stdout
    
      [A.tcp]
      server = knxd_tcp
    
      [server]
      server = ets_router
      tunnel = tunnel
      router = router
      discover = true
      name = knxd
    
      [interface]
      driver = ncn5120
      ip-address = 192.168.1.3
      dest-port = 5120
      #device = /dev/ttyUSB0
      #baudrate = 19200
    
  2. 在HomeAssistant中配置KNX设备

    knx:
      tunneling:
        host: '127.0.0.1'
        port: 3671
        local_ip: '127.0.0.1'
      light:
        - name: 卧室射灯
          address: '1/6/9'
          state_address: '1/6/9'
        - name: 客厅灯带
          address: '1/5/233'
          state_address: '1/5/233'
    

返回课程目录↩