Somfy Tahoma component issue

Hi folks,

after a reboot the Somfy Tahoma integration stop working.

I already checked the login credentials and there are correct. I have been using this configuration for years without any issue…



Thu Dec 05 2019 10:32:58 GMT+0100 (CET)

Error during setup of component tahoma
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/tahoma_api/", line 44, in login
    result = request.json()
  File "/usr/local/lib/python3.7/site-packages/requests/", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/simplejson/", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/", line 176, in _async_setup_component
    component.setup, hass, processed_config  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tahoma/", line 72, in setup
    api = TahomaApi(username, password)
  File "/usr/local/lib/python3.7/site-packages/tahoma_api/", line 30, in __init__
  File "/usr/local/lib/python3.7/site-packages/tahoma_api/", line 49, in login
    request.reason + "(" + error + ")")
TypeError: can only concatenate str (not "int") to str

My configuration:


# Somfy Tahoma
  username: !secret tahoma_user
  password: !secret tahoma_pw


Somfy have sent a mail to all users to explain than since the 03/12/2019 access without using api key will be blocked.

You need to reconfigure it using the somfy api.

Doc for Somfy

Thank you Vincent.

I never received the email. The Issue is that with the official API only a small list of Somfy devices are supported (all I have) :pensive:

I’ve the same “problem”, … all my covers are supported, but it seems that my somfy sensor aren’t, and i was using it for triggering automation.

Maybe later ?

Yes, i can confirm that no sensors are available anymore. I’m setting my covers also based on sun light intensity. All gone now. :frowning:

For the covers, i have made the settings directly in the tahoma box … but the sensor are really usefull for external application like hassio

i will try to contact Somfy and Ask them if it’s foreseen in the futur.

I moved everything back to Tahoma as the somfy api based integration does not seem to be reliable. I had multiple covers randomly staying open or closed etc. :frowning:

mmmm not sure will be ok, … the mail i’ve received from somfy was saying that all external tools using other things than their apikey will be rejected @Somfy side.