Giter Site home page Giter Site logo

addon-theengsgw's People

Contributors

1technophile avatar koenvervloesem avatar mihsu81 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

addon-theengsgw's Issues

TheengsGateway 1.8.0 on Raspberry Pi 3b+

Not sure why, but same version runs without issues on my VM host of HomeAssistant, but when setting it up pn a RPi3b+ for my garage, the AddOn fails, please advice.

Log from Supervisor:
23-08-12 20:27:10 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on 007e7788/aarch64-addon-theengsgw with version 1.8.0
23-08-12 20:27:59 ERROR (SyncWorker_2) [supervisor.docker.manager] Container addon_007e7788_theengsgw is not running
23-08-12 20:30:28 INFO (SyncWorker_2) [supervisor.docker.manager] Cleaning addon_007e7788_theengsgw application
23-08-12 20:30:28 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on 007e7788/aarch64-addon-theengsgw with version 1.8.0

Log from AddOn:
[20:25:36] INFO: Creating TheengsGateway configuration...
[20:25:46] INFO: Starting TheengsGateway...
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/usr/local/lib/python3.9/dist-packages/TheengsGateway/init.py", line 26, in
from .ble_gateway import run
File "/usr/local/lib/python3.9/dist-packages/TheengsGateway/ble_gateway.py", line 51, in
from bleak.backends.bluezdbus.advertisement_monitor import OrPattern
File "/usr/local/lib/python3.9/dist-packages/bleak/backends/bluezdbus/advertisement_monitor.py", line 12, in
from dbus_fast.service import ServiceInterface, dbus_property, method, PropertyAccess
File "/usr/local/lib/python3.9/dist-packages/dbus_fast/init.py", line 1, in
from . import aio, glib, introspection, message_bus, proxy_object, service
File "/usr/local/lib/python3.9/dist-packages/dbus_fast/aio/init.py", line 1, in
from .message_bus import MessageBus
File "/usr/local/lib/python3.9/dist-packages/dbus_fast/aio/message_bus.py", line 9, in
from .. import introspection as intr
File "/usr/local/lib/python3.9/dist-packages/dbus_fast/introspection.py", line 5, in
from .errors import InvalidIntrospectionError
File "/usr/local/lib/python3.9/dist-packages/dbus_fast/errors.py", line 57, in
from .message import Message
File "src/dbus_fast/message.py", line 1, in init dbus_fast.message
ValueError: dbus_fast._private.marshaller.Marshaller size changed, may indicate binary incompatibility. Expected 48 from C header, got 40 from PyObject

Large number of identical messages flooding MQTT server

Just installed the gateway to pick up my LYWSD03MMC devices and I have noticed some messages flooding the MQTT gateway.
Running HA 2022.11.2 on a Odroid N2.
Monitoring the traffic using MQTTfx I get the multiple identical messages from the same device, I have counted over 25 identical messages within a few seconds.
i.e
{"name": "ATC_A14E82", "id": "A4:C1:38:A1:4E:82", "rssi": -67, "brand": "Xiaomi", "model": "LYWSD03MMC", "model_id": "LYWSD03MMC_ATC", "tempc": 19.5, "tempf": 67.1, "hum": 67, "batt": 79, "volt": 2.92}

Now multiply this by 8 devices.

Is there anyway to reduce the amount, I would be happy to only send a message to HA every 30 seconds, and if it is possible to suppress identical ones to reduce the load?

I have changed scanning interval to 120 to try to slow this down, which has helped, just need to stop duplicates.

Otherwise brilliant bit of code, works better than the default integration, which keeps stopping.

ver 1.6.1 and TPMS sensors

Hi

up until 1.5.0 my tpms sensors were recognized fine and very frequently.

Now only 1 sensor is recognized and updated only after x hours. If I do a BLE scan or use other applications for the same purpose, the sensors work fine.

How can I roll back version using HASSIO addons?

Add-on doesn't start

Hi,
I just installed the new version of the add-on on my rpi4 running hass. Theengs doesn't start, and the log outputs what follows.
Anything I can do?
Thanks. Laurent

[21:57:28] INFO: Creating TheengsGateway configuration...
[21:57:33] INFO: IDENTITIES:
[21:57:33] INFO: BINDKEYS:
[21:57:33] INFO: Starting TheengsGateway...
Exception ignored in: <function Client.del at 0x7fa7a89ee0>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 874, in del
self._reset_sockets()
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
self._sock_close()
File "/usr/local/lib/python3.9/dist-packages/paho/mqtt/client.py", line 1119, in _sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.9/dist-packages/TheengsGateway/main.py", line 5, in
main()
File "/usr/local/lib/python3.9/dist-packages/TheengsGateway/init.py", line 55, in main
run(configuration, config_path)
File "/usr/local/lib/python3.9/dist-packages/TheengsGateway/ble_gateway.py", line 648, in run
gw.connect_mqtt()
File "/usr/local/lib/python3.9/dist-packages/TheengsGateway/ble_gateway.py", line 162, in connect_mqtt
self.client = mqtt_client.Client()
TypeError: init() missing 1 required positional argument: 'callback_api_version'

Unable to install Addon on a Pi3B+

When trying to install the addon on a Pi3b+ I get the following error -

Failed to install add-on

The command '/bin/bash -o pipefail -c apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y build-essential bluez python3-pip python3-dev && pip3 install --extra-index-url=https://www.piwheels.org/simple TheengsGateway==0.3.0' returned a non-zero code: 100

I am running the Pi3 as supervised and not as HAOS which installs fine on my Pi4 (HAOS)

Can't install addon on Home Assistant OS

I get the following error:
ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/007e7788_theengsgw/install - The command '/bin/bash -o pipefail -c apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y build-essential bluez python3-pip python3-dev && pip3 install --extra-index-url=https://www.piwheels.org/simple TheengsGateway==0.6.5' returned a non-zero code: 1

Home Assistant 2022.12.4
Supervisor 2022.11.2
Operating System 9.4
Frontend 20221212.0 - latest

HAOS running inside proxmox vm

Addon on Home Assistant OS fails to install

Failed to install add-on
The command '/bin/bash -o pipefail -c apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y build-essential bluez python3-pip python3-dev && pip3 install --extra-index-url=https://www.piwheels.org/simple TheengsGateway==0.7.0' returned a non-zero code: 100

Home Assistant 2023.1.7
Supervisor 2023.01.1
Operating System 9.4
Frontend 20230110.0
HAOS barebone Raspberry Pi4/SSD

Supervised HA Add-on failed to start

Tha addon fails to start with the following log:

ERROR:BLEGateway:Failed to connect to MQTT broker localhost:1883 return code: 5
ERROR:BLEGateway:Disconnected with return code = 5

Running HA 2023.7.1 on Debian 12

Could you shed some details on what these error codes mean?
I tried to change the port to 1884 (web-socket) and the error code changed to 2 but the addon still did not start.

Addon doesn't start on rpi3 with haos

Hi,

I've got an issue : when trying to start the add-on on my rpi3 with hasos, I get this message :

Image 007e7788/aarch64-addon-theengsgw:1.11.0 does not exist for addon_007e7788_theengsgw

Here is the message :

Capture d’écran 2024-03-03 à 19 43 39

I tried to rebuild the add-on, without success...

Thanks!

cannot run on NUC

im running hassos on NUC, my bluetooth running on hci0 , the log says no error but stuck

[13:50:33] INFO: Creating TheengsGateway configuration...
[13:50:34] INFO: Starting TheengsGateway..
browsing my MQTT server no connection made. any tips?

Addon backup is huge (containing big mysterious image.tar - is this really needed?)

When HA creates a backup/snapshot of the TheengsGateway addon (v1.8.0) it contains next to few config JSON files also a image.tar with uncompressed ~ 500 MB of size.

I have no idea what it's content is important for (did no deep inspection so far), but: the backup creation duration significantly increased once TheengsGateway has been installed, also backup size increased by a lot.

Looking at what this addon does I don't understand why its backup has such a large footprint. Could you please
a) check if this is a bug / an accidental part of the backup
b) in case a is negative, if the image.tar is really needed

Depending on this I might exclude the addon from my full backup as currently the listed negative outcome outperforms the benefits (what we really need are just the addon settings, just a small json, right?).

tls trusted certificates

Where do i need to put the ca certificates for tls?
Or is there an option to ignore self signed certificates?

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.