06-27-2024, 11:13 AM
sorry for the delay. today i have installed new component , it work well with RELAY OUTPUT and INPUT ports.
here is my yaml file:
switch:
- platform: gpiod
switches:
- name: "CM4 relay1"
port: 5
- name: "CM4 relay2"
port: 22
- name: "CM4 relay3"
port: 17
- name: "CM4 relay4"
port: 4
- name: "CM4 relay5"
port: 6
- name: "CM4 relay6"
port: 13
- name: "CM4 relay7"
port: 19
- name: "CM4 relay8"
port: 26
binary_sensor:
- platform: gpiod
sensors:
- name: "CM4 IN1"
port: 18
- name: "CM4 IN2"
port: 23
- name: "CM4 IN3"
port: 24
- name: "CM4 IN4"
port: 25
- name: "CM4 IN5"
port: 12
- name: "CM4 IN6"
port: 16
- name: "CM4 IN7"
port: 20
- name: "CM4 IN8"
port: 21
just use this: https://github.com/jdeneef/ha_gpiod install by HACS
here is photo when i test with OUTPUT and INPUT.
here is my yaml file:
switch:
- platform: gpiod
switches:
- name: "CM4 relay1"
port: 5
- name: "CM4 relay2"
port: 22
- name: "CM4 relay3"
port: 17
- name: "CM4 relay4"
port: 4
- name: "CM4 relay5"
port: 6
- name: "CM4 relay6"
port: 13
- name: "CM4 relay7"
port: 19
- name: "CM4 relay8"
port: 26
binary_sensor:
- platform: gpiod
sensors:
- name: "CM4 IN1"
port: 18
- name: "CM4 IN2"
port: 23
- name: "CM4 IN3"
port: 24
- name: "CM4 IN4"
port: 25
- name: "CM4 IN5"
port: 12
- name: "CM4 IN6"
port: 16
- name: "CM4 IN7"
port: 20
- name: "CM4 IN8"
port: 21
just use this: https://github.com/jdeneef/ha_gpiod install by HACS
here is photo when i test with OUTPUT and INPUT.