willcodeforcats / tekmar-482 Goto Github PK
View Code? Open in Web Editor NEWHome Assistant integration for the Tekmar Gateway 482
License: MIT License
Home Assistant integration for the Tekmar Gateway 482
License: MIT License
Add configuration option to set a custom ping interval.
Climate entity auxiliary heater is deprecated
https://developers.home-assistant.io/blog/2024/03/10/climate-aux-heater-deprecated
Re-implement as a switch entity under device config.
I cannot get the latest version (n-1) to load:
Driver version v0.9.16
HA version 2023.12
Power cycling the gateway does not make a difference.
2024-02-07 10:34:00.418 DEBUG (MainThread) [custom_components.tekmar_482.hub] Fetching data from file /config/tekmar_482.tekmar.pickle
2024-02-07 10:34:00.418 DEBUG (MainThread) [custom_components.tekmar_482.hub] Writing tekmar_482.tekmar.pickle:True in storage file /config/tekmar_482.tekmar.pickle
2024-02-07 10:34:00.979 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 203
2024-02-07 10:34:01.080 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 207
2024-02-07 10:34:01.181 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 201
2024-02-07 10:34:01.283 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 209
2024-02-07 10:34:01.384 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 202
2024-02-07 10:34:01.486 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 204
2024-02-07 10:34:01.688 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 205
2024-02-07 10:34:01.790 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 3018
2024-02-07 10:34:01.892 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 208
2024-02-07 10:34:01.994 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 206
2024-02-07 10:34:02.095 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 3001
2024-02-07 10:34:02.197 DEBUG (MainThread) [custom_components.tekmar_482.hub] Setting up address 3002
2024-02-07 10:34:02.399 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 203 type 102303
2024-02-07 10:34:02.500 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 203 version 120800
2024-02-07 10:34:02.602 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 203 attributes 257
2024-02-07 10:34:02.702 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 203 setback events 0
2024-02-07 10:34:02.804 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 207 type 102303
2024-02-07 10:34:03.007 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 207 version 120800
2024-02-07 10:34:03.109 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 207 attributes 257
2024-02-07 10:34:03.210 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 207 setback events 0
2024-02-07 10:34:03.311 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 201 type 104401
2024-02-07 10:34:03.412 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 201 version 121509
2024-02-07 10:34:03.514 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 201 attributes 283
2024-02-07 10:34:03.616 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 201 setback events 0
2024-02-07 10:34:03.717 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 209 type 102303
2024-02-07 10:34:03.818 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 209 version 120800
2024-02-07 10:34:03.919 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 209 attributes 1
2024-02-07 10:34:04.020 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 209 setback events 0
2024-02-07 10:34:04.121 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 202 type 104401
2024-02-07 10:34:04.223 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 202 version 121508
2024-02-07 10:34:04.426 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 202 attributes 283
2024-02-07 10:34:04.528 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 202 setback events 0
2024-02-07 10:34:04.629 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 204 type 105102
2024-02-07 10:34:04.731 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 204 version 122207
2024-02-07 10:34:04.832 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 204 attributes 283
2024-02-07 10:34:04.933 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 204 setback events 0
2024-02-07 10:34:05.034 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 205 type 104401
2024-02-07 10:34:05.136 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 205 version 121509
2024-02-07 10:34:05.237 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 205 attributes 283
2024-02-07 10:34:05.339 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 205 setback events 0
2024-02-07 10:34:05.440 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 3018 type 104401
2024-02-07 10:34:05.542 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 3018 version 121502
2024-02-07 10:34:05.644 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 3018 attributes 283
2024-02-07 10:34:05.746 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 3018 setback events 0
2024-02-07 10:34:05.948 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 208 type 105102
2024-02-07 10:34:05.948 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 208 version 122207
2024-02-07 10:34:05.948 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 208 attributes 283
2024-02-07 10:34:05.949 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 208 setback events 0
2024-02-07 10:34:05.949 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 206 type 105102
2024-02-07 10:34:05.949 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 206 version 122207
2024-02-07 10:34:05.949 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 206 attributes 283
2024-02-07 10:34:05.949 DEBUG (MainThread) [custom_components.tekmar_482.hub] Address 206 setback events 0
2024-02-07 10:34:05.949 WARNING (MainThread) [custom_components.tekmar_482.hub] Unknown device type 4294967295. Try power cycling your Gateway 482.
Describe the bug
Feature request: Support for
Expected behavior
Most devices support the option for a floor temp sensor, and also export an additional setpoint for the floor minimum. It would be great to expose those to HA.
My current thermostat devices are 553 (3), 557 (4), 529 (3) and 161 (2).
The primary use case I have is for the 5xx thermostats as a floor min in conjunction with the room temp setpoints.
Before reporting a bug, make sure you are running the latest version of tekmar-482
integration and the tekmar-packetserv
add-on.
Describe the bug
Every 3-4 hours or so the integration shuts down with an uncaught exception during packet processing at line 306. It appears that it's possibly a data serialization/sync issue -- the serviceID is a very large number and out of bounds.
Expected behavior
Ideally no crashes and no corrupted packets, but perhaps we want to test & capture exceptions during early processing of new packets received?
Screenshots
If applicable, add screenshots of the problem and/or configuration.
Logs
Copy any log messages/errors from Home Assistant from custom_components.tekmar_482
Home Assistant (please complete the following information):
Home Assistant 2022.11.4
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
Additional context
Add any other context about the problem here.
Bad data is reported for Setpoint 161 (and possibly other devices of the same vintage) if power is lot and restores to the network and Gateway 482 at the same time. Fixed by power cycling the 482 after all connected devices are online.
2022-05-27 08:42:09 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry tekmarnet for tekmar_482
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/tekmar_482/__init__.py", line 32, in async_setup_entry
await tekmar_gateway.async_init_tha()
File "/config/custom_components/tekmar_482/hub.py", line 229, in async_init_tha
DEVICE_TYPES[self._tha_inventory[b['address']]['type']].capitalize(),
KeyError: 4294967295
Currently must be manually reloaded if connection to tekmar-packetserv is lost.
Hi! I have a Tekmar 680 snowmelt device that is not listed in the documentation as a supported device. Any chance this could be added? Happy to help develop/test in any way.
https://www.watts.com/products/hvac-hot-water-solutions/controls/snow-melting-controls/680/680
I get repeated "attributes changed on device ...", in the logs, but after the reload those attributes report the same.
Home Assistant (please complete the following information):
Test the Setpoint 161 in other modes and see if any changes need to be made to entities.
Add support for HA 2024.4 'reconfigure' config flow step.
Is its RS232 to USB and plug into device running HA? I am using HA as a VM.
Update number entity sensors for 2022.7
https://developers.home-assistant.io/blog/2022/06/14/number_entity_refactoring
We had to write our own helper to do this previously, but can now rewrite it to use native_ functions in home assistant.
Tried changing port to 7001 on packet server and integration. Using prolific chip usb to rs232 to connect. Any idea what else may be causing the error (tried usual shutdown etc..)
Add to HACS default integrations.
Pending home-assistant/brands#3409
Add a YAML config option to manually remap unknown device IDs to known ones, similar to what I did for advanced config in solaredge-modbus-multi.
I don't know why the gateway will return unknown device IDs, but it has been observed that it does so it might be a good idea to provide a way to remap what it presents into one of the known types.
All HVAC_MODE_* constants from the Climate platform, have been deprecated. Use the new HVACMode enum instead.
All CURRENT_HVAC_* constants from the Climate platform, have been deprecated. Use the new HVACAction enum instead.
PR 70286 and 70319 in Home Assistant core.
Min HA version 2022.5
Snowmelt control doesn't have any entities yet. Need to connect test unit and see what it reports.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.