# \[APP\]\[Cloud & Pro\] Somfy Tahoma & Connexoon (v4.0.124, test v4.0.152)

**URL:** <https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206>\
**Category:** Apps\
**Tags:** official, homey-pro\
**Created:** [September 29, 2020, 3:01pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206 "2020-09-29T15:01:37Z")\
**Posts on this page:** 20\
**Page:** 17

<div class="post-metadata">

**Author:** ![Marcel\_Valentijn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_valentijn/32/20438_2.png) [@Marcel\_Valentijn](https://community.homey.app/u/Marcel_Valentijn)\
**Post date:** [October 14, 2020, 10:07pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/324 "2020-10-14T22:07:21Z")

</div>

Ok, thank you very much. Looking forward to them 🙂

---

<div class="post-metadata">

**Author:** ![Raeven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raeven/32/29880_2.png) [@Raeven](https://community.homey.app/u/Raeven)\
**Post date:** [October 15, 2020, 7:26am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/325 "2020-10-15T07:26:28Z")

</div>

So far everything is working fine again and I have set to the poll time to 180 seconds.  
Hopefully that atleast makes the strain on their endpoint less of a problem.  
And for now, my account isn’t migrated to oAuth… yet.

To prevent Homey users to hit the endpoint at the same time (assuming we all have a somewhat similar setting where-as a 10 sec. interval will coincide with 20sec. or 180sec. for example). Perhaps you can add a certain randomness to it? _(e.g. when set to 10sec. the app will randomly poll at 9, 10 or 11 sec.)_

Am I making any sense to you all? 😅

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [October 15, 2020, 7:32am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/326 "2020-10-15T07:32:29Z")

</div>

I think there is already some randomness. I believe those seconds start to count the moment you press the save button or login or whatever. @Adrian_Rockall can confirm. So when a 10 sec sync speed is set and the save button is pressed at 10:00:23.123 then the next sync will be done at 10:00:33.123

From my point of view the 10 sec sync speed doesn’t mean everybody will get sync updates at 10:00:10.000, 10:00:20.000, 10:00.30.000 etc. You could verify it yourself in the information log panel.

---

<div class="post-metadata">

**Author:** ![Raeven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raeven/32/29880_2.png) [@Raeven](https://community.homey.app/u/Raeven)\
**Post date:** [October 15, 2020, 7:34am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/327 "2020-10-15T07:34:31Z")

</div>

Yeah, if that is the case, then it should be okay.  
I am indeed trying to find out if it using an invoked timer or if it is using Homey’s ‘cron’.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 15, 2020, 9:29am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/328 "2020-10-15T09:29:36Z")

</div>

It is as @rvdeijk states. The app uses the setTimeout function to set the interval so it will be as random as it can be.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 15, 2020, 7:23pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/329 "2020-10-15T19:23:29Z")

</div>

I have published a test version that selects the login method automatically.

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [October 15, 2020, 7:40pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/330 "2020-10-15T19:40:22Z")

</div>

Tested (2.1.3), works perfect 😄  
Automatically logged in, using OAuth.

---

<div class="post-metadata">

**Author:** ![Raeven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raeven/32/29880_2.png) [@Raeven](https://community.homey.app/u/Raeven)\
**Post date:** [October 16, 2020, 6:17am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/331 "2020-10-16T06:17:29Z")

</div>

My shutters weren’t automated today.  
Apparently the app had crashed and needed to be restarted.

I’ve enabled some logging in case this happens again.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 16, 2020, 6:34am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/332 "2020-10-16T06:34:18Z")

</div>

Sorry for the issue. I’ve not had any notifications of a crash so a log would be good. Also, if it happens again then try the Create Diagnostics Report option in the standard app settings (where you see the Enabled, etc toggle).

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 16, 2020, 6:47am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/333 "2020-10-16T06:47:15Z")

</div>

I have published a test version that has a new action flow card that can switch the polling on and off.  
As Somfy are concerned about third parties keeping connection open 24/7, this allows you to stop polling and close the connection when it is not required. Actions to control covers, etc, should still work but the status of devices will not be updated.  
For example, I have set up flows to switch off polling when we all leave and turn it back on when someone gets home. I have another that turns off polling when I go to bed and back on when I get up.

Myself and the developers of the two plugins from HA are still in contact with Somfy to clarify the position but I am still trying every trick I can think off to reduce the traffic so we can stay under their radar.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [October 16, 2020, 8:52am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/334 "2020-10-16T08:52:51Z")

</div>

Hi Adrian. I noticed my IF condition “blind not in state Up” reads the state of the blind wrong. It is not Up but it reads different.

 ![Screenshot_2020-10-16-10-49-59-654_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/554c70a571e19d2b3f262a7b32422c70874d6349.jpeg) ![Screenshot_2020-10-16-10-50-17-630_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/4/440a19d3c8f9efff45505df762079ea378b685a7.jpeg)

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 16, 2020, 9:27am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/335 "2020-10-16T09:27:36Z")

</div>

Hmm, that’s possibly a tricky one. Some covers can only return Up or Down for the state so when it is neither up not down I think it is left at the last state when it was up / down.  
The app does do a check on the position and if it is not 0 ro 100 hen it sets the state to idle. That worked fine on the old method where it had all the data in one go but now it gets each bit of information separately. So it might just be the order in which the information arrives.  
Could you turn on the state log, then run the blind to the full down position, then to the middle, then to the full up and finally back to the middle (waiting for the blind to reach each position before executing the next). Hopefully, if I can see the exact order of the state updates and what each one is I can think of a fix.

---

<div class="post-metadata">

**Author:** ![Shadow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shadow/32/23280_2.png) [@Shadow](https://community.homey.app/u/Shadow)\
**Post date:** [October 16, 2020, 10:41am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/336 "2020-10-16T10:41:22Z")

</div>

I Have the same problem… no detect UP or DOWN

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [October 16, 2020, 11:17am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/337 "2020-10-16T11:17:39Z")

</div>

> [@Adrian\_Rockall](#):
>
> I have published a test version that has a new action flow card that can switch the polling on and off.

Nice, I made a simple flow as well:

|

Polling off:

```
  {
    "time": "2020-10-16T11:49:14.479Z",
    "source": "stopSync",
    "data": {
      "message": "Stopping Event Polling",
      "stack": ""
    }

```

Polling on:

```
  },
  {
    "time": "2020-10-16T11:52:05.155Z",
    "source": "Fetch Events",
    "data": {
      "message": "Starting",
      "stack": ""
    }
  },
  {
    "time": "2020-10-16T11:52:05.288Z",
    "source": "Fetch Events",
    "data": {
      "message": "Complete"
    }
  }

```

So between 1-15 minutes after the sun goes down, the flow is triggered (I might change it to something else) and between 1-60 seconds the polling will be turned off. Should be random enough 🙂 The same random number variable could be used to turn polling on again.

---

<div class="post-metadata">

**Author:** ![nmeden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nmeden/32/9579_2.png) [@nmeden](https://community.homey.app/u/nmeden)\
**Post date:** [October 16, 2020, 2:59pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/338 "2020-10-16T14:59:57Z")

</div>

Didn’t you like 100 posts ago state that they specifically would target apps that turns on and off polling on time?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 16, 2020, 4:14pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/339 "2020-10-16T16:14:29Z")

</div>

Yep, so make sure it’s random 😜

---

<div class="post-metadata">

**Author:** ![rvdeijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rvdeijk/32/22542_2.png) [@rvdeijk](https://community.homey.app/u/rvdeijk)\
**Post date:** [October 16, 2020, 9:03pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/340 "2020-10-16T21:03:29Z")

</div>

@Adrian_Rockall I tested the flows but it seems when the polling is started that the current states remain. Although the log says fetch complete:

Scenario:

1. Flow turned polling off
2. Cover moved by remote
3. Flow turned polling on
4. Result:

 ![Screenshot_20201016-215256_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/69b5fdc8d66d9a1bf1084bad5331ecc1270d68b2.jpeg) ![Screenshot_20201016-215313_Connexoon Window](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/6/c65768972922226ed5ab913b3e30e8049d1222e8.jpeg)

So Homey didn’t see an update of the state. Even half an hour after the flow started the polling again. Also when I press login the state didn’t change, so maybe something broke?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 16, 2020, 10:19pm UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/341 "2020-10-16T22:19:40Z")

</div>

I noticed the same when I got home this evening.  
It’s the same problem I mentioned when the session timed out which I forgot about. There will be a fix tomorrow.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [October 17, 2020, 9:43am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/342 "2020-10-17T09:43:12Z")

</div>

New test version 2.1.5

- Added flow card to change sync speed.  
With this action flow card, you can set different sync speed at will. For example, when everyone leaves home, I set my sync speed to 10 minutes. Then when the first person gets home, I set it back 15 seconds.
- Forced refresh of status if login token expires.  
If the access / login token expires the event system stops recording state changes, so now the device state is refreshed when a new login is complete.
- Fix for idle state when cover is partially open  
Some covers only report open or closed for the state, so they will always report open unless the cover position is exactly 0 or 100 depending on their concept of which position is open.  
The code now ignores the open / close state changed event unless the position is 0 or 100. It will set the state to idle if the reported position is not 0 or 100.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [October 17, 2020, 11:54am UTC](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206/343 "2020-10-17T11:54:52Z")

</div>

> [@Adrian\_Rockall](#):
>
> Added flow card to change sync speed.

What is the dimension of the nummer you can insert. Is it seconds? So, in your case 600 (10 minutes x 60 seconds) and 15?

[Previous page](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206.md?page=16)

[Next page](https://community.homey.app/t/app-cloud-pro-somfy-tahoma-connexoon-v4-0-124-test-v4-0-152/35206.md?page=18)
