Coder Social home page Coder Social logo

willcodeforcats / tekmar-482 Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 407 KB

Home Assistant integration for the Tekmar Gateway 482

License: MIT License

Python 100.00%
hacs-default hacs-integration home-assistant home-automation homeassistant tekmar

tekmar-482's People

Contributors

dependabot[bot] avatar willcodeforcats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tekmar-482's Issues

Unknown device reported; driver will not start

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.

Feature request: Support for Floor temperature setpoint and current temp in devices which support it

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.

Random shutdowns of the 482 integration

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.

Setpoint 161 bad data at power-on

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

Integration stuck on initializing

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..)

Feature: Manually remap a device ID

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.

Depreciated constants HVAC_MODE_* and CURRENT_HVAC_*

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

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.