I managed to pair my Somfy RTS blinds via RFXcom. Now, the architecture might be a bit complex since the RFXcom is plugged on one Raspberry, and Hass is running on another, so I used a combination of ser2net/socat to make the two communicate.
It works well, the problem is that my covers always have a state “unknown” and due to that I cannot use the state as a condition in automations. I’ve read that with RFXcom and RFY protocol it is not possible to get feedback from the covers, but is there a way for Hass to set the status to “down” when I press “down”, “up” when I press “up”, etc?
I have the same problem but I an using rfxtrx cover and a rollertrol device. This is causing me problem to control it with sceneactivation from my fibaro dimmer 2.
I am wondering about this too.
As a workaround I set the states of my Somfy covers in an MQTT topic, and I display the sensor state in the Home Assistant UI. It looks like this:
I am not sure how the MQTT solution @lievencoghe was set up. In my case, I used a combination of scripts and cover templates. On the frontend I only display and manage the cover templates, not the rfxtrx ones, and these maintain the state.
In the meantime I have changed to config a bit. I don’t have seperate entries for the state in the UI, but show the state in the icon itself using templates.
It looks like this now (both covers are up in the screenshot):
I split up my configuration in seperate files.
I’m using lovelace. This is what’s in ui-lovelace.yaml to display both my covers:
The MQTT values are set by Node-RED, as I do all of my automations in there. So I cannot help with the Home Assistant configuration for setting MQTT values. Anyway, the MQTT value is set to either of the 3 values (Opened, Closed, Stopped) in accordance to the function being called for the cover (open_cover, close_cover, stop_cover).
@lievencoghe Could you please provide some more info on the NodeRed flow? I’m trying to setup my state-icons just like you did but I’m stuck on the NodeRed part… I’d really appreciate it!
Well I also started with the HA and added my somfy RTS blinds.
But why the state is always unknow. Can I change that when clicking on the up/down options?
Maybe someone can help?
As for now, HA tries to track the state. Which is impossible as RTS is not bidirectional. This means that when I use the original remote, the state gets messed up. How can I prevent this? The “unknown” state would be desirable for me…
What I would like to achieve is to create the cover command only a given seconds and set the state of the cover accordingly.
Such as is, orders could be expressed as “closing at 30%” and action would last the corresponding time and the state would assume the position of the cover accordingly.
I am a beginner with yaml and nodered so I have still to find an already made solution or make it !