Smart Home Automation Forum
Troubleshooting: Binary Sensor Entities Not Appearing - 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: Troubleshooting: Binary Sensor Entities Not Appearing (/showthread.php?tid=5784)



Troubleshooting: Binary Sensor Entities Not Appearing - engrezk - 05-22-2024

Why aren't binary_sensor entities for mini server appearing even though I followed the same tutorial in the video 

https://www.youtube.com/watch?v=J5GRh7GkmfQ&t=254s&ab_channel=KinConyIoT

and used the provided codes as shown ?
I kindly request assistance in using these entities

Code:
switch:
  - platform: rpi_gpio
    switches:
      - port: 5
        name: "CM4 relay1"
      - port: 22
        name: "CM4 relay2"
      - port: 17
        name: "CM4 relay3"
      - port: 4
        name: "CM4 relay4"
      - port: 6
        name: "CM4 relay5"
      - port: 13
        name: "CM4 relay6"
      - port: 19
        name: "CM4 relay7"
      - port: 26
        name: "CM4 relay8"
       
binary_sensor:
  - platform: rpi_gpio
    sensors:
      - port: 18
        name: "CM4 IN1"
        invert_logic: true
      - port: 23
        name: "CM4 IN2"
        invert_logic: true
      - port: 24
        name: "CM4 IN3"
        invert_logic: true
      - port: 25
        name: "CM4 IN4"
        invert_logic: true
      - port: 12
        name: "CM4 IN5"
        invert_logic: true
      - port: 16
        name: "CM4 IN6"
        invert_logic: true
      - port: 20
        name: "CM4 IN7"
        invert_logic: true
      - port: 21
        name: "CM4 IN8"
        invert_logic: true



RE: Troubleshooting: Binary Sensor Entities Not Appearing - admin - 05-22-2024

do you have installed platform: rpi_gpio by HACS?


RE: Troubleshooting: Binary Sensor Entities Not Appearing - engrezk - 05-22-2024

Yes ,I have installed platform: rpi_gpio by HACS

Why did the relay output appear?


RE: Troubleshooting: Binary Sensor Entities Not Appearing - admin - 05-22-2024

these days i will have a test. then feedback to you.


RE: Troubleshooting: Binary Sensor Entities Not Appearing - admin - 05-23-2024

i have tested, because the home assistant updated, so the library need to update, here is news: https://github.com/thecode/ha-rpi_gpio/issues/255


RE: Troubleshooting: Binary Sensor Entities Not Appearing - engrezk - 06-20-2024

Hello, have you been able to find a solution to this problem or are you still searching for a solution? I am unable to control the device and I need assistance if possible. Thank you very much


RE: Troubleshooting: Binary Sensor Entities Not Appearing - admin - 06-20-2024

i think you can use this one: https://github.com/jdeneef/ha_gpiod
when i have free time, i will test it.


RE: Troubleshooting: Binary Sensor Entities Not Appearing - admin - 06-27-2024

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.