mwraith / homebridge-somfi-blinds

A Homebridge plugin to control any device with the Somfy RTS technology with a Raspberry Pi connected to a simple 433 MHz transmitter. Adapted from wibberryd/homebridge-rpi-rts, but provides a stateful service.
MIT License
7 stars 3 forks source link

gitpio trouble part 2 #13

Open Nicode70 opened 9 months ago

Nicode70 commented 9 months ago

Originally posted by @Nicode70 in https://github.com/mwraith/homebridge-somfi-blinds/issues/12#issuecomment-1822501646

Contrary to what I posted last week my troubles are not resolved. I've been able to pair the blindes using this guide: http://abyz.me.uk/rpi/pigpio/faq.html#Cant_initialise_pigpio_library

I can close them once. After that nothing. The with in the homebridge and in the HomeKit ui behaves normally, but the blinds don't move. I'm lost... here is as screenshot:

Capture d’écran 2023-11-26 à 12 13 54

nothing in the homebridge logs indicates any activity of the plugin.

also I need to mention that I'm running scripted, and portainer on the same raspberry pi

thank you for your help

mwraith commented 9 months ago

@Nicode70 Can you switch Debug Mode on in Homebridge and post the contents of the log when homebridge is restarted and you try to use the plugin?

Nicode70 commented 9 months ago

here it is: [26/11/2023, 16:32:37] [Store] Getting current position from file [26/11/2023, 16:32:37] [Store] Get target position for 1034224 - true from file [26/11/2023, 16:32:37] [Store] Get target position for 1034224 - true from file [26/11/2023, 16:33:00] [Store] Get target position for 1034224 - true from file [26/11/2023, 16:33:00] [Store] Getting current position from file [26/11/2023, 16:33:00] [Store] Get target position for 1034224 - true from file [26/11/2023, 16:33:25] [Store] Triggered SET for 1034224 - 100

that's all that pops up when I try to use the plugin

Nicode70 commented 5 months ago

I'm still struggling to find a solution with this pairing issue. I'm reinstated everything, changed the transmitter, checked the antenna I kill all pigpio processes before trying to pair the blinds.

I'm just can't pair the blinds with HomeKit. here is the debug logs from the HomeKit homepage: [12/04/2024, 13:11:51] [Blinds balc] Get 'Up' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get 'Down' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get 'My' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get 'Prog' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get target position for 8097124 - true from file [12/04/2024, 13:11:51] [Blinds balc] Getting current position from file [12/04/2024, 13:11:51] [Blinds balc] Get target position for 8097124 - true from file

and the logs file from the plugin page: [12/04/2024, 13:11:51] [Blinds balc] Get 'Up' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get 'Down' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get 'My' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get 'Prog' for 8097124 - false [12/04/2024, 13:11:51] [Blinds balc] Get target position for 8097124 - true from file [12/04/2024, 13:11:51] [Blinds balc] Getting current position from file [12/04/2024, 13:11:51] [Blinds balc] Get target position for 8097124 - true from file [12/04/2024, 13:12:27] [Blinds balc] Function setOn called for button Prog with value true 8097124, 8, 9 [12/04/2024, 13:12:27] [Blinds balc] Function resetSwitchWithTimeout called for button Prog [12/04/2024, 13:12:27] [Blinds balc] Get 'Prog' for 8097124 - true [12/04/2024, 13:12:27] [Blinds balc] Get 'Up' for 8097124 - false [12/04/2024, 13:12:27] [Blinds balc] Get 'Down' for 8097124 - false [12/04/2024, 13:12:27] [Blinds balc] Get 'My' for 8097124 - false [12/04/2024, 13:12:27] [Blinds balc] Get 'Prog' for 8097124 - true [12/04/2024, 13:12:27] [Blinds balc] Getting current position from file [12/04/2024, 13:12:27] [Blinds balc] Get target position for 8097124 - true from file [12/04/2024, 13:12:27] [Blinds balc] Get target position for 8097124 - true from file

here are my:

OS Raspbian GNU/Linux Bookworm (12)

10.131.1.30 2a01:cb14:be4:a6f7:c084:b7b1:efe0:cfd6 homebridge root v20.12.1 /opt/homebridge/bin /var/lib/homebridge /var/lib/homebridge/config.json /var/lib/homebridge/node_modules

mwraith commented 4 months ago

Hi @Nicode70. There isn't anything obvious from the logs.

Have you tried to connect a multimeter to the GPIO pins to check they are actually getting voltage when you enable the switch in homebridge?