Code Monkey home page Code Monkey logo

hassio-diyhue's People

Contributors

dependabot[bot] avatar foxy82 avatar hepoh3 avatar maxbec avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

hassio-diyhue's Issues

Need to pass Deconz Port and IP

Thanks for the addon!
Unfortunately I cannot get it to work with my setup since I need to be able to pass in DECONZ IP address as well as the port.
Maybe it is already possible and I have not seen it?

[Request] A better tutorial how to do it in Home Assistant

Hi, i'm trying to config this in Home assistant, but right now I'm very confuse with the avaliable tutorial. I already install the addon, but about the next confguration Im stuck..

I have the home assistant with supervisor, hacks and Zigbee2Mqtt with a CC2652R, and I have a philips hue hub

unable to connect to HA Websocket

im running version

diyHue-beta
Current version: 1.1.8

in Hass.io from https://github.com/MaxBec/hassio-diyHue

Im running HA in Version
2020.12.7

It seems that diyhue cant connect to the HA API.

my config.json:

"emulator": { "alarm": { "email": "", "lasttriggered": 100000, "on": false }, "esphome": { "enabled": false }, "homeassistant": { "enabled": true, "homeAssistantIncludeByDefault": true, "homeAssistantIp": "192.168.178.106", "homeAssistantPort": 8123, "homeAssistantToken": "....." }, "hyperion": { "enabled": false }, "lights": {}, "mqtt": { "discoveryPrefix": "homeassistant", "enabled": false, "mqttPassword": "", "mqttPort": 1883, "mqttServer": "mqtt", "mqttUser": "" }, "network_scan": { "enabled": true }, "sensors": {}, "shelly": { "enabled": false }, "tasmota": { "enabled": false }, "wled": { "enabled": false }, "yeelight": { "enabled": false } },

The logs tell me:

2021-01-06 23:55:49,973 - root - INFO - IP range for light discovery: 0-255
2021-01-06 23:55:49,973 - root - INFO - 127.0.0.1
2021-01-06 23:55:49,973 - root - INFO - Online Discovery/Remote API Enabled!
2021-01-06 23:55:49,975 - root - INFO - Config loaded
2021-01-06 23:55:49,985 - root - WARNING - Home Assistant Web Socket Client disconnected trying to (re)connect
2021-01-06 23:55:49,989 - root - ERROR - Error connecting to Home Assistant WebSocket
Traceback (most recent call last):
  File "/opt/hue-emulator/protocols/homeassistant_ws.py", line 223, in create_websocket_client
    homeassistant_ws_client.connect()
  File "/usr/local/lib/python3.8/site-packages/ws4py/client/__init__.py", line 233, in connect
    raise HandshakeError("Invalid response")
ws4py.exc.HandshakeError: Invalid response
2021-01-06 23:55:49,993 - root - DEBUG - start ssdp broadcast
2021-01-06 23:55:49,994 - root - DEBUG - starting ssdp...
2021-01-06 23:55:49,996 - root - INFO - sync with lights
2021-01-06 23:55:50,003 - root - INFO - Starting httpd...

Alexa / Harmony unable to Pair

Hi, sorry for opening so many issues.
Wondering if there maybe a better to way to discuss things like this in a forum thread instead.

However, when checking DIYHUE docs, it seems that Harmony Hub aswell as Alexa should be able to discover the diyhue since they both use the localapi.

In my case however:

Alexa is not able to find my diyhue
harmony hub, while finding a hub, is not able to connect.

Can I share any specific log output to help debugging this?

Can't connect to deconz on 127.0.0.1:8080 after version 1.4.1

I have deconz running on port 8080 as a hassio add-on, it was working with 1.4.0 but upgrading to 1.4.1 it can't connect:

[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = armv7
Serve HTTPS
2021-04-25 15:47:29,368 - root - INFO - Using Host 172.30.33.2:80
Host MAC given as dca632b72ff3
2021-04-25 15:47:29,368 - root - INFO - dca632b72ff3
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
2021-04-25 15:47:29,369 - root - INFO - IP range for light discovery: 0-255
Deconz IP given as 127.0.0.1
2021-04-25 15:47:29,369 - root - INFO - 127.0.0.1
2021-04-25 15:47:29,370 - root - INFO - Online Discovery/Remote API Enabled!
2021-04-25 15:47:29,373 - root - INFO - Config loaded
2021-04-25 15:47:29,397 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): 127.0.0.1:8080
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 158, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 597, in urlopen
    httplib_response = self._make_request(conn, method, url,
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 167, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb5ee9190>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 637, in urlopen
    retries = retries.increment(method, url, error=e, _pool=self,
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 399, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8080): Max retries exceeded with url: /api/283145a4e198cc6535/config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5ee9190>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/hue-emulator/HueEmulator3.py", line 1998, in <module>
    scanDeconz()
  File "/opt/hue-emulator/HueEmulator3.py", line 1052, in scanDeconz
    deconz_config = json.loads(sendRequest("http://" + deconz_ip + ":" + str(bridge_config["deconz"]["port"]) + "/api/" + bridge_config["deconz"]["username"] + "/config", "GET", "{}"))
  File "/opt/hue-emulator/functions/request.py", line 19, in sendRequest
    response = requests.get(url, timeout=timeout, headers=head)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 524, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 637, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8080): Max retries exceeded with url: /api/283145a4e198cc6535/config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5ee9190>: Failed to establish a new connection: [Errno 111] Connection refused'))
2021-04-25 15:47:34,389 - root - INFO - delete rules / 4
[cmd] ./run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

is there a way to fix this?

All lights are recognized as "Smart Plug"

Hello
I need Help,

every Lightsource i add is an "Hue smart plug" in my app.
Are there any parameters i dont find on the github?
I would like to dimm my lights and change the color.

Here´s my customize.yaml: I use the stable Branch

light.kueche_led_ufo_2:
diyhue: include
light.wled:
diyhue: include

thanks in regard.

Can't install master version

The installation fails with

The command '/bin/bash -o pipefail -c mv /diyhue/BridgeEmulator/web-ui/ ./web-ui/' returned a non-zero code: 1

You can install the beta, but I couldn't get it to connect to the Hue app either. Would be great if you could update the addons and the documentation.

update bridge needed

When trying to make a new bridge it finds diyhue but then there is a screen that a update for the bridge is needed.

When trying to install the bridge update it fails.

-EDIT Im not able to find config/diyhue in the folders to change the software version

-EDIT i now got the diyheu config from the github but in the config/json there is no software version to change.

beta branch support

thanks for this add-on, it's super convenient! (just sent you a tip!)

I am hoping to install the beta branch of diyhue in HA because of a fix for this issue. Are there plans to support installation of the beta branch with this add-on?

can't discover deconz on port 8080

I have deconz server running at 127.0.0.1 on port 8080 for the web api and port 8081 for the websocket api, but there's no configuration option here for specifying a different deconz port. So I stopped diyhue, went into the config.json and edited this section:

    "deconz": {
        "enabled": true,
        "lights": {},
        "port": 8080,
        "sensors": {}
    },

restarted diyhue, tried the "pairing process" which is,

1 - go into deconz web interface and choose gateway->advanced->authenticate app
2 - go to diyhue's webserver at /deconz

but nothing is happening, lights aren't added although they exist in deconz, none discoverable on my paired Philips Hue android app.

any chance to support alternate ports? am I doing anything wrong?

Bridge didn't find lights - Ambilight TV didn't find bridge (anymore)

After some other issues at least the bridge wouldn't found anymore from my Ambilight TV. After 10s the scan aborts. Also HueEssentials didn't find the bridge by automatic scan. Manually i can add the bridge. But i haven't this option for my TV. And now HueEssentials didn't find any lights. So is there an opportunity to downgrade to the last version to cross check this issue?

Beta not creating config file and settings empty. How to setup the beta branch?

So, basically I'd like to know how to configure the beta branch?

I can start it, access the new UI and even connect the new Hue App.
However, I can simply not configure my lights into the beta branch.
I'd like to use the HomeAssistant lights as I do in the normal branch. In the normal one, i simply edit the config file.
But the beta one, doesnt create a config file, and the settings tab in the new UI is just empty.
Am I doing something wrong? Any Tipps?

Gateway in Config File wrong?

Please excuse my ignorance..

im currently trying to get the diyhue addon recognized by the HUE App but am failing miserably. I assume this is some VLAN reason...

Anyway, while going through the config file, i realized that the gateway that is set is:
172.30.33.1
Shouldn't this actually be:
172.30.32.1

At least that is also what portainer and the debug log shows as being queried by the addon.
Please feel free to close this if this is completely wrong.

Cant connect hue essential app

I am trying to connect the hue essentials app with this diyhue hassio addon but i cant get it to work.
In the home assistant addon log i keep getting this:
[2022-03-01 16:56:04,161] ERROR in app: Exception on /api/hueessac997811ecbbbb525400894582 [GET] Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/usr/local/lib/python3.8/site-packages/flask_restful/__init__.py", line 467, in wrapper resp = resource(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 84, in view return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request resp = meth(*args, **kwargs) File "/opt/hue-emulator/flaskUI/restful.py", line 116, in get result[resource][resource_id] = bridgeConfig[resource][resource_id].getV1Api( File "/opt/hue-emulator/HueObjects/__init__.py", line 331, in getV1Api result["state"]["hue"] = self.state["hue"] KeyError: 'hue'

and in the hue essentials app i get this error:
Server error(GET https://192.168.178.236/api/hueessac997811ecbbbb525400894582: 500 INTERNAL SERVER ERROR. Text:"{"message":"Internal Server Error"}"

Log File in HA uses non standard characters

Just noticed that some of the characters are not readable within the HomeAssistant Log.
Please see below for reference

[[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2020-12-06 19:46:48,891 - configManager.argumentHandler - INFO - Using Host 172.30.33.8:80
2020-12-06 19:46:48,891 - configManager.argumentHandler - INFO - Host MAC given as 94c6911e106c
2020-12-06 19:46:48,891 - configManager.argumentHandler - INFO - IP range for light discovery: 0-255
2020-12-06 19:46:48,891 - configManager.argumentHandler - INFO - Deconz IP given as 127.0.0.1
2020-12-06 19:46:48,891 - configManager.argumentHandler - INFO - Online Discovery/Remote API: True
2020-12-06 19:46:48,891 - configManager.argumentHandler - INFO - Debug logging disabled!
2020-12-06 19:46:48,892 - configManager.configStorage - INFO - Core config found
2020-12-06 19:46:49,160 - lightManager.core.lightRequest - INFO - sync with lights
2020-12-06 19:46:49,162 - webServer.server - INFO - Starting httpd...
2020-12-06 19:46:49,164 - webServer.server - INFO - Starting ssl httpd...
{"ok"}
2020-12-06 19:46:54,163 - configManager.bridgeConfigHandler - INFO - done recycling
2020-12-06 19:46:55,232 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('ZZ\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x01\x93::\x00\x00\x00\x00\x00\x18\x00\x16\x00\x00\x13XXXX\x00\x17\x00\x00ÿ\x01\x00\x01\x00\x00')
2020-12-06 19:46:55,233 - WebServer - WARNING - 192.168.10.101 - "������ü��M'��eù����G¡�¯P£_8h��C¨o^!�>»Í. �ôLØÀåÜ_�lÛ�ºÖÞdv��S�?¥$ìÃmB3s ZZ������À+À/À,À0̨̩À�À���/5���::���XXXXXXXg�ÿ��" 400 -
2020-12-06 19:46:55,233 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('\x8a\x8a\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x01\x93\x1a\x1a\x00\x00\x00\x00\x00\x18\x00\x16\x00\x00\x13XXXXXX\x00\x17\x00\x00ÿ\x01\x00\x01\x00\x00')
2020-12-06 19:46:55,234 - WebServer - WARNING - 192.168.10.101 - "������ü��BìQ�+a_���©Ø,Rk@'�·>&Ò�k�ÔË�½�ùà >[�ÈÈôív�U©xgè~�!GU.Wñ·$�GHG�oAH ��������À+À/À,À0̨̩À�À���/5��������XXXXXXXX�ÿ��" 400 -
2020-12-06 19:46:55,238 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('·\x84~Gðôû.ÇàV¼\x9eIÓ\x9bÚ·\x91þD\x9a¥\x02"\x1b\x8bÃlö\x18u\x00"úú\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00')
2020-12-06 19:46:55,238 - WebServer - WARNING - 192.168.10.101 - "������ü��??��÷�a�sü���ºÕnË¡#�Êb�ó1�Þä:ø¸3 ·�~Gðôû.ÇàV¼�IÓ�Ú·�þD�¥�"��Ãlö�u"úú������À+À/À,À0̨̩À�À���/5" 400 -
2020-12-06 19:46:55,243 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03TÓ')
2020-12-06 19:46:55,244 - WebServer - WARNING - 192.168.10.101 - "������ü��TÓ�Wa'Ò" 400 -
2020-12-06 19:46:57,246 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('\x8a\x8a\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x01\x93ÊÊ\x00\x00\x00\x00\x00\x18\x00\x16\x00\x00\x13XXXXXXXXXX\x00\x17\x00\x00ÿ\x01\x00\x01\x00\x00')
2020-12-06 19:46:57,247 - WebServer - WARNING - 192.168.10.101 - "������ü��Ø�ú��´­�~0²#>á�W¨À��yæÝ ýé�-WZµ{ $ù¯|ðúF£�ø�í½°{�x¼ÃOê£LP�mü£?æ ��������À+À/À,À0̨̩À�À���/5���ÊÊ���XXXXXXXXXXX�ÿ��" 400 -
2020-12-06 19:46:57,248 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('ªª\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x01\x00\x01\x93\x9a\x9a\x00\x00\x00\x00\x00\x18\x00\x16\x00\x00\x13XXXXXXXXXXXX\x00\x17\x00\x00ÿ\x01\x00\x01\x00\x00')
2020-12-06 19:46:57,248 - WebServer - WARNING - 192.168.10.101 - "������ü��µ�XÚ+�>öÐÒÊÍÕ*�¾�)�0¥Î»7Ò¾��Õú[ ªhÙßí(òè�½F��>2Ù��h�ç�ïìÇñtù��#' ªª������À+À/À,À0̨̩À�À���/5��������XXXXXXXXXXXXXXX�ÿ��" 400 -
2020-12-06 19:46:57,251 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('\x8eh¹\x88ùÁxVT\x18DÛ\x98Hi%P}i§MÁª%P¹\\¦Öö§¢\x00"\x1a\x1a\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00')
2020-12-06 19:46:57,252 - WebServer - WARNING - 192.168.10.101 - "������ü��X^¼ì¹¡�P�nÁIàÅ:4ʸ�À��9Õë�Â�ô��� �h¹�ùÁxVT�DÛ�Hi%P}i§MÁª%P¹\¦Öö§¢"��������À+À/À,À0̨̩À�À���/5" 400 -
2020-12-06 19:46:57,252 - WebServer - WARNING - 192.168.10.101 - code 400, message Bad request version ('\x1a\x97ØW\x11ºª_\x91âõo\x00"ªª\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00')
2020-12-06 19:46:57,253 - WebServer - WARNING - 192.168.10.101 - "������ü��ñÒ�D�SÖÍ��­.�K�äþ#ª�Ò���å½_´£� �YOL¤}F_�/������Ì�R���ØW�ºª_�âõo"ªª������À+À/À,À0̨̩À�À���/5" 400 -
2020-12-06 19:47:01,187 - lightManager.core.lightRequest - INFO - sync with lights]([url](`url`))

Addon Not Installing - gzip: invalid magic

I encountered several issues, and decided to rebuild and then even to reinstall.
Now trying to install the addon I get the following logs:

(22/45) Installing mpc1 (1.1.0-r1)

(23/45) Installing gcc (9.3.0-r2)

(24/45) Installing musl-dev (1.1.24-r10)

(25/45) Installing libc-dev (0.7.2-r3)

(26/45) Installing g++ (9.3.0-r2)

(27/45) Installing make (4.3-r0)

(28/45) Installing fortify-headers (1.1-r0)

(29/45) Installing build-base (0.5-r2)

(30/45) Installing pcre2 (10.35-r0)

(31/45) Installing git (2.26.2-r0)

(32/45) Installing alpine-sdk (1.0-r0)

(33/45) Installing linux-headers (5.4.5-r1)

(34/45) Installing brotli-libs (1.0.9-r1)

(35/45) Installing c-ares (1.16.1-r0)

(36/45) Installing libuv (1.38.1-r0)

(37/45) Installing nodejs (12.18.4-r0)

(38/45) Installing npm (12.18.4-r0)

(39/45) Installing python2 (2.7.18-r0)

(40/45) Installing socat (1.7.3.4-r0)

(41/45) Installing udev-init-scripts (33-r1)

Executing udev-init-scripts-33-r1.post-install

(42/45) Installing eudev-libs (3.2.9-r3)

(43/45) Installing libblkid (2.35.2-r0)

(44/45) Installing kmod-libs (27-r0)

(45/45) Installing eudev (3.2.9-r3)

Executing busybox-1.31.1-r19.trigger

Executing eudev-3.2.9-r3.trigger

OK: 338 MiB in 87 packages

  % Total    % Received % Xferd  Average Speed   Tim
e    Time     Time  Curr
ent
       
           
             
  Dload  
Upload   To
tal   Spent
    Left
  Speed

  0     0   
 0     0  
  0     0  
    0      
0 --:--:-- 
--:--:-- -
-:--:--    
 0

  0     0    0
     0    0
     0      0      0 --:-
-:-- --:--:-- --:--:--    
 0
100   130  100   130  
  0     0    
522      0 
--:--:-- --
:--:-- --:--:-
-   520


100    14  100    14    0     0   
  33      0 --:--:-- -
-:--:-- --:
--:--    33

gzip: invalid magic

tar: Child returned status 1
tar: Error is not recoverable: exiting now

Removing intermediate container e727054318e1

As far as I am aware, nothing really changed to last my system from last time i was succesful in installing this addon.

Stop logging to the syslog

Hello, first of all thank you for this integration.

If this is a stupid question, I apologize in advance. I don't have much knowledge about docker...

The integration floods /var/log/syslog with this information even if debug is turned off:

A
{'alert': 'select',
 'bri': 171,
 'colormode': 'xy',
 'ct': 500,
 'mode': 'homeautomation',
 'on': False,
 'reachable': False,
 'xy': [0.599, 0.382]}
A
{'alert': 'select',
 'bri': 166,
 'colormode': 'xy',
 'ct': 500,
 'mode': 'homeautomation',
 'on': False,
 'reachable': False,
 'xy': [0.599, 0.382]}

The log file is already over 100Mb after one day.

I tried

logger:
  default: critical
  logs:
    custom_component.590f8686_diyhue-beta-branch: critical

in configuration.yaml, but without success.

The container seems to be configured for logging to the syslog, right?

docker inspect -f '{{.HostConfig.LogConfig.Type}}' addon_590f8686_diyhue-beta-branch
journald

How can I turn this off?

Thank you.

Addon started with errors

Hi,
today morning after the bridge wasn't available anymore i did the last updates of HA and hassio-diyHue. But it wouldn't better.
At least i deinstalled the addon deleted the whole /config/diyhue folder, then installed the addon new.

The first install 3 weeks ago running true really easy.

What can i do?

Log:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...

Add-on: diyHue
Philips Hue Bridge Emulator BETA

Add-on version: 1.3.1
You are running the latest version of this add-on.
System: Home Assistant OS 5.10 (armv7 / raspberrypi3)
Home Assistant Core: 2021.1.4
Home Assistant Supervisor: 2021.01.5

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/config/diyhue exists.
Your Architecture is = BUILD_ARCH
Serve HTTPS
/opt/hue-emulator/functions/entertainment.py:97: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if len(nativeLights) is not 0:
/opt/hue-emulator/functions/entertainment.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if len(esphomeLights) is not 0:
/opt/hue-emulator/protocols/esphome.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if address["esphome_model"] is not "ESPHome-Toggle":
Host MAC given as XXXXXXXXXX
Docker Setup Initiated
SSL certificate found
Config file found
Docker Setup Complete
Traceback (most recent call last):
File "/opt/hue-emulator/HueEmulator3.py", line 1991, in
initialize()
File "/opt/hue-emulator/HueEmulator3.py", line 204, in initialize
bridge_config["config"]["mac"] = mac[0] + mac[1] + ":" + mac[2] + mac[3] + ":" + mac[4] + mac[5] + ":" + mac[6] + mac[7] + ":" + mac[8] + mac[9] + ":" + mac[10] + mac[11]
IndexError: string index out of range
[cmd] ./run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

Entertainment zone not working properly with yeelight

I connected my Yeelight lightstrip through Homeassistant since Diyhue couldn't find it itself with a lightsearch. Everything is working fine except for entertainment zones where my Yeelight stops syncing after about 3 seconds. I've enabled "Music mode" in homeassistant but still no luck.

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.