RFXtrx Cover blinds slats tilting

How difficult would be to implement slats tilting with RFXtrx addon? Currently it supports up/down/stop which is fine for a garage doors but not for a window blinds.

The issue has been mentioned here in forum https://community.home-assistant.io/t/how-to-manipulate-add-rfxtrx-rfycommands/172535/2 to no avail. However development of RFXtrx is a bit stall.

Vendors lib does support it as well https://github.com/rfxcom/node-rfxcom/blob/59fef8631f6e7511729b24b174c853bca485c467/lib/rfy.js

I have tried to figure out how commands are send to RFXtrx hub but i does not make sense to me. As how self._send_command("roll_up") translates to rfy 0x01 command send to hub.

Ok, I’ll reply myself :smiley: Now I know it uses pyRFXtrx lib which already support more commands (below) so it might not be that difficult to enhance the script. Not sure about the owner of the code @Danielhiversen? Would it be that easy to add just additional commands?

`COMMANDS = {0x00: 'Stop',
            0x01: 'Up',
            0x03: 'Down',
            0x13: 'Enable sun automation',
            0x14: 'Disable sun automation'}`

Danielhiversen does not seem to be very active anymore. I have a PR waiting for review quite some weeks now. But don’t let you stop by that. You can try some things yourself first by copying the Rfxtrx code to your custom_component folder. It will than overrule the built in component. If you have that working, you can try adjusting the code to your needs. Other option is to set up a dev environment.

If it works, you can submit your changes to home assistant. I’m willing to help you, but I don’t have a cover/blinds myself.

Indeed he’s not very active. I have already made a copy of rfxtrx to custom_components folder. However the most important update has to be done in pyRFXtrx library (__init__.py + lowlevel.py) and that’s where I’m stuck. I have read some dev docu but not that skilled to setup dev environment etc. Is there any way I can ‘fork’ it on my running HA?

Hmm, that makes it difficult, yes.

You could fork the pyRFXtrx pypi package, and create a new package with a different name, I guess. You can use it for testing first by uploading it to https://test.pypi.org/ but you have to change the pypi package to your own pypi package in manifest.json or do it as explained here

Great! Will do and revert. Thx Ernst!