Smart Home Automation Forum
KinCony Server16 home assistant yaml for Relay and Digital input - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module (https://www.kincony.com/forum/forumdisplay.php?fid=53)
+--- Thread: KinCony Server16 home assistant yaml for Relay and Digital input (/showthread.php?tid=5438)



KinCony Server16 home assistant yaml for Relay and Digital input - admin - 04-02-2024

   
Code:
binary_sensor:
  - platform: mcp23017
    i2c_address: 0x20
    invert_logic: true
    pins:
      0 : Button_1
      1 : Button_2
      2 : Button_3
      3 : Button_4
      4 : Button_5
      5 : Button_6
      6 : Button_7
      7 : Button_8
      8 : Button_9     
      9 : Button_10     
      10 : Button_11     
      11 : Button_12     
      12 : Button_13     
      13 : Button_14     
      14 : Button_15
      15 : Button_16

     
switch:
  - platform: mcp23017
    i2c_address: 0x22
    hw_sync: false
    invert_logic: true
    pins:
      0 : Output_1
      1 : Output_2
      2 : Output_3
      3 : Output_4
      4 : Output_5
      5 : Output_6
      6 : Output_7
      7 : Output_8
      8 : Output_9
      9 : Output_10
      10 : Output_11
      11 : Output_12
      12 : Output_13
      13 : Output_14
      14 : Output_15
      15 : Output_16
download ymal: 

.txt   Server16_HA_config.txt (Size: 919 bytes / Downloads: 36)
use by mcp23017 for HACS github link: https://github.com/jpcornil-git/HA-mcp23017