Giter VIP home page Giter VIP logo

ha-nefiteasy's People

Contributors

chefkegremmen avatar danieldotnl avatar dependabot[bot] avatar dingo35 avatar gerbenjavado avatar jcpvanhooren avatar ksya avatar martijndegouw avatar mories76 avatar nanexception avatar piwi91 avatar robbie1221 avatar spoetnik avatar starkillerog avatar tommini avatar wenink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-nefiteasy's Issues

error during setup

I think im doing something wrong??

maybe someone knows the solution?

Error during setup of component nefiteasy
Traceback (most recent call last):
File "/config/custom_components/nefiteasy/init.py", line 91, in connect
await asyncio.wait_for(self.nefit.xmppclient.connected_event.wait(), timeout=15.0)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 168, in _async_setup_component
hass, processed_config
File "/config/custom_components/nefiteasy/init.py", line 57, in async_setup
await client.connect()
File "/config/custom_components/nefiteasy/init.py", line 101, in connect
raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady

Greetings justin

Unable to configure on Synology

I have a synology running on the latest DSM 7.
Installed using HACS.

When trying to add the Nefit Integration and entering my details
123 456 789
aaaa bbbb cccc dddd
1234ab123

I have censored the details, but in this format I have added it.

It then gets stuck adding with an spinning circle
image

Getting this and then it fails with an unknown error
image

image

Any idea how to resolve this?

Issue after upgrading to Home Assistant 2021.06.0

Integration can not be loaded suddenly. Please assist
Message:

Logger: homeassistant.setup
Source: setup.py:172
First occurred: 11:02:19 AM (1 occurrences)
Last logged: 11:02:19 AM
Setup failed for nefiteasy: Integration not found.

Error when starting: [serial] is an invalid option

Hi, I just installed the component, but when I restart HASS.IO it gives me this error:
Invalid config for [nefiteasy]: [serial] is an invalid option for [nefiteasy]. Check: nefiteasy->nefiteasy->serial. (See /config/configuration.yaml, line 79).

This is my config:

nefiteasy:
  serial: '1234567'
  accesskey: abcdefg
  password: abcdefg
  name: Nefit Easy
  sensors:
    - status
    - supply_temperature
    - hot_water_operation

HA stuck on startup (#20) still

This morning upgraded to 0.109.3 and problem returned

2020-05-03 08:59:03 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_ready__data_received
self._protocol.data_received(data)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received
self._spawn_event(xml)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event
stanza = self._build_stanza(xml)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza
stanza = stanza_type(self, xml)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in init
ElementBase.init(self, xml, parent)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in init
if self.setup(xml):
File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup
self.values = self.values
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values
self[full_interface] = value
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in setitem
lang=lang)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text
return self._del_sub(name, lang=lang)
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub
parent = self.xml.find(parent_path)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find
return ElementPath.find(self, path, namespaces)
File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find
return next(iterfind(elem, path, namespaces), None)
TypeError: 'NoneType' object is not an iterator

Disconnect at boot or at random

I am still experiencing unexpected disconnects while booting or while online.
The new code is uploaded.

I get the following error messages:
Unexpected disconnect of xxxxxxx with Bosch server
and:
The following integrations and platforms could not be set up:

nefiteasy
Please check your config.

Ignores the Configuration and exposes all

Just noticed this,

nefiteasy:
  devices:
    - serial: !secret buderus_serial
      accesskey: !secret buderus_accesskey
      password: !secret buderus_password
      name: Combi
      sensors:
        - year_total
        - status
        - supply_temperature
        - outdoor_temperature
        # - system_pressure
        - active_program
        - hot_water_operation
      switches:
        - hot_water
        - holiday_mode
        #- fireplace_mode
        #- today_as_sunday
        #- tomorrow_as_sunday
        - preheating
        - home_entrance_detection
        - weather_dependent
        - lockui

According to the above config, 1 sensor and 3 switches are disabled but the addon ignores the configuration and exposes all of them.
image

Additionally, the "name" component doesn't seem to make a difference.

Can anybody else test this?

Slixmmp errors

Hi,

I've tried setting up the component, I'm getting this error now however:

2021-06-29 21:52:06 WARNING (MainThread) [slixmpp.stringprep] Using slower stringprep, consider compiling the faster cython/libidn one.
2021-06-29 21:52:06 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 717 912 766 for nefiteasy
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/stringprep.py", line 55, in nodeprep
return _nodeprep(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/util/stringprep_profiles.py", line 145, in profile
prohibit_output(data, prohibited)
File "/usr/local/lib/python3.8/site-packages/slixmpp/util/stringprep_profiles.py", line 78, in prohibit_output
raise StringPrepError("Prohibited code point: %s" % char)
slixmpp.util.stringprep_profiles.StringPrepError: Prohibited code point:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 86, in _validate_node
node = nodeprep(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/stringprep.py", line 57, in nodeprep
raise StringprepError
slixmpp.stringprep.StringprepError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/nefiteasy/__init__.py", line 106, in async_setup_entry
client = NefitEasy(hass, credentials)
File "/config/custom_components/nefiteasy/__init__.py", line 169, in __init__
self.nefit = NefitCore(
File "/usr/local/lib/python3.8/site-packages/aionefit/__init__.py", line 45, in __init__
self.xmppclient = NefitXmppClient(jid=self.jid,
File "/usr/local/lib/python3.8/site-packages/aionefit/provider/slixmpp_impl.py", line 15, in __init__
slixmpp.ClientXMPP.__init__(self, jid, password,
File "/usr/local/lib/python3.8/site-packages/slixmpp/clientxmpp.py", line 70, in __init__
BaseXMPP.__init__(self, jid, 'jabber:client', **kwargs)
File "/usr/local/lib/python3.8/site-packages/slixmpp/basexmpp.py", line 58, in __init__
self.requested_jid = JID(jid)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 323, in __init__
self._node, self._domain, self._resource = _parse_jid(jid)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 68, in _parse_jid
node = _validate_node(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 88, in _validate_node
raise InvalidJID('Nodeprep failed')
slixmpp.jid.InvalidJID: Nodeprep failed

Hassio - warning: Switchdevice deprecated modify NefitSwitch to extend SwitchEntity

Not sure whether this is an issue in my configuration or in the ha-nefiteasy code (advise is appreciated) but i guess i'd mention it anyway.

Log Details (WARNING)
Logger: homeassistant.components.switch
Source: components/switch/init.py:125
Integration: Switch (documentation, issues)
First occurred: 2 June 2020, 17:18:23 (2 occurrences)
Last logged: 2 June 2020, 17:18:23

SwitchDevice is deprecated, modify NefitSwitch to extend SwitchEntity
SwitchDevice is deprecated, modify NefitHotWater to extend SwitchEntity

Today/Tomorrow as sunday

Let me start with saying thanks everyone for the effort in this custom component for homeassistant.
I'm having isseus with enabling the Today as sunday and Tommorrow as sunday switches, when i enable the switch it
immediately goes back to off and it doesnt change the setting when i look in nefit app.
i have the same problem with Fireplace and Holiday.
anyone else having this isseu?

Integration Nefit not in the list

Hi,

Running HASSIO 2021.2.3 on RPI3b+.
Using Nefit Easy already for long time and always update to the latest version.
I'm not using HACS, but always update by copying the code to custom_components/nefiteasy/ folder.

According to the "read.me" Configuration section, it should be possible to add the config via Integrations now.
However Nefit doesn't showup in the list when trying to add it.
Am I missing something ?

Also in the "read.me" Installation section, it's not "explained below" how to add NefitEasy to your configuration.yaml.

year_total property

I switched to this version of the nefit easy integration, but the year_total property seems unavailable. Is there anything special I could/should do to get it available, or should it actually be available? Many thanks.

Nefit Ecomline starts heating because of ha-nefiteasy integration?

Hi all, first of all big thanks for this great software!

I installed HomeAssistant a few days ago, and included the Nefit Easy integration. I included two installations, one is without problems but the other has a very concerning problem.

Situation without Nefit Easy integration connected to my account:
Nefit Easy follows program as expected; programmed 19.5C, when temperature comes down to 19.6 or 19.5 the Ecomline HRC30 starts heating.

Situation with Nefit Easy integration connected to my account:
Nefit Easy device AND Home Assistant give 19.8C actual room temperature, programmed is 19.5C, and every 5 minutes the Ecomline starts heating, after 5 minutes back into standby, and so on.

I know this sounds very unlikely, but I have experienced this twice (once reinstalled the newest version), and the behaviour is pretty consistent.

I tried to narrow down the issue, but as I new HA user I notice there seem to be multiple copies of the configuration data. If I remove the Nefit Integration, and restart, hass still complains about not being able to fullfil nefiteasy configuration. Even if I comment out all nefiteasy stuff in confguration.yaml, it still keeps complaining. Even when I throw away the .db file it keeps complaining, but after a few restarts this error message disappears.

How can I reliably change my config items, making sure those are actually the items being used by hass? Perhaps if I reduce the number of entities (sensors and/or switches) behaviour changes....

Hope I can help with this, and if you have an older Nefit heater, please monitor your nefit.status entity (history graph is ideal for this) to make sure your heater is not switching on/off every 5 minutes. This is killing your heater!

HA cannot connect to Bosch cloud

Problem
Even with the changes in place in /etc/ssl/openssl.cnf, Hassio is not able to connect to the Bosch cloud. I keep getting the double notification error on my Raspberry Pi:

Unexpected disconnect of [xxx] with Bosch server. Try to reconnect..
Did not succeed in connecting [xxx] to Bosch cloud after retrying 3 times. Retry in 30 seconds.

This was working for quite some time now, but now all of a sudden the problems are back.

I'm on HA 0.116.4.

No entity available

I have succesfully managed to install the Nefit Easy integration using the documentation from README.
The integration is showing up in both HACS and Default integrations.
I have entered the correct details upon installing, however I cannot find a single entity when I'm trying to add it to my overview.

Any way to troubleshoot this? It's running on

  • Synology with DSM7
  • Home Assistant core-2021.3.1
  • HACS: Integration version: | 1.11.3
  • HACS: Frontend version: | 20210214110032

Logs:

Logger: homeassistant.config_entries
Source: custom_components/nefiteasy/init.py:169
First occurred: 10:07:08 PM (1 occurrences)
Last logged: 10:07:08 PM

Error setting up entry 000 000 000 for nefiteasy (masked for privacy reasons)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/stringprep.py", line 55, in nodeprep
return _nodeprep(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/util/stringprep_profiles.py", line 145, in profile
prohibit_output(data, prohibited)
File "/usr/local/lib/python3.8/site-packages/slixmpp/util/stringprep_profiles.py", line 78, in prohibit_output
raise StringPrepError("Prohibited code point: %s" % char)
slixmpp.util.stringprep_profiles.StringPrepError: Prohibited code point:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 86, in _validate_node
node = nodeprep(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/stringprep.py", line 57, in nodeprep
raise StringprepError
slixmpp.stringprep.StringprepError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/nefiteasy/init.py", line 106, in async_setup_entry
client = NefitEasy(hass, credentials)
File "/config/custom_components/nefiteasy/init.py", line 169, in init
self.nefit = NefitCore(
File "/usr/local/lib/python3.8/site-packages/aionefit/init.py", line 45, in init
self.xmppclient = NefitXmppClient(jid=self.jid,
File "/usr/local/lib/python3.8/site-packages/aionefit/provider/slixmpp_impl.py", line 15, in init
slixmpp.ClientXMPP.init(self, jid, password,
File "/usr/local/lib/python3.8/site-packages/slixmpp/clientxmpp.py", line 70, in init
BaseXMPP.init(self, jid, 'jabber:client', **kwargs)
File "/usr/local/lib/python3.8/site-packages/slixmpp/basexmpp.py", line 58, in init
self.requested_jid = JID(jid)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 323, in init
self._node, self._domain, self._resource = _parse_jid(jid)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 68, in _parse_jid
node = _validate_node(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 88, in _validate_node
raise InvalidJID('Nodeprep failed')
slixmpp.jid.InvalidJID: Nodeprep failed

Request: activate shower timer

Thanks for a great plugin. I wonder if it would be able to activate the shower timer via the plugin?

The shower timer function in the nefit app resets, so you have to set it every time prior to a shower. Would be great to have a script in HA that activates it say every 10 minutes via this script if feasible.

I have no clue if this can be done, thought I’d ask.

Kan service climate/set_temperature niet aanroepen

Hello, I hope you can help me. I've update HA to the latest version (Hassio via Docker) version 0.101.2, All entities are available but I cannot set temperature.service climate/set_temperature error. Did I miss something. Thanks for helping out.

Not a valid add-on repository

When using latest HA version (2020.12.0) i cannot add the Nefit repo to the HACS add-on store. The supervisor (2020.12.6) tells me:

20-12-14 19:16:02 ERROR (MainThread) [supervisor.store] https://github.com/ksya/ha-nefiteasy is not a valid add-on repository
20-12-14 19:16:02 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/68595fea/repository.json: [Errno 2] No such file or directory: '/data/addons/git/68595fea/repository.json'

Look similar to #31

Regards, Harry

Unsupported operand type

Me again. Sorry for nagging again...
This does not affect my setup but maybe for a future release:

File "/config/custom_components/nefiteasy/sensor.py", line 69, in state
return "{0:.1f}".format(self._client.data[self._key] * 0.12307692) #convert kWh to m3, for LPG, multiply with 0.040742416
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Home assistant on boot errors

When booting the following errors are in homeassistant.log
Entities are not available when error occurs.
Sometimes the error is not present on boot. Then it does work.
running on a version of yesterday

2019-12-19 00:19:46 WARNING (MainThread) [slixmpp.stringprep] Using slower stringprep, consider compiling the faster cython/libidn one.
2019-12-19 00:19:51 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 816, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received
    self._spawn_event(xml)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event
    stanza = self._build_stanza(xml)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza
    stanza = stanza_type(self, xml)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in __init__
    ElementBase.__init__(self, xml, parent)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in __init__
    if self.setup(xml):
  File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup
    self.values = self.values
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values
    self[full_interface] = value
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in __setitem__
    lang=lang)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text
    return self._del_sub(name, lang=lang)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub
    parent = self.xml.find(parent_path)
  File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find
    return ElementPath.find(self, path, namespaces)
  File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find
    return next(iterfind(elem, path, namespaces), None)
TypeError: 'NoneType' object is not an iterator
2019-12-19 00:19:56 WARNING (MainThread) [homeassistant.setup] Setup of nefiteasy is taking over 10 seconds.
2019-12-19 00:20:46 ERROR (MainThread) [homeassistant.setup] Error during setup of component nefiteasy
Traceback (most recent call last):
  File "/config/custom_components/nefiteasy/__init__.py", line 104, in connect
    await asyncio.wait_for(self.nefit.xmppclient.connected_event.wait(), timeout=60.0)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/config/custom_components/nefiteasy/__init__.py", line 67, in async_setup
    await client.connect()
  File "/config/custom_components/nefiteasy/__init__.py", line 115, in connect
    raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady

These notifications are received.
image

Config:

nefiteasy:
  devices:
    - serial: !secret nefitserial
      accesskey: !secret nefitaccesskey
      password: !secret nefitpassword
      name: Nefit Easy #below here all optional settings
      min_temp: 15
      max_temp: 27
      sensors:
       - year_total
       - status
       - supply_temperature
       - outdoor_temperature
       - system_pressure
      switches:
       - hot_water
       - holiday_mode
       - today_as_sunday
       - tomorrow_as_sunday
       - home_entrance_detection

Add version key in Manifest file for HACS

2021-05-11 12:30:47 ERROR (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'nefiteasy'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'nefiteasy'

A failure as a heads-up for next version of HA-core: 2021.6 will kill Nefit Easy addon :( unless the version key is provided.
A small fix I reckon :)

Can you add? I love this addon; great work!

HA stuck on startup

Hi, i get this error on startup and it stops starting home-assistant.
It only happens some times.

2020-04-16 11:04:02 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/selector_events.py", line 813, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received
    self._spawn_event(xml)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event
    stanza = self._build_stanza(xml)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza
    stanza = stanza_type(self, xml)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in __init__
    ElementBase.__init__(self, xml, parent)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in __init__
    if self.setup(xml):
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup
    self.values = self.values
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values
    self[full_interface] = value
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in __setitem__
    lang=lang)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text
    return self._del_sub(name, lang=lang)
  File "/srv/homeassistant/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub
    parent = self.xml.find(parent_path)
  File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 299, in find
    return ElementPath.find(self, path, namespaces)
  File "/usr/lib/python3.7/xml/etree/ElementPath.py", line 307, in find
    return next(iterfind(elem, path, namespaces), None)
TypeError: 'NoneType' object is not an iterator
2020-04-16 11:04:02 INFO (MainThread) [slixmpp.xmlstream.xmlstream] connection_lost: (TypeError("'NoneType' object is not an iterator"),)
2020-04-16 11:04:02 INFO (MainThread) [custom_components.nefiteasy] Starting reconnect procedure.

SSL error

Just installed a fresh version of HA(0.99.0) on Raspbian Lite, installing the component in the correct folder: /custom_components/nefiteasy/ and rebooting it gives an error notification in HA:

Invalid config
The following components and platforms could not be set up:
 - nefiteasy
Please check your config.

Nefit error
Timeout while connecting to Bosch cloud. Retrying in the background

configuration.yaml

nefiteasy:
  serial: 'hidden'
  accesskey: 'hidden'
  password: 'hidden'
  name: Nefit Easy #optional
  min_temp: 15 #optional
  max_temp: 27 #optional


logger:
  default: info
  logs:
    custom_components.nefiteasy: debug
    aionefit: debug

Log

2019-09-20 10:11:08 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2019-09-20 10:11:08 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 1.1 seconds.
2019-09-20 10:11:08 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 4.8 seconds.
2019-09-20 10:11:08 INFO (MainThread) [homeassistant.setup] Setting up default_config
2019-09-20 10:11:08 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds.
2019-09-20 10:11:08 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
    raise handshake_exc
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1056)
2019-09-20 10:11:08 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1056)
2019-09-20 10:11:08 ERROR (MainThread) [slixmpp.xmlstream.xmlstream] CERT: Invalid certificate trust chain.
2019-09-20 10:11:10 WARNING (MainThread) [homeassistant.setup] Setup of nefiteasy is taking over 10 seconds.
2019-09-20 10:11:14 DEBUG (MainThread) [custom_components.nefiteasy] TimeoutError on waiting for connected event
2019-09-20 10:11:14 ERROR (MainThread) [homeassistant.setup] Error during setup of component nefiteasy
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/nefiteasy/__init__.py", line 91, in connect
    await asyncio.wait_for(self.nefit.xmppclient.connected_event.wait(), timeout=15.0)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 168, in _async_setup_component
    hass, processed_config
  File "/home/homeassistant/.homeassistant/custom_components/nefiteasy/__init__.py", line 57, in async_setup
    await client.connect()
  File "/home/homeassistant/.homeassistant/custom_components/nefiteasy/__init__.py", line 101, in connect
    raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady
2019-09-20 10:11:19 INFO (SyncWorker_18) [homeassistant.components.nmap_tracker.device_tracker] No MAC address found for 192.168.178.24
2019-09-20 10:11:19 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 22.39s
2019-09-20 10:11:19 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-09-20 10:11:19 INFO (MainThread) [homeassistant.core] Timer:starting

It seems to be an SSL issue, is there any way to solving this?

Error from HA after update from HA i think

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/nefiteasy/init.py:169
Integration: Nefit Easy Bosch Thermostat (documentation, issues)
First occurred: 20:09:03 (1 occurrences)
Last logged: 20:09:03

Error setting up entry 519 911 274 for nefiteasy
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/stringprep.py", line 55, in nodeprep
return _nodeprep(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/util/stringprep_profiles.py", line 145, in profile
prohibit_output(data, prohibited)
File "/usr/local/lib/python3.8/site-packages/slixmpp/util/stringprep_profiles.py", line 78, in prohibit_output
raise StringPrepError("Prohibited code point: %s" % char)
slixmpp.util.stringprep_profiles.StringPrepError: Prohibited code point:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 86, in _validate_node
node = nodeprep(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/stringprep.py", line 57, in nodeprep
raise StringprepError
slixmpp.stringprep.StringprepError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 269, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/nefiteasy/init.py", line 106, in async_setup_entry
client = NefitEasy(hass, credentials)
File "/config/custom_components/nefiteasy/init.py", line 169, in init
self.nefit = NefitCore(
File "/usr/local/lib/python3.8/site-packages/aionefit/init.py", line 45, in init
self.xmppclient = NefitXmppClient(jid=self.jid,
File "/usr/local/lib/python3.8/site-packages/aionefit/provider/slixmpp_impl.py", line 15, in init
slixmpp.ClientXMPP.init(self, jid, password,
File "/usr/local/lib/python3.8/site-packages/slixmpp/clientxmpp.py", line 70, in init
BaseXMPP.init(self, jid, 'jabber:client', **kwargs)
File "/usr/local/lib/python3.8/site-packages/slixmpp/basexmpp.py", line 58, in init
self.requested_jid = JID(jid)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 323, in init
self._node, self._domain, self._resource = _parse_jid(jid)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 68, in _parse_jid
node = _validate_node(node)
File "/usr/local/lib/python3.8/site-packages/slixmpp/jid.py", line 88, in _validate_node
raise InvalidJID('Nodeprep failed')
slixmpp.jid.InvalidJID: Nodeprep failed

Hot water switch not working

RobBie1221 commented 3 hours ago #38 (comment)

@ksya Do you know how the "Hot Water" switch is working and how I can verify that with the Nefit app? I can see it writes to an endpoint based on "clock" or "manual" mode, state of the switch is however fetched from uiStatus. I can't seem to change the value in uiStatus.

It's not working for me either when I rollback to an older version, so I wonder if that was ever functional.

It was functional I remember now, but I think something broke it later.

Error when starting Nefit Easy phone app

When the integration is running and I open the phone app, the following errors occur in the HA log

2019-11-27 20:48:21 ERROR (MainThread) [slixmpp.stanza.rootstanza] Error handling {jabber:client}message stanza
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aionefit/provider/pyaes_impl.py", line 35, in decrypt
r = decrypted.decode("utf8").rstrip(chr(0))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 2: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 796, in event
handler_callback(data)
File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 76, in carbonmsg_recv_callblack
self.nefit_client.raw_message_callback(msg['carbon_received'])
File "/usr/local/lib/python3.7/site-packages/aionefit/init.py", line 63, in raw_message_callback
response = self.encryption.decrypt(body)
File "/usr/local/lib/python3.7/site-packages/aionefit/provider/pyaes_impl.py", line 37, in decrypt
raise SystemError("Decryption error (%s). Wrong password?", e)
SystemError: ('Decryption error (%s). Wrong password?', UnicodeDecodeError('utf-8', b'\rx\xb9\xdeV0@]\xbeW#\xfe\x81"=\x99\x17\xbd\xd4p\xcb\xb5\x8f\xd41\xf6K\xab\xec\xff\xe3k\xce\xa6\xd3\xc03#\xce_\x1e$\xbdo\n\x8c\xc8j;\xc0\xce\j\xe3\xb6\xbfz\x070AN:\x81"\xe0\xfd\xb5\x0b\xb5\x08\xfb\x85Z\xdc\xb6E\xb2{\x03_na\x02\\xb4G\x02B\xd9\x97\x06\xc3\xc4\x88\xfbR\xa8\xe6\x05;\xc6$\xc2\xe0\xf9w@\x81\xcb\xf6=', 2, 3, 'invalid start byte'))
2019-11-27 20:48:21 ERROR (MainThread) [slixmpp.basexmpp] ('Decryption error (%s). Wrong password?', UnicodeDecodeError('utf-8', b'\rx\xb9\xdeV0@]\xbeW#\xfe\x81"=
\x99\x17\xbd\xd4p\xcb\xb5\x8f\xd41\xf6K\xab\xec\xff\xe3k\xce\xa6\xd3\xc03#\xce_\x1e$\xbdo\n\x8c\xc8j;\xc0\xce\j\xe3\xb6\xbfz\x070AN:\x81"\xe0\xfd\xb5\x0b\xb5\x08\xfb\x85Z\xdc\xb6E\xb2{\x03_na\x02\\xb4G\x02B\xd9\x97\x06\xc3\xc4\x88\xfbR\xa8\xe6\x05;\xc6$\xc2\xe0\xf9w@\x81\xcb\xf6=', 2, 3, 'invalid start byte'))
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aionefit/provider/pyaes_impl.py", line 35, in decrypt
r = decrypted.decode("utf8").rstrip(chr(0))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 2: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 796, in event
handler_callback(data)
File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 76, in carbonmsg_recv_callblack
self.nefit_client.raw_message_callback(msg['carbon_received'])
File "/usr/local/lib/python3.7/site-packages/aionefit/init.py", line 63, in raw_message_callback
response = self.encryption.decrypt(body)
File "/usr/local/lib/python3.7/site-packages/aionefit/provider/pyaes_impl.py", line 37, in decrypt
raise SystemError("Decryption error (%s). Wrong password?", e)
SystemError: ('Decryption error (%s). Wrong password?', UnicodeDecodeError('utf-8', b'\rx\xb9\xdeV0@]\xbeW#\xfe\x81"=*\x99\x17\xbd\xd4p\xcb\xb5\x8f\xd41\xf6K\xab\xec\xff\xe3k\xce\xa6\xd3\xc03#\xce_\x1e$\xbdo\n\x8c\xc8j;\xc0\xce\j\xe3\xb6\xbfz\x070AN:\x81"\xe0\xfd\xb5\x0b\xb5\x08\xfb\x85Z\xdc\xb6E\xb2{\x03_na\x02\\xb4G\x02B\xd9\x97\x06\xc3\xc4\x88\xfbR\xa8\xe6\x05;\xc6$\xc2\xe0\xf9w@\x81\xcb\xf6=', 2, 3, 'invalid start byte'))

Any idea where this is coming from? It looks like the integration is working however

Version key in manifest file

Custom integrations without version key in their manifest file will be blocked from loading starting with Home Assistant 2021.6.

This is announced in the Breaking Changes for Home Assistant Core 2021.4:

Custom integrations: Version warning

Custom integrations now require a version key in their manifest file, this also means that all custom integrations now require a manifest file.

If you are using a legacy custom integration like custom_components/awesome.py this now needs to move to custom_components/awesome/__init__.py so you can add custom_components/awesome/manifest.json to it.

For more information about integration, manifests have a look here: https://developers.home-assistant.io/docs/creating_integration_manifest

For now, this will create a warning on startup. But this will be blocked from loading if it’s missing a version in the manifest starting with Home Assistant 2021.6.

How to set target temp with action

Hi, thanks for your work on this integration.

I have successfully installed the integration, I see the climate control on the overview. I can also set the temperature.
I am unable to create an automation with an action which sets the temperature to a certain value.

Hopefully someone can explain how I can achieve this.

Thanks.

Error during startup phase nefiteasy component

Hi ksya,
thank you for the Nefit integration.
I am trying to get it working.
During startup I find the error messages below in the Home Assistant log.
I don't think it is a SSL issue.
Can someone take a look?

2020-02-17 21:32:36 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.nefiteasy
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError
2020-02-17 21:32:36 ERROR (MainThread) [homeassistant.components.sensor] nefiteasy: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/nefiteasy/nefit_device.py", line 60, in async_update
    self._client.nefit.get(self.get_endpoint())
  File "/usr/local/lib/python3.7/site-packages/aionefit/__init__.py", line 107, in get
    self.xmppclient.send_message(mto=self._to, mbody=msg)
  File "/usr/local/lib/python3.7/site-packages/aionefit/provider/slixmpp_impl.py", line 94, in send_message
    message.stream.send_raw(str_data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 926, in send_raw
    raise NotConnectedError()
slixmpp.xmlstream.xmlstream.NotConnectedError

Year total in kWh

Thanks for this integration.

Can we have year total consumption be exported as kWh ?
I need this value to calculate monthly costs. Maybe exposed as a different name.

Request for Monthly Consumption

Currently Nefit sensor have the following value for the consumption
sensor.nefit_year_total

However, this is a yearly total. Is there a way to add a sensor for the monthly consumption for tracking the bills?

Does not work after update

Unfortunately it does not work anymore after the latest update using Home Assistant 2021.1.1
Overview window is showing Nefit dialog with the text unavailable. A total reinstall did not solve the issue.

Request for Thermostat Lock switch

To prevent my children from playing with the thermostat and turning the heat on, I would love to see the "Thermostat Lock" swithc be implemented.

Thanks in advance, Harry

Installation as add-on repository failed

I tried to install ha-nefiteasy as an add-on repository. Unfortunately, nothing happened except that this showed up in the log file:

21-04-09 20:13:58 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/ksya/ha-nefiteasy repository 21-04-09 20:13:59 ERROR (MainThread) [supervisor.store] https://github.com/ksya/ha-nefiteasy is not a valid add-on repository 21-04-09 20:13:59 INFO (MainThread) [supervisor.resolution.module] Create new issue IssueType.CORRUPT_REPOSITORY - ContextType.STORE / 68595fea 21-04-09 20:13:59 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.EXECUTE_REMOVE - ContextType.STORE / 68595fea 21-04-09 20:13:59 WARNING (MainThread) [supervisor.store.data] No repository information exists at /data/addons/git/68595fea 21-04-09 20:13:59 INFO (MainThread) [supervisor.store] Loading add-ons from store: 68 all - 0 new - 0 remove 21-04-09 20:13:59 INFO (MainThread) [supervisor.resolution.fixups.store_execute_remove] Remove invalid Store: 68595fea 21-04-09 20:13:59 INFO (MainThread) [supervisor.store.git] Removing custom add-on repository https://github.com/ksya/ha-nefiteasy

Did I press the wrong button? Would appreciate any help!

Request

First of all thank you for this awsome functionality! I installed it a few days ago and for me it work flawless! I use al the sensors there are available but I only miss one and thats the return tempature. Is it possible to ad this one?

I live in the Netherlands and winter is coming. Knowning the return tempature is a big plus because with that information I can manualy adjust the supply tempature for the best efficiency of the CV. The bigger the difference between the supply en return tempature the higher the efficiency.

[Feature] call any endpoint using service

This would greatly enlarge the functionality. Using a general service "call endpoint", with given parameters, anything can be done from within Home Assistant, even though it is not directly implemented in this integration.

Request for active program switch

Request to set the active program through a switch.
I have 2 programs, would be nice to be able to change them within home assistant

"Unknown error" when connecting to Nefit (endless loop)

I changed my post with a shorter summarization...
After recent update(s), probably after Home Assistant 0.116 or HassOS 4.13 or 4.14, I got serious problems to get Nefit Easy connected.

Problem:
After HA restart / reboot or powercycling Raspberry Pi3, I get "Unknown error" in the logging (Nefit component does not connect). This is the only logging I get, even with debugging on (as descibed on the Nefit Easy install page):

2020-10-31 19:47:46 DEBUG (MainThread) [custom_components.nefiteasy] Unknown error
2020-10-31 19:47:46 DEBUG (MainThread) [custom_components.nefiteasy] Waiting for connected event

I did some debugging but I still have no clue. Only thing I know is that Nefit tries to connect in an endless loop.
Sometimes it connects after very long time:

In the "init.py" function, routine "await asyncio.wait_for(self.nefit.xmppclient.connected_event.wait(), timeout=29.0)" raises exception after timeout, which results in the "Unknown error". So xmppclient does not connect.

Workaround:
Disconnect network cable from my RPI3 for a few seconds.
After reconnecting the network cable, Nefit connects almost immediately (strange).

Any ideas ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.