Nefit easy client

You can setup template sensors for the attributes, example:

- platform: template
  sensors:
    nefit_pressure:
      friendly_name: 'Nefit Pressure'
      value_template: '{{ states.climate.heating.attributes.system_pressure }}'

What do you have in mind?

Hello

Is it also possible to set the temp in ha?

Greetings justin

Yep, that’s also possible.

Hello b10m

Do you have an example for me?

greetings justin

Selection_003

1 Like

My nefit stopped working last week. I get this error

2018-06-03 21:45:51 WARNING (SyncWorker_3) [custom_components.climate.nefit] Nefit api returned invalid data

I also get these errors, but I don’t know if it is the problem with nefit component

2018-06-03 21:46:55 INFO (read_thread) [sleekxmpp.xmlstream.xmlstream] Negotiating TLS
2018-06-03 21:46:55 INFO (read_thread) [sleekxmpp.xmlstream.xmlstream] Using SSL version: TLS 1.0
2018-06-03 21:46:55 ERROR (read_thread) [sleekxmpp.xmlstream.xmlstream] CERT: Invalid certificate trust chain.
2018-06-03 21:46:55 ERROR (read_thread) [sleekxmpp.xmlstream.xmlstream] Can not read from closed socket.

Hi Kroonen

i have the same problem.
after trying to update Hassbian to 070.1 I get the same messages.
update is also failing.
did you have already fixed the problem?

graafas

No, I didn’t solve it. It looks like an issue with sleekxmpp,

You can fix this by installing the latest from git:
pip install --upgrade git+https://github.com/patvdleer/nefit-client-python.git

Nefit changed the SSL requirements for the api.

thanks, but git is not in my docker image.Wil the this also be updated?

So I can do a RUN pip3 install nefit-client

The problem is not in that package. The problem is that it is fixed on git (https://github.com/patvdleer/nefit-client-python/releases), but not in the Python package. I think this will be updated in the following days. So then you can just re-install the plugin or do pip install --upgrade nefit-client

When I try to uograde with the following command the version 0.2.4 is seen as the latest version? How do I select 0.2.5?

pip3 install --upgrade git+https://github.com/patvdleer/nefit-client-python.git

still not updated so tried with git, but removing sleekxmpp 1.3.2 cause errors

$ sudo docker build -f my_ha -t my_test:0.70.1 .
Sending build context to Docker daemon 206.2MB
Step 1/5 : FROM homeassistant/raspberrypi3-homeassistant:0.70.1
—> dbd13beda56e
Step 2/5 : RUN pip3 install pyaes
—> Using cache
—> 5601619b1440
Step 3/5 : RUN apk update
—> Running in 0115f50381c4
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/armhf/APKINDEX.tar.gz
v3.7.0-193-g2271c9b08f [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-194-gaeb01c2208 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 8876 distinct packages available
Removing intermediate container 0115f50381c4
—> 67e1820c993c
Step 4/5 : RUN apk add git
—> Running in 5385f6501da4
(1/2) Installing pcre2 (10.30-r0)
(2/2) Installing git (2.15.2-r0)
Executing busybox-1.27.2-r8.trigger
OK: 248 MiB in 155 packages
Removing intermediate container 5385f6501da4
—> 01dc331c668e
Step 5/5 : RUN pip3 install --upgrade git+https://github.com/patvdleer/nefit-client-python.git
—> Running in d43920fd1104
Collecting git+https://github.com/patvdleer/nefit-client-python.git
Cloning https://github.com/patvdleer/nefit-client-python.git to /tmp/pip-x7a3aefz-build
Requirement already up-to-date: pyaes in /usr/lib/python3.6/site-packages (from nefit-client==0.2.4)
Collecting sleekxmpp (from nefit-client==0.2.4)
Downloading https://files.pythonhosted.org/packages/13/ca/2a73521df7696b4cf9a9820cd61097c1c88cbb9da67a712146e622426ca1/sleekxmpp-1.3.3.tar.gz (845kB)
Installing collected packages: sleekxmpp, nefit-client
Found existing installation: sleekxmpp 1.3.2
Uninstalling sleekxmpp-1.3.2:
Exception:
Traceback (most recent call last):
File “/usr/lib/python3.6/shutil.py”, line 544, in move
os.rename(src, real_dst)
OSError: [Errno 18] Cross-device link: ‘/usr/lib/python3.6/site-packages/sleekxmpp-1.3.2-py3.6.egg-info’ -> ‘/tmp/pip-gd0iwy03-uninstall/usr/lib/python3.6/site-packages/sleekxmpp-1.3.2-py3.6.egg-info’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3.6/site-packages/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/usr/lib/python3.6/site-packages/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/usr/lib/python3.6/site-packages/pip/req/req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “/usr/lib/python3.6/site-packages/pip/req/req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “/usr/lib/python3.6/site-packages/pip/utils/init.py”, line 267, in renames
shutil.move(old, new)
File “/usr/lib/python3.6/shutil.py”, line 556, in move
rmtree(src)
File “/usr/lib/python3.6/shutil.py”, line 484, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File “/usr/lib/python3.6/shutil.py”, line 482, in rmtree
os.rmdir(path)
OSError: [Errno 22] Invalid argument: ‘/usr/lib/python3.6/site-packages/sleekxmpp-1.3.2-py3.6.egg-info’

Yes, it says 0.2.4, but it is actually 0.2.5. The version info was not updated.

Package is updated

pip3 install nefit-client , gets the right packages

I have migrated to hass.io (docker) on ubuntu 16.04 and I can’t get this client working anymore.

root@UBTSRV:# docker exec -ti homeassistant bash
bash-4.4# pip3 install nefit-client
Requirement already satisfied: nefit-client in /usr/lib/python3.6/site-packages
Requirement already satisfied: pyaes in /usr/lib/python3.6/site-packages (from nefit-client)
Requirement already satisfied: sleekxmpp in /usr/lib/python3.6/site-packages (from nefit-client)
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
bash-4.4#

Error loading custom_components.climate.nefit. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/loader.py", line 86, in get_component
    module = importlib.import_module(path)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/climate/nefit.py", line 24, in <module>
    from nefit import NefitClient
ModuleNotFoundError: No module named 'nefit'

Does anybody have the solution to this issue?

@michel72:
Look at https://github.com/marconfus/ha-nefit/issues/6. THat might help you further.

I hope someone has a solution for this problem?

018-08-23 09:04:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 56, in async_setup_component
return await task # type: ignore
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 118, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/usr/local/lib/python3.6/site-packages/homeassistant/config.py”, line 687, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File “/usr/local/lib/python3.6/site-packages/homeassistant/loader.py”, line 62, in get_platform
return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
File “/usr/local/lib/python3.6/site-packages/homeassistant/loader.py”, line 94, in get_component
module = importlib.import_module(path)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/climate/nefit.py”, line 113
self._attributes[“connection_error_count”] +=
^
SyntaxError: invalid syntax

greetings justin

Try removing line 113 from /config/custom_components/climate/nefit.py
Please report back :slight_smile: Maybe the syntax for Python 3.6 has changed.
edit: On second thought, I am sure more people have used the Nefit component with Python 3.6…