Hi all, following Adrian’s answers, I connected my Homey Pro with Somfy Connectivity Kit to control some awnings for the garden. I have a Somfy Pure 5 IO remote control.
My question: by setting a flow the variable Awnings Status is always set to null. When the Open Awning command starts, I see that the status is correctly changed to up or down. But when the movement ends the state is again null.
What I would like is to start a flow that checks the wind strength and if above a certain threshold, checks the status of the awnings: if they are open they should close, if already closed, do nothing.
For now I am using a variable I set on Homey but I never have confidence that it is hooked to the actual state of the curtains. Thanks for any advice.
If you have IO awnings then I guess you can see the actual position in Homey, so you should use that.
The State value is set to null when the movement is completed as Homey will ignore any attempts to set it to the same value and the underlying control is Up/Stop/Down.
Edit: Athom’s guide lines actual say the state control shouldn’t be used if the set position control is included, but as the app already had both when I took it over (probably because that guide wasn’t written when the app was created), I kept it both for backwards compatibility.
Hi Adrian, thank you for your reply. From the logs the system recognizes my roller sunscreen as “controllableName”: “ogp:Blind”. Basically you say I can’t use the State value for an initial check on the state to decide whether to take an action, correct? My use case is similar to many: I opened the blinds maybe with the remote control, then if the wind increases I would like Homey to close them for safety. But, in order to avoid Homey always triggering the command, I would like to check that the status of the sunscreen is open. Thanks again.
So, I recommend checking the position to determine the state. If your awnings don’t have the position information, that means they don’t provide any feedback, so Homey will be unaware of them being controlled by a remote.
Ok, I’ll check that too. From Tahoma app I can see position (0-100%) and the state too (open/closed). Those info are available also to Smartthig that I’ve paired with Tahoma app. So I figured they’re available to APIs. I’ll update this thread after checking, ,maybe it could be useful to someone else Thanks again for your help!
Hi Adrian, for completeness and hoping it is useful, I report here the (positive) results of the tests done.
1- I had to delete the app so that the devices were properly recognized. For some strange reason before, the sunscreens were associated with an RTS engine and not IO (obviously an oversight on my part), but having Connectivity Kit, I was able to send the signal correctly, but without getting feedback, thus creating confusion.
2- I noticed that the Window covering state is not very reliable. Often when the command is completed it stays on Idle but I have not yet figured out in what situations.
3- I then used the Position as you suggested to better manage my advanced flows and I must say that it is ok this way.
Thank you very much!