Overkiz API and Somfy API

You can use the tahoma.set_cover_my_position service. In the end you could map this to a script or what you prefer in Home Assistant.

For the position part, there are other template cover that tike the time into account, but that is out of scope for this integration.

1 Like

Great! I didnā€™t know about this, and the scripts are already made, so this is perfect! Wow.
Thank you very much!

? Besides interrupting a current motion, the My button acts as a command for a pre programmed position. Which is necessary for these RTS motors since they donā€™t provide feedback for their current position.

See Micks post above how to service that in HA

HI Mick,

seems to work :wink: is it correct this doesnā€™t work on a cover group, consisting of 2 Tahoma covers?

also, exploring the Tahoma services, I was trying to get the history, which in the UI seems to go without further data, but this is displayed:

would this need a PR/FR to get an extra field in the UI, and maybe some extra explanation in Yaml mode on effective_start_time?

Indeed, this is currently open as an issue on GitHub: Group entities donā€™t work with device specific services (e.g. tahoma.set_cover_position_low_speed) Ā· Issue #275 Ā· iMicknl/ha-tahoma (github.com). However we currently have very very limited bandwidth, so donā€™t expect it anytime soonā€¦

I havenā€™t seen this error yet, maybe there has been an update to the Somfy TaHoma servers. This feature still works for me. Feel free to create a bug report on GitHub.

Hello,

Have you integrated the Somfy Alarm with home assistant?

I know, what I said was calling the stop_cover command triggers the My function when the blind is not in motion.

o really? is that intentional, seems a bit surprising to me, maybe the devs want to mimic the My buttons stop function the other way around.
I can understand a My button to have 2 functions, depending on the current state (moving or not) but dont think it is god practice to have a single service have 2 effects.

I suspect working within the confines of a ā€˜standard coverā€™ in HA, which doesnt have the My function, it was probably the most straight forward way of doing it.

Yes, i can control my alarm from home assistant.

This is not always the case, you are currently using an ā€˜undocumented featureā€™. We first try to cancel the current execution, however as a fallback, we call the stop buttons. The last resort is the My button, which cancels a running execution as well.

If you have RTS covers, it could be that this is the behavior you see, but normally the stop button should not be used for my position.

See code:

Hey Mick,

with some regularity, between the regular 30 seconds update this is in the logs:

2021-04-02 04:27:34 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.133 seconds
2021-04-02 04:28:04 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.122 seconds
2021-04-02 04:28:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] EventName.DEVICE_STATE_CHANGED/None (device: io://12redacted8/2588889, state: None -> None)
2021-04-02 04:28:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] EventName.DEVICE_STATE_CHANGED/None (device: io://12redacted38/1812890, state: None -> None)
2021-04-02 04:28:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] EventName.DEVICE_STATE_CHANGED/None (device: io://12redacted8/12173049, state: None -> None)
2021-04-02 04:28:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] EventName.DEVICE_STATE_CHANGED/None (device: io://12redacted8/2588889, state: None -> None)
2021-04-02 04:28:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] EventName.DEVICE_STATE_CHANGED/None (device: io://12redacted8/8742048, state: None -> None)
2021-04-02 04:28:34 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.133 seconds
2021-04-02 04:29:04 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.137 seconds

is that expected? This is as you can see in the middle of the night, with the House in sleep mode, and certainly no human input was givenā€¦

My automation is not triggeringā€¦when I see in my logs onlyā€¦it worked till few days agoā€¦

500 Server Error: Internal Server Error for url: https://api.somfy.com/api/v1/device/5753d980-1b7e05f3-568ec8ed-6dad968f/exec

Hi @degreecy and @jonasjeeliasson

Iā€™ve been playing around a bit with what I think is the same issue. I also run a Connexoon RTS hub in Australia.

I find that after successfully having the integration working, that the authentication will stop working after a few days (Iā€™m taking notes now to try to figure out exactly how long).

Today i deleted and readded the custom integration but was met with the same invalid_auth error at the setup up screen. What I found worked was visiting https://www.somfy-connect.com/en/ and logging in (which then takes me to the tahomalink log on screen, which I canā€™t log in to). After taking this step, the same credentials worked seamlessly in the HA interface to add the custom tahoma component.

If I can reproduce these steps in a few days time when I expect it to fail again, Iā€™ll log an issue on github.

Hi @teleksterling,

Donā€™t really remember what I did but soon after my post it started working. I remember I upgraded the custom integration and the I think it just started working. It stopped working once but the there was a new version again of the integration in HACS and after upgrade everything was fine again. Havenā€™t had to re auth or anything.

And yeah, logging in on the Tahoma site doesnā€™t work for me either. Only on somfy site.

1 Like

Hi folks, do you also have such problems with updating the position of your shutters? When I raise/ lower my shutters manually, I get the status in Home assistant only after about 1h.

Could you create an issue on GitHub? Have a look at your update interval as well, this controls this feature. (if you donā€™t have specific covers that only update after a hard refreshā€¦)

Where can I set the update interval?

1 Like

Within the Integrations page, look at the Tahoma card. There is an options buttons.

2 Likes

Hi guys,
today after a Tahoma official upgrade the integration with HomeAssistant stopped working.
I tried to reload and to restart multiple times HomeAssistant without success.
I had to remove the itnegration at all and then reconfigure from the beginning, but unfortunately the Solar sensor, previously wroking fine, is not anymore present in HomeAssistant.

I tried with the official integration and with the custom component in HACS.

installed, reinstalled, removed, reinstalledā€¦rebootedā€¦bla bla bla.

Solar sensor is not anymore imported in HomeAssistant.

Any clue ?