elupus / esphome-nibe

Esphome components for nibe heat pumps
MIT License
57 stars 19 forks source link

Climate sensor #31

Closed kirilldem closed 1 week ago

kirilldem commented 1 year ago

Hello,

Does anyone have a solution on how to create a climate sensor and display it in HA as a generic thermostat? I see that the Nibe Uplink come with a climate component, but I would like to move away from the cloud component.

Perhaps someone has a ready made solution you could share?

elupus commented 1 year ago

For F series pumps, it already has one climate entity per nibe climate system.

You are not seeing them?

kirilldem commented 1 year ago

Just before posting my question, I thought that it might be the case, and I double-checked all 641 of my entities and there are no climate.xxx entries:

image

I am running through nibeGW, there is a recurring error in the log, but not sure if this is related:

Logger: nibe.nibe.connection.nibegw
Source: /usr/local/lib/python3.10/site-packages/nibe/connection/nibegw.py:220
First occurred: May 5, 2023 at 11:10:44 PM (3765 occurrences)
Last logged: 2:41:46 PM

Bad logger message: Unexpected exception during parsing packet data 'd0f281f88bff9af7d5ef94b6d1b4c09fec95e68fe187e8caf08bf68bf6' from ('192.168.1.230', 9999) ((ConstError(''),))
Bad logger message: Unexpected exception during parsing packet data 'd0f281f88bff9af7d5ef94b6d1b4c09fec95e68fe187e8caf08bf68ba785e08de89cf98ba993e8caadc8bce391f495f98de489eccef48ff28ff2' from ('192.168.1.119', 51650) ((ConstError(''),))
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/nibe/connection/nibegw.py", line 182, in datagram_received
    msg = Response.parse(data)
  File "/usr/local/lib/python3.10/site-packages/construct/core.py", line 288, in parse
    return self.parse_stream(io.BytesIO(data), **contextkw)
  File "/usr/local/lib/python3.10/site-packages/construct/core.py", line 300, in parse_stream
    return self._parsereport(stream, context, "(parsing)")
  File "/usr/local/lib/python3.10/site-packages/construct/core.py", line 312, in _parsereport
    obj = self._parse(stream, context, path)
  File "/usr/local/lib/python3.10/site-packages/construct/core.py", line 780, in _parse
    return self.parsefunc(stream, context)
  File "", line 43, in parseall
  File "", line 35, in parse_struct_1
  File "", line 25, in parse_const
construct.core.ConstError
elupus commented 1 year ago

Ok F730 must be missing some parameter needed. Will check.

Error does not seem related. Could ve corrupt data from device.

kirilldem commented 1 year ago

Not sure if this matters but when I set up the integration in home assistant I needed to choose F750 instead of F730. Otherwise it gave me an error.

Is there a way to check for corruption issues on the GW?

On Mon, 8 May 2023, 15:12 Joakim Plate, @.***> wrote:

Ok F730 must be missing some parameter needed. Will check.

Error does not seem related. Could ve corrupt data from device.

— Reply to this email directly, view it on GitHub https://github.com/elupus/esphome-nibe/issues/31#issuecomment-1538340885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKTVNSRK5JMOTUNI5BQ6CJ3XFDWNBANCNFSM6AAAAAAXYKJZZA . You are receiving this because you authored the thread.Message ID: @.***>

elupus commented 8 months ago

Was this resolved in HA?

kirilldem commented 8 months ago

Still no climate entry from the gateway, only in the uplink integration. Still only one error in the logs:

`` Logger: nibe.nibe.connection.nibegw Source: /usr/local/lib/python3.11/site-packages/nibe/connection/nibegw.py:220 First occurred: October 15, 2023 at 10:55:37 PM (4192 occurrences) Last logged: 8:45:24 PM

Bad logger message: Unexpected exception during parsing packet data 'd0f281f88bff9af7d5ef94b6d1b4c09fec95e68fe187e8caf08bf68bf6' from ('192.168.1.230', 9999) ((ConstError(''),)) Bad logger message: Unexpected exception during parsing packet data 'd0f281f88bff9af7d5ef94b6d1b4c09fec95e68fe187e8caf08bf68ba785e08de89cf98ba993e8caadc8bce391f495f98de489eccef48ff28ff2' from ('192.168.1.226', 33188) ((ConstError(''),)) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/nibe/connection/nibegw.py", line 182, in datagram_received msg = Response.parse(data) ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 288, in parse return self.parse_stream(io.BytesIO(data), **contextkw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 300, in parse_stream return self._parsereport(stream, context, "(parsing)") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 312, in _parsereport obj = self._parse(stream, context, path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/construct/core.py", line 787, in _parse return self.parsefunc(stream, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 58, in parseall File "", line 31, in parse_struct_1 File "", line 21, in parse_const construct.core.ConstError ``

tizianodeg commented 2 weeks ago

@kirilldem can you check again, this should be working since HA 2024.6 version.

kirilldem commented 1 week ago

@kirilldem can you check again, this should be working since HA 2024.6 version.

I can confirm that I now have the climate system available in HA. Many thanks!