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

can't pair with blinds #12

Closed Nicode70 closed 9 months ago

Nicode70 commented 9 months ago

I was previously using wibberryd plugging and it was working just fine. I've juste upgraded my raspberry from pi 3b to 4b. I've change from the wibberyd plugin to yours. user is root homebridge version: V1.7.0 node version v20.9.0 os version Raspbian GNU/Linux Bullseye (11)

I've set the accessory, it appears in HomeKit as a group of 5 (for switches and a blind). But I can't pair the blind because the switches just turn themselves off instantly. and they are all called by the same name so I don't know wich on is the prog button.

Could you please help me?

mwraith commented 9 months ago

Hi @Nicode70. It’s odd that they show with the same name, the buttons and names should correspond to the buttons on the remote (Up, Down, My, Prog) when in Admin mode.

Is it the same when looking at the accessory via the Homebridge web UI too?

Nicode70 commented 9 months ago

in homebridge gui, they are named: store up; store down; store my; store prog.

in HomeKit they are all just called store IMG_2688

also, I just can't turn one on. it instantly revert back to off. I have no mean to paire the blind.

Nicode70 commented 9 months ago

here is what my edited homebridge file looks like

Capture d’écran 2023-11-21 à 18 12 12

and the config in homebridge:

Capture d’écran 2023-11-21 à 18 14 33

What did I do wrong?

mwraith commented 9 months ago

@Nicode70 Homebridge UI is being displayed as I’d expect. In HomeKit it looks like for some reason it is trimming the command from the name.

I can try to reproduce it, but in the interim you should be able to pair it by sending the commands from the Homebridge UI. Once paired you can then switch off the admin mode so HomeKit will anyway be ok.

Nicode70 commented 9 months ago

Thank you very much @mwraith. But even from the homebridge ui I can’t switch any of the switches on. 

Capture d’écran 2023-11-21 à 18 42 08
mwraith commented 9 months ago

@Nicode70 So for Up/Down/My/Prog the switches don’t stay ‘on’. When you switch them on it will send the correct signal for the button and then immediately switch it back to off. It’s just trying to simulate a button press on the real remote where it’s stateless.

So basically if you follow the pairing instructions and for step 4 press Prog within Homebridge it should register.

If it does not then it is more likely to be an issue sending the signal or with reception.

Nicode70 commented 9 months ago

I've tried to pair once again with a single click on the prog button of the homebridge UI. changed config back to "adminMode": false, restarted homebridge tried to open the blinds and got this message in the logs:

[21/11/2023, 20:18:29] [homebridge-somfi-blinds] This plugin threw an error from the characteristic 'Target Position': Unhandled error thrown inside write handler for characteristic: pigpio error -1 in gpioInitialise. See https://homebridge.io/w/JtMGR for more info. 1034224, 2, 1 2023-11-21 20:18:32 initInitialise: Can't lock /var/run/pigpio.pid

mwraith commented 9 months ago

@Nicode70 That would mean another process is already running using the transmitter. You would need to find the other process and shut it down. See https://raspberrypi.stackexchange.com/questions/38644/pigpio-cant-lock-var-run-pigpio-pid

Nicode70 commented 9 months ago

It worked! Thank you very much.