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
6 stars 3 forks source link

Venetian blind tilt - half open #3

Open schweppy opened 2 years ago

schweppy commented 2 years ago

Hello

thanks for the plug-in. I’ve been using rip-rts for a couple of years but this would be much better for use in HomeKit.

I have my blinds working, however, Venetian blinds are tilt only and “open” when they are half way which I normally set using the MY command.

Is it possible to set Open as MY, otherwise the blinds are fully up for open and fully down for closed?

many thanks

mwraith commented 2 years ago

Hi schweppy

Makes sense. It will need a minor code change but shouldn't be a problem to add this. I'll take a look at it for you tomorrow and let you know.

schweppy commented 2 years ago

Amazing! Much appreciated and thank you mwraith!

mwraith commented 2 years ago

Hi Schweppy

I added a Beta version. Can you please test and see if it works for you. You'll need to add a new setting of openToMyPosition to your Config file. E.g.

{ "accessory": "Somfy Blinds", "name": "My Blind", "id": 1234567, "adminMode": false, "openToMyPosition": true }

Then if you goto the Homebridge plugins and select 'Install Previous Version', pick 'v0.4.0-beta.0' and restart. Hopefully this should then work.

schweppy commented 2 years ago

Perfect! Works exactly as it should.

Any possibility to change the amount of time the homekit status shows “opening” and “closing”?

The blinds move position in 2seconds!

Many thanks

mwraith commented 2 years ago

Hi Schweppy

Can you try 0.4.0-beta.3. Also please add blindTimeToOpen to your config file specified in milliseconds. E.g.

{ "accessory": "Somfy Blinds", "name": "My Blind", "id": 1234567, "adminMode": false, "openToMyPosition": true, "blindTimeToOpen": 2000 }

schweppy commented 2 years ago

Morning!

B3 installed. Opentomyposition shows in config UI where as blindtimetoopen does not? Is that how you wanted it to be?

More importantly, the tile in homekit now hangs on “opening” or “closing” forever until I force close the home app. Loading the home app again shows the blind in its correct state!?