Fritz Comet Dect Thermost

Hello,

anyone can take the Fritz Dect Comet Thermostats into HA ?

Thank you

Would like to see this, too.

There is a REST API https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf

see also https://github.com/home-assistant/home-assistant/issues/4664

1 Like

This would be indeed very helpful and appreciated

Hi all … I have working version of a custom compoent that supports the Comet Dect thermostates. Maybe someone here is still interested in testing this and give me some feedback.

I plan to integrate also other smarthome components supported by the fritzbox and bring this upstream to home-assistant as component.


Heiko

3 Likes

Awesome work! I will test it out as soon as I can! Do I have to remove the fritzdect component to make this work?

hi … sorry for my late response… you can use the fritzdect component parallel but the “new” fritzhome also supports fritz dect switches as the fritzdect and can be replaced with this.

1 Like

Managed to install Heiko’s Addon and can see some FritzDect200 and CometDect. But only for one of my FritzBoxes. Only problem left for me is how to manage more than one FritzBox / Host with that?

If I do

fritzhome first:
host: IP1
username: user1
password: pass1

fritzhome second:
host: IP2
username: user2
password: pass2

I get the following error:

2017-11-27 17:18:07 ERROR (MainThread) [homeassistant.setup] Error during setup of component fritzhome
homeassistant | Traceback (most recent call last):
homeassistant | File “/usr/src/app/homeassistant/setup.py”, line 193, in _async_setup_component
homeassistant | component.setup, hass, processed_config)
homeassistant | File “/usr/local/lib/python3.6/asyncio/futures.py”, line 332, in iter
homeassistant | yield self # This tells Task to wait for completion.
homeassistant | File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
homeassistant | future.result()
homeassistant | File “/usr/local/lib/python3.6/asyncio/futures.py”, line 245, in result
homeassistant | raise self._exception
homeassistant | File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
homeassistant | result = self.fn(*self.args, **self.kwargs)
homeassistant | File “/config/custom_components/fritzhome.py”, line 46, in setup
homeassistant | conf = config[DOMAIN]
homeassistant | KeyError: ‘fritzhome’

Wanna manage several homes with just one homeassistant installation.

Hi,
just installed fritzhome to my hassio Raspberry.
Copied everything in the custom_components folder. set the access rights.
And put fritzhome in the configuration.yaml.
But I always receive this error when starting up:

Setup failed for fritzhome: Component failed to initialize.
01:25 setup.py (ERROR)
Login to Fritz!Box failed
01:25 unknown (WARNING)
login failed 0000000000000000
01:25 unknown (WARNING)

I also set the user in the fritzbox and the pass. Also already tried to get rid off special characters in password. Doesn’t help always the same error.
In the Fritzbox log there is a login error wrong password…
Fritzbox is a 7390 with latest firmware. No OEM version from the provider…
I can’t find the error… Does anyone have an idea?

do you have add an additional user with the rights to access the smarthome functions? I had an issue at the beginning with the default root/admin user.

currently there is no support for more than one fritzbox

Yes, I have. It’s dedicated for smart home access. But it’s missing due to that an email address…
Also I played with the passwords as I stated before.

I changed the access rights to the custom_components was done over a windows machine (samba access to the. I gig folders). Could this be a possible root cause of the problem? Or is it not poor perky working on hassio on the raspberry?
Any additional ideas are appreciated. :slightly_smiling_face:

Did you change the login to username and password? So if you open fritz.box it asks you to enter username and password.

No, I didn’t. Must it be changed to that behavior?
Currently when loggin in over the net UI I just have to put in my password.
But the home assistant user is a different one.

try it :wink:
My login requiers username and password and it works.

Thank you very much. That fixed that one…:+1:
I also installed the latest version 0.59.2.
One DEct Switch is available. But for the Climate devices…I can’t see them? Probably due to the new version?
Now I receive these Errors:

Updating state for switch.fritzdect_200_1 (<class ‘custom_components.switch.fritzhome.FritzhomeSwitch’>) took 0.444 seconds. Please report platform to the developers at https://goo.gl/Nvioub
12:12 helpers/entity.py (WARNING)
Setup of device_tracker is taking over 10 seconds.
12:11 bootstrap.py (WARNING)
Setup of sensor is taking over 10 seconds.
12:11 bootstrap.py (WARNING)
Error doing job: Task exception was never retrieved
12:11 components/climate/init.py (ERROR)
Error doing job: Task exception was never retrieved
12:11 components/climate/init.py (ERROR)
Error doing job: Task exception was never retrieved
12:11 components/climate/init.py (ERROR)
Error doing job: Task exception was never retrieved
12:11 components/climate/init.py (ERROR)
Error doing job: Task exception was never retrieved
12:11 components/climate/init.py (ERROR)
Error doing job: Task exception was never retrieved
12:11 components/climate/init.py (ERROR)

Interesting part: I have six climate devices installed in the FritzBox…exact the number of error messages…

OK. Installed the latest version of fritzhome custom_components from GitHub. Everything works now!
Thanks for the support! Awesome! :smiley:

1 Like

Nice too see you are successful. I currently try to get the component into homeassistant.

1 Like

Unfortunately after upgrading hassio to 0.61.1, fritzhome is starting with an eroor and no devices are available :frowning:

I already copied the latest versions from your Github…, but it’s not working. These are the errors I’m receiving:

Timer got out of sync. Resetting
09:50 core.py (ERROR)
Error during setup of component fritzhome
09:50 deps/lib/python3.6/site-packages/pyfritzhome/fritzhome.py (ERROR)
Unable to load /config/known_devices.yaml: while scanning a simple key in "/config/known_devices.yaml", line 322, column 3 could not find expected ':' in "/config/known_devices.yaml", line 323, column 3
09:50 components/device_tracker/__init__.py (ERROR)
while scanning a simple key in "/config/known_devices.yaml", line 322, column 3 could not find expected ':' in "/config/known_devices.yaml", line 323, column 3
09:50 util/yaml.py (ERROR)`Preformatted text`

Any ideas? Or is it a dependency from the known_devices error? But I can’T see any misfunctiondue to this error message

even with the latest version of Fritzhome climate runs still into errors:

Error while setting up platform fritzhome
23:35 custom_components/climate/fritzhome.py (ERROR)
Error while setting up platform fritzhome
23:35 custom_components/switch/fritzhome.py (ERROR)

here the details:

Tue Jan 23 2018 23:35:53 GMT+0100 (W. Europe Standard Time)

Error while setting up platform fritzhome
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 171, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/switch/fritzhome.py", line 24, in setup_platform
    for device in device_list:
TypeError: 'Fritzhome' object is not iterable

and:

Tue Jan 23 2018 23:35:53 GMT+0100 (W. Europe Standard Time)

Error while setting up platform fritzhome
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 171, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/climate/fritzhome.py", line 38, in setup_platform
    for device in device_list:
TypeError: 'Fritzhome' object is not iterable

@hthiery: would be great if you could help me out on that…

Thanks in advance!

Hi …

unfortunatly I made a mistake … so please could you update the component from my github repo and check again.

Please give some feadback if it works or not.

1 Like