jhurliman / homebridge-rfxcom

Homebridge plugin for RFXtrx433(E) transceivers.
MIT License
3 stars 7 forks source link

Accessory Type: Blind/Awning #7

Open fab301s opened 6 years ago

fab301s commented 6 years ago

Would love to see the accessory type change from 3 simple on/off buttons to a single button that controls open/stop/close. Similar to how it's implemented in https://github.com/yungsters/homebridge-mylink

image

jhurliman commented 6 years ago

This is a great idea. I don't own the awning that I originally wrote this for anymore so I would be unable to implement and test myself, but I'm happy to code review and merge if someone wants to submit a PR (that they can test themselves).

Kydix commented 4 years ago

Very good idea ! Hope you can do that. I can test if you want.

Someone make a jeedom's plugin to simulate this with somy rts. Maybe you can take a look ?

https://github.com/Zerat9w/Jeedom-voletProp

phis5533 commented 4 years ago

Hi,

with this plugin https://github.com/DaGolle/homebridge-rfxtrx you have the command similar to the one you show @fab301s , but the behavior is quiet erratic... :-) So maybe it is a good start point ?

If someone knows how to code....

Thx BR Philippe

glefand commented 4 years ago

Hi, there is also this plugin https://www.npmjs.com/package/homebridge-rfx-shutter but the init of the RFX433XL is only working 1 homebridge restart of 4 or 5 ...

fab301s commented 4 years ago

Thanks for the tip, I got it working with very little effort.

I did need to change rfxcom_1.BlindAction.Up : rfxcom_1.BlindAction.DOWN to rfxcom_1.BlindAction.DOWN : rfxcom_1.BlindAction.UP on Line 71 of WindowCover.js as I'm using it to control an Awning and the order is reversed.

glefand commented 4 years ago

Hi @jhurliman would it be possible to work together on developing an update of this plugin to support WindowCovering accessory type instead of remote ? I'm not developer but I can test :)

momsse commented 4 years ago

@glefand I just published a v2 of the plugin homebridge-rfx-shutter that should fix this issue (explained on the README), feel free to open an issue if you encounter troubles with it