hass-emulated-hue / core

Hue Emulation for Home Assistant
Apache License 2.0
330 stars 53 forks source link

[BUG] Bridge not found on Philips Android Ambilight TV #61

Closed lagmoellertim closed 3 years ago

lagmoellertim commented 3 years ago

Describe the bug When I try to connect this emulated bridge with my Ambilight Philips Android TV, you can't select the lights you want to use for the entertainment mode, instead EmulatedHue throws an exception.

Steps to Reproduce

  1. On Android TV (with Philips Ambilight) goto Settings -> Ambilight + Hue -> Setup
  2. Select Home Assistant (the Emulated Bridge) as the Bridge
  3. TV shows dialog to confirm settings with bridge button press
  4. Notification in HomeAssistant, with working link to click emulated button
  5. TV accepts button press and goes to next screen where you can usually select the lights you want to use, but instead there's a text saying "No bridge"
  6. EmulatedHue throws exceptions

Expected behavior

Logs

2021-01-07 23:31:40,444 INFO  emulated_hue.config -- Auto detected listen IP address is 192.168.69.199
2021-01-07 23:31:40,476 INFO  hass-client -- Connecting to hassio/homeassistant
2021-01-07 23:31:40,480 INFO  emulated_hue.api -- Started HTTP webserver on port 80
2021-01-07 23:31:40,497 INFO  hass-client -- Connected to hassio/homeassistant
2021-01-07 23:31:40,574 INFO  emulated_hue.api -- Started HTTPS webserver on port 443
2021-01-07 23:34:18,044 INFO  emulated_hue.config -- Link request detected - Use the Homeassistant frontend to confirm this link request.
2021-01-07 23:34:21,862 INFO  emulated_hue.config -- Link mode is enabled for the next 5 minutes.
2021-01-07 23:34:21,871 INFO  emulated_hue.api -- Client 55PUS7354/12 registered
2021-01-07 23:34:21,914 ERROR aiohttp.server -- Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/app/emulated_hue/api.py", line 89, in wrapped_func
    return await func(cls, request)
  File "/app/emulated_hue/api.py", line 460, in get_full_state
    "lights": await self.__async_get_all_lights(),
  File "/app/emulated_hue/api.py", line 768, in __async_get_all_lights
    result[light_id] = await self.__async_entity_to_hue(entity, light_config)
  File "/app/emulated_hue/api.py", line 753, in __async_entity_to_hue
    for key, value in device["identifiers"]:
ValueError: too many values to unpack (expected 2)
2021-01-07 23:34:25,924 INFO  emulated_hue.api -- Stop Entertainment mode for group 6 - params: {'stream': {'active': False}}
2021-01-07 23:34:25,944 INFO  emulated_hue.entertainment -- Start HUE Entertainment Service on UDP port 2100.
2021-01-07 23:34:26,166 ERROR aiohttp.server -- Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/app/emulated_hue/api.py", line 89, in wrapped_func
    return await func(cls, request)
  File "/app/emulated_hue/api.py", line 460, in get_full_state
    "lights": await self.__async_get_all_lights(),
  File "/app/emulated_hue/api.py", line 768, in __async_get_all_lights
    result[light_id] = await self.__async_entity_to_hue(entity, light_config)
  File "/app/emulated_hue/api.py", line 753, in __async_entity_to_hue
    for key, value in device["identifiers"]:
ValueError: too many values to unpack (expected 2)
2021-01-07 23:39:21,864 INFO  emulated_hue.config -- Link mode is disabled.

Hardware Info:

Thanks in advance for your help :)

alexyao2015 commented 3 years ago

What lights are you using? Looks to be an error parsing the metadata from the lights. Does the official Hue app or any Hue apps work?

lagmoellertim commented 3 years ago

I will test that now, I just noticed that this could be a simple python error (dictionaries are unpacked using dict.items() in order to get key and value => the expected 2 items to unpack). I try fixing that and see if it will work.

Edit: Hue Essentials produces the same error. I'm using YeeLights and a WLED strip. Edit 2: I tried fixing the issue here, which removed the exception. Sadly, it still does not work, in Hue Essentials I get this error: Unexpected Answer from Bridge: Expected an int but was given 22.804 at path $.lights.3.state.hue.

My light setup is the following: 3 Yeelight Color v1.3 3 Yeelight White v1.3 1 WLED Strip 1 HA Light Group containing all colored Yeelights and the WLED 1 HA Light Group containing all white Yeelights 1 HA Light Group containing all lights

alexyao2015 commented 3 years ago

If you would be able to debug python to show what is stored within "device" that would be helpful. If you don't want to setup your dev environment, you could also simply log "device" and post the value here. The dev addon should allow you to use your own fork for testing purposes by doing username:branch.

lagmoellertim commented 3 years ago

This is the output I get:

2021-01-08 14:21:32,028 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP15YL', 'name': 'YLBulb1S(Dimmable)-FEE7', 'sw_version': '2.0.10', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX'], ['homekit_controller', 'serial-number', 'XXXXXXXXX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Deckenlampe 2', 'disabled_by': None}
2021-01-08 14:21:32,028 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,029 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP15YL', 'name': 'YLBulb1S(Dimmable)-398A', 'sw_version': '2.0.10', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'serial-number', 'XXXXXXXXX'], ['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Deckenlampe 1', 'disabled_by': None}
2021-01-08 14:21:32,029 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,029 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP13YL', 'name': 'YLBulbColor1s-672E', 'sw_version': '2.0.31', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'serial-number', 'XXXXXXXXX'], ['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Unbenutzt RGB', 'disabled_by': None}
2021-01-08 14:21:32,030 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,030 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP13YL', 'name': 'YLBulbColor1s-DD83', 'sw_version': '2.0.30', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'serial-number', 'XXXXXXXXX'], ['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Sofalampe', 'disabled_by': None}
2021-01-08 14:21:32,030 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,031 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP13YL', 'name': 'YLBulbColor1s-49D7', 'sw_version': '2.0.31', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'serial-number', 'XXXXXXXXX'], ['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Stehlampe', 'disabled_by': None}
2021-01-08 14:21:32,031 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,031 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP13YL', 'name': 'YLBulbColor1s-4768', 'sw_version': '2.0.31', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'serial-number', 'XXXXXXXXX'], ['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Bettlampe', 'disabled_by': None}
2021-01-08 14:21:32,031 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,032 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'Yeelight Technology', 'model': 'YLDP15YL', 'name': 'YLBulbWhite1S-FC33', 'sw_version': '1.3.7', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['homekit_controller', 'serial-number', 'XXXXXXXXX'], ['homekit_controller', 'accessory-id', 'XX:XX:XX:XX:XX:XX']], 'via_device_id': None, 'area_id': None, 'name_by_user': 'Deckenlampe 3', 'disabled_by': None}
2021-01-08 14:21:32,032 ERROR  emulated_hue.api -- too many values to unpack (expected 2)
2021-01-08 14:21:32,032 INFO  emulated_hue.api -- - Device: {'config_entries': ['xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'], 'connections': [], 'manufacturer': 'WLED', 'model': 'FOSS', 'name': 'WLED', 'sw_version': '0.11.1', 'entry_type': None, 'id': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'identifiers': [['wled', 'xxxxxxxxxxxx']], 'via_device_id': None, 'area_id': None, 'name_by_user': None, 'disabled_by': None}

I modified the method async def __async_entity_to_hue and changed this:

if reg_entity and reg_entity["device_id"] is not None:
            device = self.hass.device_registry.get(reg_entity["device_id"])

            LOGGER.info(f"- Device: {device}")

            if device:
                retval["manufacturername"] = device["manufacturer"]
                retval["modelid"] = device["model"]
                retval["productname"] = device["name"]
                if device["sw_version"]:
                    retval["swversion"] = device["sw_version"]
                if device["identifiers"]:
                    # prefer real zigbee address if we have that
                    # might come in handy later when we want to
                    # send entertainment packets to the zigbee mesh
                    try:
                        for key, value in device["identifiers"]:
                            if key == "zha":
                                retval["uniqueid"] = value
                    except Exception as e:
                        LOGGER.info(e)

        return retval

This is the generated config json file

{
    "groups": {
        "1": {
            "action": {
                "on": false
            },
            "area_id": "cb5823d53e2c4d56b18760cd7738b624",
            "class": "Other",
            "enabled": true,
            "lights": [],
            "name": "",
            "sensors": [],
            "state": {
                "all_on": true,
                "any_on": false
            },
            "type": "Room"
        },
        "2": {
            "action": {
                "on": false
            },
            "area_id": "9550e636b29f45c59f2a73910be936bd",
            "class": "Other",
            "enabled": true,
            "lights": [],
            "name": "",
            "sensors": [],
            "state": {
                "all_on": true,
                "any_on": false
            },
            "type": "Room"
        },
        "3": {
            "action": {
                "on": false
            },
            "area_id": "9093decfbeeb4df1b62a262a6ace307e",
            "class": "Other",
            "enabled": true,
            "lights": [],
            "name": "",
            "sensors": [],
            "state": {
                "all_on": true,
                "any_on": false
            },
            "type": "Room"
        },
        "4": {
            "action": {
                "on": false
            },
            "area_id": "87e225ebc7844fa695035dd2188ecb8e",
            "class": "Other",
            "enabled": true,
            "lights": [],
            "name": "",
            "sensors": [],
            "state": {
                "all_on": true,
                "any_on": false
            },
            "type": "Room"
        },
        "5": {
            "action": {
                "on": false
            },
            "area_id": "f74172e71ebe4996949e3878d3097964",
            "class": "Other",
            "enabled": true,
            "lights": [],
            "name": "",
            "sensors": [],
            "state": {
                "all_on": true,
                "any_on": false
            },
            "type": "Room"
        }
    },
    "lights": {
        "1": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.bedroom_ambilight",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "10": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.bettlampe",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "11": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.deckenlampe_3",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "12": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.schreibtischlampe",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "2": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.deckenlampe",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "3": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.dekolampen",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "4": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.zimmer",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "5": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.deckenlampe_2",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "6": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.deckenlampe_1",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "7": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.unbenutzt_rgb",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "8": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.sofalampe",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        },
        "9": {
            "config": {
                "archetype": "sultanbulb",
                "direction": "omnidirectional",
                "function": "mixed"
            },
            "enabled": true,
            "entertainment_throttle": 0,
            "entity_id": "light.stehlampe",
            "name": "",
            "uniqueid": "XX:XX:XX:XX:XX:XX:XX:XX-XX"
        }
    },
    "users": {
        "c021d2daf8ec40dd9139": {
            "clientkey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "create date": "2021-53-01/08/21T14:53:56",
            "name": "Hue Essentials#SMARTPHONE",
            "username": "xxxxxxxxxxxxxxxxxxx"
        }
    }
}
alexyao2015 commented 3 years ago

Perfect! Looks like the device information is passed through as a list instead of a dictionary, so we will need to concatenate all values up to the last value in the list which we will expose.

'identifiers':[
[
'homekit_controller',
'accessory-id',
'XX:XX:XX:XX:XX:XX'
],
[
'homekit_controller',
'serial-number',
'XXXXXXXXX'
]
]
marcelveldt commented 3 years ago

I'm afraid it can be both a list or a dict...

alexyao2015 commented 3 years ago

So isinstance this then and handle it accordingly?

marcelveldt commented 3 years ago

yeah, no other option.

lagmoellertim commented 3 years ago

It seems like my actual problem (besides this error, which disappeared after commenting out the lines) doesn't actually have to do anything with this, as neither Hue Essentials nor the Ambilight TV accept the Emulated Hue Bridge (again with the error Unexpected Answer from Bridge: Expected an int but was given 22.804 at path $.lights.3.state.hue Can you help me with that?

alexyao2015 commented 3 years ago

What version? What's the response of GET /api/username/lights? You can find a username by looking at the logs.

lagmoellertim commented 3 years ago

I'm using v0.0.11 on HomeAssistant Core 2021.1.0 . This is the output:

{
   "1":{
      "state":{
         "on":false,
         "reachable":false,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "effect":"none"
      },
      "name":"Bedroom Ambilight",
      "uniqueid":"00:0f:cc:f0:98:fd:39:e3-fb",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Signify Netherlands B.V.",
      "productname":"Hue ambiance lamp",
      "modelid":"LTW010",
      "swversion":"5.127.1.26581"
   },
   "2":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255.0
      },
      "name":"Deckenlampe",
      "uniqueid":"00:8c:60:59:fb:b3:60:83-2b",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Signify Netherlands B.V.",
      "productname":"Dimmable light",
      "modelid":"LTW010",
      "swversion":"5.127.1.26581"
   },
   "3":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "ct":0,
         "effect":"none",
         "alert":"none"
      },
      "name":"Dekolampen",
      "uniqueid":"00:fd:67:8d:38:ae:ae:d0-9e",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "mindimlevel":1000,
            "maxlumen":800,
            "colorgamut":[
               [
                  0.6915,
                  0.3083
               ],
               [
                  0.17,
                  0.7
               ],
               [
                  0.1532,
                  0.0475
               ]
            ],
            "colorgamuttype":"C",
            "ct":{
               "min":153,
               "max":500
            }
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Extended color light",
      "manufacturername":"Signify Netherlands B.V.",
      "modelid":"LCT016",
      "productname":"Hue color lamp",
      "swversion":"1.50.2_r30933"
   },
   "4":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255.0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "ct":0,
         "effect":"none",
         "alert":"none"
      },
      "name":"Zimmer",
      "uniqueid":"00:63:f2:55:f9:a4:f2:8b-e2",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "mindimlevel":1000,
            "maxlumen":800,
            "colorgamut":[
               [
                  0.6915,
                  0.3083
               ],
               [
                  0.17,
                  0.7
               ],
               [
                  0.1532,
                  0.0475
               ]
            ],
            "colorgamuttype":"C",
            "ct":{
               "min":153,
               "max":500
            }
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Extended color light",
      "manufacturername":"Signify Netherlands B.V.",
      "modelid":"LCT016",
      "productname":"Hue color lamp",
      "swversion":"1.50.2_r30933"
   },
   "5":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255.0
      },
      "name":"Deckenlampe 2",
      "uniqueid":"00:4d:61:32:ea:54:48:65-1b",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulb1S(Dimmable)-FEE7",
      "modelid":"YLDP15YL",
      "swversion":"2.0.10"
   },
   "6":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255.0
      },
      "name":"Deckenlampe 1",
      "uniqueid":"00:24:fa:05:14:b8:fe:bd-28",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulb1S(Dimmable)-398A",
      "modelid":"YLDP15YL",
      "swversion":"2.0.10"
   },
   "7":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "effect":"none"
      },
      "name":"Unbenutzt RGB",
      "uniqueid":"00:b5:33:8f:c5:8e:13:7f-f4",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-672E",
      "modelid":"YLDP13YL",
      "swversion":"2.0.31"
   },
   "8":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "effect":"none"
      },
      "name":"Sofalampe",
      "uniqueid":"00:61:00:85:ee:05:45:f2-82",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-DD83",
      "modelid":"YLDP13YL",
      "swversion":"2.0.30"
   },
   "9":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "effect":"none"
      },
      "name":"Stehlampe",
      "uniqueid":"00:66:08:0f:91:68:62:03-c8",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-49D7",
      "modelid":"YLDP13YL",
      "swversion":"2.0.31"
   },
   "10":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "effect":"none"
      },
      "name":"Bettlampe",
      "uniqueid":"00:aa:53:2d:d9:3d:8c:5f-88",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-4768",
      "modelid":"YLDP13YL",
      "swversion":"2.0.31"
   },
   "11":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255.0
      },
      "name":"Deckenlampe 3",
      "uniqueid":"00:3c:de:fe:55:8f:f0:5b-78",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbWhite1S-FC33",
      "modelid":"YLDP15YL",
      "swversion":"1.3.7"
   },
   "12":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "ct":0,
         "effect":"none",
         "alert":"none"
      },
      "name":"Schreibtischlampe",
      "uniqueid":"00:25:05:cf:fa:2d:90:8b-ad",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T20:10:10"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "mindimlevel":1000,
            "maxlumen":800,
            "colorgamut":[
               [
                  0.6915,
                  0.3083
               ],
               [
                  0.17,
                  0.7
               ],
               [
                  0.1532,
                  0.0475
               ]
            ],
            "colorgamuttype":"C",
            "ct":{
               "min":153,
               "max":500
            }
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Extended color light",
      "manufacturername":"WLED",
      "modelid":"FOSS",
      "productname":"WLED",
      "swversion":"0.11.1"
   }
}
alexyao2015 commented 3 years ago

Do you know what "Dekolampen" is? Is it a physical light or a light group?

alexyao2015 commented 3 years ago

Can you also make sure to run that command immediately after seeing that error from Hue Essentials?

lagmoellertim commented 3 years ago

Dekolampen is a HA Light Group consisting of all my colored Lights (YeeLight, WLED).

This is the output directly after the error:

{
   "1":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255,
         "colormode":"xy",
         "xy":[
            0.323,
            0.329
         ],
         "hue":360,
         "sat":0,
         "effect":"none"
      },
      "name":"Bedroom Ambilight",
      "uniqueid":"00:0f:cc:f0:98:fd:39:e3-fb",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Signify Netherlands B.V.",
      "productname":"Hue ambiance lamp",
      "modelid":"LTW010",
      "swversion":"5.127.1.26581"
   },
   "2":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0
      },
      "name":"Deckenlampe",
      "uniqueid":"00:8c:60:59:fb:b3:60:83-2b",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Signify Netherlands B.V.",
      "productname":"Dimmable light",
      "modelid":"LTW010",
      "swversion":"5.127.1.26581"
   },
   "3":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":124,
         "colormode":"xy",
         "xy":[
            0.612,
            0.374
         ],
         "hue":29.971,
         "sat":100.0,
         "ct":0,
         "effect":"Solid",
         "alert":"none"
      },
      "name":"Dekolampen",
      "uniqueid":"00:fd:67:8d:38:ae:ae:d0-9e",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "mindimlevel":1000,
            "maxlumen":800,
            "colorgamut":[
               [
                  0.6915,
                  0.3083
               ],
               [
                  0.17,
                  0.7
               ],
               [
                  0.1532,
                  0.0475
               ]
            ],
            "colorgamuttype":"C",
            "ct":{
               "min":153,
               "max":500
            }
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Extended color light",
      "manufacturername":"Signify Netherlands B.V.",
      "modelid":"LCT016",
      "productname":"Hue color lamp",
      "swversion":"1.50.2_r30933"
   },
   "4":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":124,
         "colormode":"xy",
         "xy":[
            0.612,
            0.374
         ],
         "hue":29.971,
         "sat":100.0,
         "ct":0,
         "effect":"Solid",
         "alert":"none"
      },
      "name":"Zimmer",
      "uniqueid":"00:63:f2:55:f9:a4:f2:8b-e2",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "mindimlevel":1000,
            "maxlumen":800,
            "colorgamut":[
               [
                  0.6915,
                  0.3083
               ],
               [
                  0.17,
                  0.7
               ],
               [
                  0.1532,
                  0.0475
               ]
            ],
            "colorgamuttype":"C",
            "ct":{
               "min":153,
               "max":500
            }
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Extended color light",
      "manufacturername":"Signify Netherlands B.V.",
      "modelid":"LCT016",
      "productname":"Hue color lamp",
      "swversion":"1.50.2_r30933"
   },
   "5":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0
      },
      "name":"Deckenlampe 2",
      "uniqueid":"00:4d:61:32:ea:54:48:65-1b",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulb1S(Dimmable)-FEE7",
      "modelid":"YLDP15YL",
      "swversion":"2.0.10"
   },
   "6":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0
      },
      "name":"Deckenlampe 1",
      "uniqueid":"00:24:fa:05:14:b8:fe:bd-28",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulb1S(Dimmable)-398A",
      "modelid":"YLDP15YL",
      "swversion":"2.0.10"
   },
   "7":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0,
         "colormode":"xy",
         "xy":[
            0,
            0
         ],
         "hue":0,
         "sat":0,
         "effect":"none"
      },
      "name":"Unbenutzt RGB",
      "uniqueid":"00:b5:33:8f:c5:8e:13:7f-f4",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-672E",
      "modelid":"YLDP13YL",
      "swversion":"2.0.31"
   },
   "8":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":102.0,
         "colormode":"xy",
         "xy":[
            0.612,
            0.374
         ],
         "hue":30.0,
         "sat":100.0,
         "effect":"none"
      },
      "name":"Sofalampe",
      "uniqueid":"00:61:00:85:ee:05:45:f2-82",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-DD83",
      "modelid":"YLDP13YL",
      "swversion":"2.0.30"
   },
   "9":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":255.0,
         "colormode":"xy",
         "xy":[
            0.612,
            0.374
         ],
         "hue":30.0,
         "sat":100.0,
         "effect":"none"
      },
      "name":"Stehlampe",
      "uniqueid":"00:66:08:0f:91:68:62:03-c8",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-49D7",
      "modelid":"YLDP13YL",
      "swversion":"2.0.31"
   },
   "10":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":71.4,
         "colormode":"xy",
         "xy":[
            0.612,
            0.374
         ],
         "hue":30.0,
         "sat":100.0,
         "effect":"none"
      },
      "name":"Bettlampe",
      "uniqueid":"00:aa:53:2d:d9:3d:8c:5f-88",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "colorgamuttype":"B",
            "colorgamut":[
               [
                  0.675,
                  0.322
               ],
               [
                  0.409,
                  0.518
               ],
               [
                  0.167,
                  0.04
               ]
            ],
            "ct":{

            },
            "maxlumen":800,
            "mindimlevel":1000
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Color light",
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbColor1s-4768",
      "modelid":"YLDP13YL",
      "swversion":"2.0.31"
   },
   "11":{
      "state":{
         "on":false,
         "reachable":true,
         "mode":"homeautomation",
         "bri":0
      },
      "name":"Deckenlampe 3",
      "uniqueid":"00:3c:de:fe:55:8f:f0:5b-78",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "type":"Dimmable light",
      "capabilities":{
         "certified":true,
         "control":{
            "maxlumen":840,
            "mindimlevel":5000
         },
         "streaming":{
            "proxy":false,
            "renderer":false
         }
      },
      "manufacturername":"Yeelight Technology",
      "productname":"YLBulbWhite1S-FC33",
      "modelid":"YLDP15YL",
      "swversion":"1.3.7"
   },
   "12":{
      "state":{
         "on":true,
         "reachable":true,
         "mode":"homeautomation",
         "bri":69,
         "colormode":"xy",
         "xy":[
            0.614,
            0.373
         ],
         "hue":29.882,
         "sat":100.0,
         "ct":0,
         "effect":"Solid",
         "alert":"none"
      },
      "name":"Schreibtischlampe",
      "uniqueid":"00:25:05:cf:fa:2d:90:8b-ad",
      "swupdate":{
         "state":"noupdates",
         "lastinstall":"2021-01-09T21:31:43"
      },
      "capabilities":{
         "certified":true,
         "control":{
            "mindimlevel":1000,
            "maxlumen":800,
            "colorgamut":[
               [
                  0.6915,
                  0.3083
               ],
               [
                  0.17,
                  0.7
               ],
               [
                  0.1532,
                  0.0475
               ]
            ],
            "colorgamuttype":"C",
            "ct":{
               "min":153,
               "max":500
            }
         },
         "streaming":{
            "proxy":true,
            "renderer":true
         }
      },
      "type":"Extended color light",
      "manufacturername":"WLED",
      "modelid":"FOSS",
      "productname":"WLED",
      "swversion":"0.11.1"
   }
}
alexyao2015 commented 3 years ago

Well this is perplexing considering that you are running 0.0.11... Hue and Sat shouldn't even be part of the config for that version as that was a recently implemented feature. Those values should also be an integer from HA...

Would you be able to try the dev version to see if you still experience these issues? We may release a new version soon since it seems that it is relatively stable atm.

lagmoellertim commented 3 years ago

Which branch do you mean so that I can try dev? I can't use the dev from your repo since I need to change to code because of my yeelights

alexyao2015 commented 3 years ago

What's wrong with the code that's causing you to have to change it due to yeelights?

lagmoellertim commented 3 years ago

This error is still there in the dev version, so I think I need to patch that out right?

File "/app/emulated_hue/api.py", line 772, in __async_entity_to_hue
    for key, value in device["identifiers"]:
ValueError: too many values to unpack (expected 2)
alexyao2015 commented 3 years ago

Oh right. Forgot about that issue. Just pushed a fix to fix/api-inconsistencies so try that branch.

lagmoellertim commented 3 years ago

Tried it with that branch, the issue with the ValueError is fixed, but the other issue with Unexpected Answer from Bridge: Expected an int but was given 22.804 at path $.lights.3.state.hue sadly still persists

alexyao2015 commented 3 years ago

Interesting... Thats an easy fix, but I'm trying to determine why thats happening in the first place.

lagmoellertim commented 3 years ago

I looked a bit into the code, when I wrap everything into an int that goes out to the hue json api, it works. But this does not seem to be the best solution

alexyao2015 commented 3 years ago

Yeah ideally, I would like to avoid that. That certainly would work though...

alexyao2015 commented 3 years ago

Can you post the attributes shown in HASS from developer tools for "Dekolampen "?

lagmoellertim commented 3 years ago

Sure, that's

min_mireds: 153
max_mireds: 500
effect_list: Random Colors, Solid, Chase Rainbow, Scanner Dual, Fire Flicker, ICU, Chase, Candle Multi, Chunchun, Fill Noise, Rainbow, Flow, Meteor Smooth, Bpm, Breathe, Spots, Railway, Sinelon Rainbow, Colorful, Sparkle Dark, Twinkle, Blink Rainbow, Merry Christmas, Blends, Lightning, Running, Dynamic, Candle, Pride 2015, Sinelon Dual, Percent, Two Dots, Washing Machine, Scan, Solid Glitter, Sweep, Noise 4, Noise 2, Scan Dual, Popcorn, Police, Halloween, Colortwinkles, Scanner, Theater Rainbow, Twinkleup, Heartbeat, Fire 2012, Stream, Colorwaves, Bouncing Balls, Phased Noise, Dissolve, Rain, Colorloop, Traffic Light, Noise 1, Circus, Pacifica, Wipe Random, Dancing Shadows, Tri Chase, Tri Wipe, Theater, Phased, Sinelon, Noise 3, Police All, Sunrise, Android, Sparkle+, Blink, Ripple, Ripple Rainbow, Dissolve Rnd, Glitter, Strobe, Lake, Red & Blue, Strobe Rainbow, Two Areas, Meteor, Chase Flash Rnd, Twinklecat, Juggle, Strobe Mega, Sparkle, Multi Comet, Saw, Sine, Solid Pattern Tri, Wipe, Solid Pattern, Halloween Eyes, Candy Cane, Oscillate, Twinklefox, Fireworks Starburst, Running 2, Fireworks 1D, Gradient, Stream 2, Spots Fade, Plasma, Chase Flash, Fireworks, Drip, Rainbow Runner, Lighthouse, Fade, Loading, Noise Pal, Palette, Tri Fade, Chase Random, Sweep Random
brightness: 120
hs_color: 23.861, 93.083
rgb_color: 255, 112, 17
xy_color: 0.628, 0.357
white_value: 93
effect: Solid
entity_id: light.sofalampe, light.bettlampe, light.schreibtischlampe, light.stehlampe
friendly_name: Dekolampen
icon: mdi:lightbulb-group
supported_features: 183

By the way, with the modifications I mentioned before, connection now works without problems and the bridge gets recognized by Hue Essentials and I can control the lights in normal mode without problems. However when changing to entertainment mode, the lights don't react at all (the light color, brightness, ...) stays the same. No errors in the log, this is the only output:

2021-01-10 04:47:32,209 INFO  emulated_hue.entertainment -- Start HUE Entertainment Service on UDP port 2100.
2021-01-10 04:47:56,405 INFO  emulated_hue.api -- Stop Entertainment mode for group 8 - params: {'stream': {'active': False}}
2021-01-10 04:47:56,408 INFO  emulated_hue.entertainment -- HUE Entertainment Service stopped.
alexyao2015 commented 3 years ago

I'm inclined to believe that this is a bug with Home Assistant since I believe that hs_color should always be reported as an int. Although given that it seems like the only way to deal with this bug would be to wrap everything with int...

Try entertainment mode with the official hue app?

lagmoellertim commented 3 years ago

Same result, nothing changes. Tested with official hue app as well as with the Ambilight TV Hue Connect Feature

alexyao2015 commented 3 years ago

Pushed out another fix for the float issue.

alexyao2015 commented 3 years ago

Just released a new version that should have patched all the issues mentioned here. Please open a new issue if there are more problems.