{"action":"created","issue":{"url":"https://api.github.com/repos/Yoda-x/ha-zha-new/issues/26","repository_url":"https://api.github.com/repos/Yoda-x/ha-zha-new","labels_url":"https://api.github.com/repos/Yoda-x/ha-zha-new/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/Yoda-x/ha-zha-new/issues/26/comments","events_url":"https://api.github.com/repos/Yoda-x/ha-zha-new/issues/26/events","html_url":"https://github.com/Yoda-x/ha-zha-new/issues/26","id":316442967,"number":26,"title":"Osram Lightify dimming switch is not working","user":{"login":"Adminiuga","id":5826160,"avatar_url":"https://avatars1.githubusercontent.com/u/5826160?v=4","gravatar_id":"","url":"https://api.github.com/users/Adminiuga","html_url":"https://github.com/Adminiuga","followers_url":"https://api.github.com/users/Adminiuga/followers","following_url":"https://api.github.com/users/Adminiuga/following{/other_user}","gists_url":"https://api.github.com/users/Adminiuga/gists{/gist_id}","starred_url":"https://api.github.com/users/Adminiuga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adminiuga/subscriptions","organizations_url":"https://api.github.com/users/Adminiuga/orgs","repos_url":"https://api.github.com/users/Adminiuga/repos","events_url":"https://api.github.com/users/Adminiuga/events{/privacy}","received_events_url":"https://api.github.com/users/Adminiuga/received_events","type":"User","site_admin":false},"labels":[{"id":776803139,"url":"https://api.github.com/repos/Yoda-x/ha-zha-new/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-21T00:01:51Z","updated_at":"2018-04-23T08:48:23Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm trying to get an [Osram lightify dimming switch](https://www.amazon.com/SYLVANIA-LIGHTIFY-Wireless-SmartThings-Assistant/dp/B0196M620Y?th=1) working with zha_new, but currently I have no luck with it.\r\nGetting the following errors in the log file:\r\n```\r\n2018-04-20 19:51:33 ERROR (MainThread) [homeassistant.helpers.entity] Update for\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 160, in __get\r\n    return self._cluster_attr[name]\r\nKeyError: 'on_off'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 204, in async_\r\n    yield from self.async_device_update()\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 325, in async_\r\n    yield from self.async_update()\r\n  File \"/home/lex/.ha-dev/custom_components/switch/zha_new.py\", line 79, in asyn\r\n    v = yield from self._endpoint.on_off.read_attributes(\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 162, in __get\r\n    raise AttributeError\r\nAttributeError\r\n2018-04-20 19:51:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event s\r\nha_new.py, exception=Traceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 160, in __get\r\n    return self._cluster_attr[name]\r\nKeyError: 'on_off'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 204, in async_\r\n    yield from self.async_device_update()\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 325, in async_\r\n    yield from self.async_update()\r\n  File \"/home/lex/.ha-dev/custom_components/switch/zha_new.py\", line 79, in asyn\r\n    v = yield from self._endpoint.on_off.read_attributes(\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 162, in __get\r\n    raise AttributeError\r\nAttributeError\r\n, timestamp=1524268293.4580781, level=ERROR, message=Update for switch.osram_lig\r\n    v = yield from self._endpoint.on_off.read_attributes(\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 162, in __getattr__\r\n    raise AttributeError\r\nAttributeError\r\n2018-04-20 19:51:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: source=custom_components/s\r\nha_new.py, exception=Traceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 160, in __getattr__\r\n    return self._cluster_attr[name]\r\nKeyError: 'on_off'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 204, in async_update_ha_state\r\n    yield from self.async_device_update()\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 325, in async_device_update\r\n    yield from self.async_update()\r\n  File \"/home/lex/.ha-dev/custom_components/switch/zha_new.py\", line 79, in async_update\r\n    v = yield from self._endpoint.on_off.read_attributes(\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 162, in __getattr__\r\n    raise AttributeError\r\nAttributeError\r\n, timestamp=1524268293.4580781, level=ERROR, message=Update for switch.osram_lightify_dimming_switch_00e911f1_1 fails>\r\n2018-04-20 19:52:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state sensor.time_\r\n9:52, 2018-04-20; icon=mdi:calendar-clock, friendly_name=Time & Date @ 2018-04-20T19:52:00.457512-04:00>, old_state=<state sen\r\ne__date=19:51, 2018-04-20; icon=mdi:calendar-clock, friendly_name=Time & Date @ 2018-04-20T19:51:01.456639-04:00>, entity_id=s\r\nime__date>\r\n2018-04-20 19:52:04 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.osram_lightify_dimming_switch_00e911f1\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 160, in __getattr__\r\n    return self._cluster_attr[name]\r\nKeyError: 'on_off'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 204, in async_update_ha_state\r\n    yield from self.async_device_update()\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 325, in async_device_update\r\n    yield from self.async_update()\r\n  File \"/home/lex/.ha-dev/custom_components/switch/zha_new.py\", line 79, in async_update\r\n    v = yield from self._endpoint.on_off.read_attributes(\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 162, in __getattr__\r\n    raise AttributeError\r\nAttributeError\r\n2018-04-20 19:52:04 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: source=custom_components/s\r\nha_new.py, exception=Traceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 160, in __getattr__\r\n    return self._cluster_attr[name]\r\nKeyError: 'on_off'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 204, in async_update_ha_state\r\n    yield from self.async_device_update()\r\n  File \"/home/lex/rcl-hass/homeassistant/helpers/entity.py\", line 325, in async_device_update\r\n    yield from self.async_update()\r\n  File \"/home/lex/.ha-dev/custom_components/switch/zha_new.py\", line 79, in async_update\r\n    v = yield from self._endpoint.on_off.read_attributes(\r\n  File \"/home/lex/rcl-hass/venv/src/zigpy/zigpy/endpoint.py\", line 162, in __getattr__\r\n    raise AttributeError\r\nAttributeError\r\n, timestamp=1524268324.4576075, level=ERROR, message=Update for switch.osram_lightify_dimming_switch_00e911f1_1 fails>\r\n```\r\n\r\nAnd here's output for `bellows devices`\r\n```\r\nDevice:\r\n  NWK: 0xf723\r\n  IEEE: 84:18:26:00:00:e9:11:f1\r\n  Endpoints:\r\n    1: profile=0x104, device_type=DeviceType.LEVEL_CONTROL_SWITCH\r\n      Input Clusters:\r\n        Basic (0)\r\n        Power Configuration (1)\r\n        Identify (3)\r\n        Poll Control (32)\r\n        Temperature Measurement (1026)\r\n        IAS Zone (1280)\r\n        Diagnostic (2821)\r\n      Output Clusters:\r\n        Identify (3)\r\n        On/Off (6)\r\n        Level control (8)\r\n        Ota (25)\r\n```\r\n\r\nI have added the following to zha_new config section and switch appeared in HA, but can't get state or level\r\n```usb_path: /dev/ttyUSB1\r\ndatabase_path: /home/lex/.ha-dev/zigbee.db\r\ndevice_config:\r\n  \"84:18:26:00:00:e9:11:f1-1\":\r\n    type: switch\r\n```\r\nI'm noticing that it misses On/Off input cluster, which makes sense since this is just a switch so it has it in the output clusters. I know to get this working with zha, i had to get this [Pull Request #12528](https://github.com/home-assistant/home-assistant/pull/12528)\r\n"},"comment":{"url":"https://api.github.com/repos/Yoda-x/ha-zha-new/issues/comments/383501351","html_url":"https://github.com/Yoda-x/ha-zha-new/issues/26#issuecomment-383501351","issue_url":"https://api.github.com/repos/Yoda-x/ha-zha-new/issues/26","id":383501351,"user":{"login":"Yoda-x","id":34125458,"avatar_url":"https://avatars3.githubusercontent.com/u/34125458?v=4","gravatar_id":"","url":"https://api.github.com/users/Yoda-x","html_url":"https://github.com/Yoda-x","followers_url":"https://api.github.com/users/Yoda-x/followers","following_url":"https://api.github.com/users/Yoda-x/following{/other_user}","gists_url":"https://api.github.com/users/Yoda-x/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoda-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoda-x/subscriptions","organizations_url":"https://api.github.com/users/Yoda-x/orgs","repos_url":"https://api.github.com/users/Yoda-x/repos","events_url":"https://api.github.com/users/Yoda-x/events{/privacy}","received_events_url":"https://api.github.com/users/Yoda-x/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T08:48:23Z","updated_at":"2018-04-23T08:48:23Z","author_association":"OWNER","body":"BTW, how you expect the switch to work? \r\n\r\n1.  sending events upstream to HA, where you can script actions? \r\n\r\n2. - having a virtual switch device, with on/off state, brightness/color-temp level, Where you can copy the \r\nvirtual switch on/off state, brightness level to a group of bulbs/devices? Triggering actions on device_update events. \r\n\r\n3. 1+2 , makes the most sense for me, as it provide all options\r\n\r\nThanks\r\nArno\r\n"}}
{"actor":{"display_login":"Yoda-x"}}