Yoda-x / ha-zha-new

update of the zha component
56 stars 10 forks source link

Aqara smart button WXKG11LM detected as lumi_remote_b1acn01 #56

Closed estevez-dev closed 5 years ago

estevez-dev commented 5 years ago

It seams this device is not supported at all. Am I right? The model is: WXKG11LM It is joined, initialized but no entity created.

KLUSEK commented 5 years ago

https://github.com/Yoda-x/ha-zha-new/issues/45

estevez-dev commented 5 years ago

Thanks, but I can't even pair it =(

estevez-dev commented 5 years ago

I'm simply don't know where to start. Which logs I need to enable for ex?

KLUSEK commented 5 years ago

You need to use preview branch of zha_new. Then pair the device.

estevez-dev commented 5 years ago

@KLUSEK Ok. Is it possible to save my Aqara devices already connected to HA? Last time I updated zha_new all my devices was lost their entities.

KLUSEK commented 5 years ago

I don't know that, I'm not the Author :)

estevez-dev commented 5 years ago

@KLUSEK I know, I just wanted to know was your aqara devices disappeared after updating zha_new.

Ok, I'm on preview branch now and I have paired it. But it is detected as binary_sensor.lumi_lumiremoteb1acn01_01ef39e8_1 and state is always off

KLUSEK commented 5 years ago

Now just use automation

Check mine below:

- alias: 'Aqara bedroom button'
  hide_entity: True
  initial_state: True
  trigger:
    platform: event
    event_type: click
    event_data:
      entity_id: binary_sensor.lumi_lumisensor_switchaq2_01e7a174_1_on_off
      channel: OnOff
      data: 1
  action:
    - service: switch.toggle
      data:
        entity_id: 'switch.bedroom_spotlights'

You can define single click (data: 1), double (data: 2) and so on

estevez-dev commented 5 years ago

Ah, it is an event! Now I understood how it should work, but it still doesn't =( My automation:

  alias: Badtime button single click
  trigger:
  - event_data:
      channel: OnOff
      data: 1
      entity_id: binary_sensor.lumi_lumiremoteb1acn01_01ef39e8_1
    event_type: click
    platform: event
  condition: []
  action:
  - data:
      entity_id: light.living_room
    service: light.toggle

No errors in log. Log is enabled for:

    custom_components.zha_new: debug
    custom_components.device.lumi_sensor_magnet_aq2: debug
    custom_components.binary_sensor.zha_new: debug
    custom_components.device.lumi_sensor_switch_aq2: debug
estevez-dev commented 5 years ago

Reading logs helps ) Looks like it is really not supported

2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] [0x8899] device init for 00:15:8d:00:01:ef:85:94 -> Endpoints: [0, 1]
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] [0x8899:0] endpoint init
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] [0x8899:1] endpoint init
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] [0x8899:1] node config for 00:15:8d:00:01:ef:85:94-1: {}
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.remote.b1acn01 failed: ("No module named 'custom_components.device.lumi_remote_b1acn01'",)
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] [0x8899:1] pre call _custom_endpoint_init: {}
2018-10-20 00:41:17 DEBUG (MainThread) [custom_components.zha_new] [0x8899:1] no call _custom_endpoint_init: lumi.remote.b1acn01

@Yoda-x , I'm really need your help here )

KLUSEK commented 5 years ago

It is supported, is I have the same device, but I'm not an expert :)

What I don't like in your config is that mine is lumi_lumisensor_switchaq2 and your is lumi_lumiremote

Please reffer the topic I posted, where @Yoda-x helped me to support this device.

estevez-dev commented 5 years ago

I've tried. Nothing helps =(

estevez-dev commented 5 years ago

I've created lumi_remote_b1acn01.py file with content from lumi_sensor_switch_aq2.py. The module loads now but still no click events. I've used a click listener from #45

estevez-dev commented 5 years ago

Here is a log of devices initialization right after Home Assistant start: https://drive.google.com/file/d/1UGfS2GQwujRQGxxDY97Yb9DL8eO1U4YK/view?usp=sharing

Yoda-x commented 5 years ago

Hi

Do you have a log when you press buttons?

estevez-dev commented 5 years ago

Hi @Yoda-x , there is no any messages in log when I press a button. Here is my logger config:

logger:
  default: warning
  logs:
    homeassistant.components.mqtt: debug
    custom_components.zha_new: debug
    custom_components.device.lumi_sensor_magnet_aq2: debug
    custom_components.binary_sensor.zha_new: debug
    custom_components.device.lumi_sensor_switch_aq2: debug
    custom_components.device.lumi_remote_b1acn01: debug
estevez-dev commented 5 years ago

@Yoda-x I think the main problem is that this switch is detected as lumi_remote_b1acn01 and not as lumi_sensor_switch_aq2

Yoda-x commented 5 years ago

I don't think so. I assume the switch is somehow different than the aq2. You already created the DH file from the aq2, there must something else. can you add

zigpy: debug

to logs and press the buttons. It's the chicken/egg problem. the custom_components DH files will only be used if they subscribe themself to the right events. If the device looks the same as the switch_aq2, this not means it most be the same. Xiaomi is creative in being non-standard.

EDIT: looking in some other repos for other zigbee gateways it seems to use a different cluster. I go steal some ideas and create an update in the next 1-2 days. Stay tuned :smiley:

Yoda-x commented 5 years ago

please update the preview branch of zha_new. It has a file for this switch and some updates in the code to support the multistateinput reports from the device. If you don't see any events please provide the debug for zigpy

estevez-dev commented 5 years ago

Got it. No click events captured by automation, but here is 2 separate clicks log from zigpy:

2018-10-22 21:36:45 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] ZCL request 0x000a: [[<Attribute attrid=85 value=<zigpy.zcl.foundation.TypeValue object at 0x6d33f930>>]]
2018-10-22 21:36:45 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] Attribute report received: 85=1

2018-10-22 21:37:57 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] ZCL request 0x000a: [[<Attribute attrid=85 value=<zigpy.zcl.foundation.TypeValue object at 0x6e627330>>]]
2018-10-22 21:37:57 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] Attribute report received: 85=1

And here is double click:

2018-10-22 21:40:23 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] ZCL request 0x000a: [[<Attribute attrid=85 value=<zigpy.zcl.foundation.TypeValue object at 0x6ecc30d0>>]]
2018-10-22 21:40:23 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] Attribute report received: 85=2
Yoda-x commented 5 years ago

ok, good thing here, is that the attribute reports are ok. Can you provide the related log messages for custom_components. Not sure why the events not getting generated.

estevez-dev commented 5 years ago

I can't ) Because after zigpy message about click there is nothing from custom_component. I see log messages from all other sensors like lumi_sensor_magnet and even battery voltage for this button, but nothing after click:

2018-10-23 00:11:52 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0000] ZCL request 0x000a: [[<Attribute attrid=65281 value=<zigpy.zcl.foundation.TypeValue object at 0x6d3fd390>>]]
2018-10-23 00:11:52 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0000] Attribute report received: 65281=b'\x01!!\x0c\x03(\x17\x04!\xa8\x13\x05!u\x00\x06$\x1a\x00\x01\x00\x00\n!\x00\x00'
2018-10-23 00:11:52 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] Attribute report received on cluster [0x0000:65281:]=b'\x01!!\x0c\x03(\x17\x04!\xa8\x13\x05!u\x00\x06$\x1a\x00\x01\x00\x00\n!\x00\x00'
2018-10-23 00:11:52 DEBUG (MainThread) [custom_components.device.lumi_sensor_86sw2] parse 65281 b'\x01!!\x0c\x03(\x17\x04!\xa8\x13\x05!u\x00\x06$\x1a\x00\x01\x00\x00\n!\x00\x00' ('lumi.remote.b1acn01',) {'cluster_id': 0}
2018-10-23 00:11:52 DEBUG (MainThread) [custom_components.device.lumi_sensor_86sw2] updated Attributes:{'battery_voltage_mV': 3105, '0xff01-3': 23, 'X-attrib-4': 5032, 'X-attrib-5': 117, 'X-attrib-6': 65562, 'path': 0, 'battery_level': 101}
2018-10-23 00:13:06 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0402] ZCL request 0x000a: [[<Attribute attrid=0 value=<zigpy.zcl.foundation.TypeValue object at 0x70eab110>>]]
2018-10-23 00:13:06 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0402] Attribute report received: 0=2001
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 0 2001 ('lumi.weather',) {}
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 2001
2018-10-23 00:13:06 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0405] ZCL request 0x000a: [[<Attribute attrid=0 value=<zigpy.zcl.foundation.TypeValue object at 0x70eab110>>]]
2018-10-23 00:13:06 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0405] Attribute report received: 0=5945
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 0 5945 ('lumi.weather',) {}
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 5945
2018-10-23 00:13:06 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0403] ZCL request 0x000a: [[<Attribute attrid=0 value=<zigpy.zcl.foundation.TypeValue object at 0x6f0c5050>>, <Attribute attrid=20 value=<zigpy.zcl.foundation.TypeValue object at 0x705f47f0>>, <Attribute attrid=16 value=<zigpy.zcl.foundation.TypeValue object at 0x705f4110>>]]
2018-10-23 00:13:06 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0403] Attribute report received: 0=1002, 20=-1, 16=10026
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 0 1002 ('lumi.weather',) {}
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 1002
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 20 -1 ('lumi.weather',) {}
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: -1
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 16 10026 ('lumi.weather',) {}
2018-10-23 00:13:06 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 10026
2018-10-23 00:18:12 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] ZCL request 0x000a: [[<Attribute attrid=85 value=<zigpy.zcl.foundation.TypeValue object at 0x712288f0>>]]
2018-10-23 00:18:12 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] Attribute report received: 85=1
Yoda-x commented 5 years ago

Ok, seems something went wrong during device init. do you have the logs from the hass restart after you updated the preview branch?

estevez-dev commented 5 years ago

I don't have logs right after update, but I can reboot HA and show the logs from start, where devices is initialized. Or is it better to remove device completely, pair it one more time and show you the logs of pairing?

Yoda-x commented 5 years ago

any restart of hass after the update should do. I just need to find out why the click event from cluster 12 not makes it to the custom component.

estevez-dev commented 5 years ago

Here it is. I've added an empty line where my device init starts:

2018-10-23 19:56:29 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2018-10-23 19:56:58 WARNING (MainThread) [homeassistant.loader] You are using a custom component for zha_new which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-10-23 19:56:58 WARNING (MainThread) [homeassistant.loader] You are using a custom component for climate.generic_thermostat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-10-23 19:57:01 WARNING (MainThread) [hbmqtt.mqtt.protocol.handler] BrokerProtocolHandler Unhandled exception in reader coro: IncompleteReadError('0 bytes read on a total of 1 expected bytes',)
2018-10-23 19:57:01 WARNING (MainThread) [hbmqtt.mqtt.protocol.handler] BrokerProtocolHandler Unhandled exception in reader coro: IncompleteReadError('0 bytes read on a total of 1 expected bytes',)
2018-10-23 19:57:01 WARNING (MainThread) [hbmqtt.mqtt.protocol.handler] BrokerProtocolHandler Unhandled exception in reader coro: IncompleteReadError('0 bytes read on a total of 1 expected bytes',)
2018-10-23 19:57:01 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.shutdown callback)
OSError: [Errno 107] Socket not connected
2018-10-23 19:57:01 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.shutdown callback)
OSError: [Errno 107] Socket not connected
2018-10-23 19:57:01 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.shutdown callback)
OSError: [Errno 107] Socket not connected
2018-10-23 19:57:09 WARNING (MainThread) [homeassistant.setup] Setup of group is taking over 10 seconds.
2018-10-23 19:57:09 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2018-10-23 19:57:09 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2018-10-23 19:57:09 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2018-10-23 19:57:09 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2018-10-23 19:57:13 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2018-10-23 19:57:13 WARNING (MainThread) [homeassistant.components.climate] Setup of platform demo is taking over 10 seconds.
2018-10-23 19:57:13 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform command_line is taking over 10 seconds.
2018-10-23 19:57:13 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform time_date is taking over 10 seconds.
2018-10-23 19:57:13 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2018-10-23 19:58:06 DEBUG (MainThread) [zigpy.appdb] Loading application state from zigbee.db
2018-10-23 19:58:07 ERROR (MainThread) [homeassistant.components.upnp] Unable to create upnp-device
2018-10-23 19:58:09 WARNING (MainThread) [bellows.uart] Reset success
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6] device init for 00:15:8d:00:02:39:46:c5 -> Endpoints: [0, 1]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:0] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] node config for 00:15:8d:00:02:39:46:c5-1: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.sensor_magnet.aq2 success
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] custom_info for lumi.sensor_magnet.aq2: {'module': <module 'custom_components.device.lumi_sensor_magnet_aq2' from '/config/custom_components/device/lumi_sensor_magnet_aq2.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_sensor_magnet_aq2' from '/config/custom_components/device/lumi_sensor_magnet_aq2.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] call _custom_endpoint_init: lumi.sensor_magnet.aq2
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.sensor_magnet.aq2
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] node config for 00:15:8d:00:02:39:46:c5-1: {'in_cluster': [0, 6], 'type': 'binary_sensor'}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] config reports skipped, already joined 00:15:8d:00:02:39:46:c5
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] 2:profile 260, component: binary_sensor cluster:[{0, 6}, {768, 1280, 4, 5, 6, 8}]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6:1] Return from component general entity:00:15:8d:00:02:39:46:c5
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0xcbd6] Exit device init 00:15:8d:00:02:39:46:c5
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a] device init for 00:15:8d:00:01:bf:94:d9 -> Endpoints: [0, 1]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:0] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] node config for 00:15:8d:00:01:bf:94:d9-1: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.sensor_magnet success
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] custom_info for lumi.sensor_magnet: {'module': <module 'custom_components.device.lumi_sensor_magnet' from '/config/custom_components/device/lumi_sensor_magnet.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_sensor_magnet' from '/config/custom_components/device/lumi_sensor_magnet.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] call _custom_endpoint_init: lumi.sensor_magnet
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.sensor_magnet
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] node config for 00:15:8d:00:01:bf:94:d9-1: {'in_cluster': [0, 6], 'type': 'binary_sensor'}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] config reports skipped, already joined 00:15:8d:00:01:bf:94:d9
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] 2:profile 260, component: binary_sensor cluster:[{0, 6}, {768, 1280, 4, 5, 6, 8}]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a:1] Return from component general entity:00:15:8d:00:01:bf:94:d9
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x569a] Exit device init 00:15:8d:00:01:bf:94:d9
2018-10-23 19:58:10 WARNING (MainThread) [homeassistant.loader] You are using a custom component for binary_sensor.zha_new which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0xcbd6:1] initialize cluster listeners: [4, 0, 6] 
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0xcbd6:1] exit make binary-sensor 
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] set Entity object: <class 'custom_components.binary_sensor.zha_new.OnOffSensor'>-00:15:8d:00:02:39:46:c5_1_on_off 
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] Return binary_sensor init-cluster {0: <zigpy.zcl.clusters.general.Basic object at 0x70554470>, 3: <zigpy.zcl.clusters.general.Identify object at 0x705546b0>, 65535: <zigpy.zcl.clusters.manufacturer_specific.ManufacturerSpecificCluster object at 0x70554730>, 6: <zigpy.zcl.clusters.general.OnOff object at 0x70554770>, 1280: <zigpy.zcl.clusters.security.IasZone object at 0x705547b0>}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1] device init for 00:15:8d:00:02:22:81:9a -> Endpoints: [0, 1, 2, 3]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:0] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] node config for 00:15:8d:00:02:22:81:9a-1: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.sensor_ht success
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] custom_info for lumi.sensor_ht: {'module': <module 'custom_components.device.lumi_sensor_ht' from '/config/custom_components/device/lumi_sensor_ht.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_sensor_ht' from '/config/custom_components/device/lumi_sensor_ht.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] call _custom_endpoint_init: lumi.sensor_ht
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.sensor_ht
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] node config for 00:15:8d:00:02:22:81:9a-1: {'config_report': [[1026, 0, 10, 600, 5], [1029, 0, 10, 600, 5]], 'in_cluster': [0, 1026], 'out_cluster': [], 'type': 'sensor'}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] config reports skipped, already joined 00:15:8d:00:02:22:81:9a
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] 2:profile 260, component: sensor cluster:[{0, 1026}, set()]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] Return from component general entity:00:15:8d:00:02:22:81:9a
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:1] Call single-cluster entity: 1029
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] node config for 00:15:8d:00:02:22:81:9a-2: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_sensor_ht' from '/config/custom_components/device/lumi_sensor_ht.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] call _custom_endpoint_init: lumi.sensor_ht
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.sensor_ht
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] node config for 00:15:8d:00:02:22:81:9a-2: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] config reports skipped, already joined 00:15:8d:00:02:22:81:9a
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:2] 2:profile 260, component: None cluster:[set(), set()]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] endpoint init
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] node config for 00:15:8d:00:02:22:81:9a-3: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_sensor_ht' from '/config/custom_components/device/lumi_sensor_ht.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] call _custom_endpoint_init: lumi.sensor_ht
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.sensor_ht
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] node config for 00:15:8d:00:02:22:81:9a-3: {}
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] config reports skipped, already joined 00:15:8d:00:02:22:81:9a
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1:3] 2:profile 260, component: None cluster:[set(), set()]
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.zha_new] [0x29c1] Exit device init 00:15:8d:00:02:22:81:9a
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0x569a:1] initialize cluster listeners: [4, 5, 6, 8, 0] 
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0x569a:1] exit make binary-sensor 
2018-10-23 19:58:10 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] set Entity object: <class 'custom_components.binary_sensor.zha_new.OnOffSensor'>-00:15:8d:00:01:bf:94:d9_1_on_off 
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] Return binary_sensor init-cluster {0: <zigpy.zcl.clusters.general.Basic object at 0x705547f0>, 3: <zigpy.zcl.clusters.general.Identify object at 0x705545b0>, 65535: <zigpy.zcl.clusters.manufacturer_specific.ManufacturerSpecificCluster object at 0x70554850>, 25: <zigpy.zcl.clusters.general.Ota object at 0x705547d0>, 1280: <zigpy.zcl.clusters.security.IasZone object at 0x705548b0>}
2018-10-23 19:58:11 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.zha_new which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2] device init for 00:15:8d:00:01:ff:60:ff -> Endpoints: [0, 1]
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:0] endpoint init
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] endpoint init
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] node config for 00:15:8d:00:01:ff:60:ff-1: {}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.sensor_motion.aq2 success
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] custom_info for lumi.sensor_motion.aq2: {'module': <module 'custom_components.device.lumi_sensor_motion_aq2' from '/config/custom_components/device/lumi_sensor_motion_aq2.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_sensor_motion_aq2' from '/config/custom_components/device/lumi_sensor_motion_aq2.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] call _custom_endpoint_init: lumi.sensor_motion.aq2
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.sensor_motion.aq2
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] node config for 00:15:8d:00:01:ff:60:ff-1: {'config_report': [[1030, 0, 10, 1800, 1], [1024, 0, 10, 1800, 10]], 'in_cluster': [0, 1030, 65535], 'out_cluster': []}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] config reports skipped, already joined 00:15:8d:00:01:ff:60:ff
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] 2:profile 260, component: binary_sensor cluster:[{0, 1030, 65535}, set()]
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] Return from component general entity:00:15:8d:00:01:ff:60:ff
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2:1] Call single-cluster entity: 1024
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x22e2] Exit device init 00:15:8d:00:01:ff:60:ff
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:22:81:9a
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumisensor_ht_0222819a_1_temperature
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:22:81:9a
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumisensor_ht_0222819a_1_humidity
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be] device init for 00:15:8d:00:02:2b:57:85 -> Endpoints: [0, 1]
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:0] endpoint init
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] endpoint init
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] node config for 00:15:8d:00:02:2b:57:85-1: {}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.weather success
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] custom_info for lumi.weather: {'module': <module 'custom_components.device.lumi_weather' from '/config/custom_components/device/lumi_weather.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_weather' from '/config/custom_components/device/lumi_weather.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] call _custom_endpoint_init: lumi.weather
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.weather
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] node config for 00:15:8d:00:02:2b:57:85-1: {'config_report': [[1026, 0, 10, 120, 5], [1027, 0, 10, 120, 5], [1029, 0, 10, 120, 5]], 'in_cluster': [0, 1026], 'out_cluster': [], 'type': 'sensor'}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] config reports skipped, already joined 00:15:8d:00:02:2b:57:85
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] 2:profile 260, component: sensor cluster:[{0, 1026}, set()]
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] Return from component general entity:00:15:8d:00:02:2b:57:85
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] Call single-cluster entity: 1027
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] Call single-cluster entity: 1029
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be:1] Call single-cluster entity: 1030
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.zha_new] [0x20be] Exit device init 00:15:8d:00:02:2b:57:85
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0x22e2:1] initialize cluster listeners: [0, 1030, 65535] 
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0x22e2:1] exit make binary-sensor 
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] set Entity object: <class 'custom_components.binary_sensor.zha_new.OccupancySensor'>-00:15:8d:00:01:ff:60:ff_1_occupancy 
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] Return binary_sensor init-cluster {0: <zigpy.zcl.clusters.general.Basic object at 0x7063b830>, 65535: <zigpy.zcl.clusters.manufacturer_specific.ManufacturerSpecificCluster object at 0x7063bd70>, 1030: <zigpy.zcl.clusters.measurement.OccupancySensing object at 0x7063b870>, 1024: <zigpy.zcl.clusters.measurement.IlluminanceMeasurement object at 0x7063bd30>, 1280: <zigpy.zcl.clusters.security.IasZone object at 0x7063ba10>, 1: <zigpy.zcl.clusters.general.PowerConfiguration object at 0x70554eb0>, 3: <zigpy.zcl.clusters.general.Identify object at 0x70554fd0>}
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:01:ff:60:ff
2018-10-23 19:58:11 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumisensor_motionaq2_01ff60ff_1_illuminance
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d] device init for 00:15:8d:00:02:77:2e:8d -> Endpoints: [0, 1]
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:0] endpoint init
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] endpoint init
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] node config for 00:15:8d:00:02:77:2e:8d-1: {}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_weather' from '/config/custom_components/device/lumi_weather.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6fc11df8>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6fc11e88>, 'custom_parameters': None}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] call _custom_endpoint_init: lumi.weather
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet]  selector: lumi.weather
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] node config for 00:15:8d:00:02:77:2e:8d-1: {'config_report': [[1026, 0, 10, 120, 5], [1027, 0, 10, 120, 5], [1029, 0, 10, 120, 5]], 'in_cluster': [0, 1026], 'out_cluster': [], 'type': 'sensor'}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] config reports skipped, already joined 00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] 2:profile 260, component: sensor cluster:[{0, 1026}, set()]
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] Return from component general entity:00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] Call single-cluster entity: 1027
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] Call single-cluster entity: 1029
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d:1] Call single-cluster entity: 1030
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x819d] Exit device init 00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:12 ERROR (MainThread) [custom_components.climate.generic_thermostat] Unable to update from sensor: could not convert string to float: '-'
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:2b:57:85
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_022b5785_1_temperature
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:2b:57:85
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_022b5785_1_pressure
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:2b:57:85
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_022b5785_1_humidity
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:2b:57:85
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_022b5785_1

2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9] device init for 00:15:8d:00:01:ef:85:94 -> Endpoints: [0, 1]
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:0] endpoint init
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] endpoint init
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] node config for 00:15:8d:00:01:ef:85:94-1: {}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] discover_endpoint_info:
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] Import DH lumi.remote.b1acn01 success
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] custom_info for lumi.remote.b1acn01: {'module': <module 'custom_components.device.lumi_remote_b1acn01' from '/config/custom_components/device/lumi_remote_b1acn01.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6f869540>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6f869588>, 'custom_parameters': None}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] pre call _custom_endpoint_init: {'module': <module 'custom_components.device.lumi_remote_b1acn01' from '/config/custom_components/device/lumi_remote_b1acn01.py'>, '_custom_endpoint_init': <function _custom_endpoint_init at 0x6f869540>, '_custom_cluster_command': None, '_parse_attribute': <function _parse_attribute at 0x6f869588>, 'custom_parameters': None}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] call _custom_endpoint_init: lumi.remote.b1acn01
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] node config for 00:15:8d:00:01:ef:85:94-1: {'in_cluster': [0], 'out_cluster': [6, 18], 'type': 'binary_sensor'}
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] config reports skipped, already joined 00:15:8d:00:01:ef:85:94
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] 2:profile 260, component: binary_sensor cluster:[{0}, {18, 6}]
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9:1] Return from component general entity:00:15:8d:00:01:ef:85:94
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.zha_new] [0x1cd9] Exit device init 00:15:8d:00:01:ef:85:94
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_02772e8d_1_temperature
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_02772e8d_1_pressure
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:12 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_02772e8d_1_humidity
2018-10-23 19:58:13 DEBUG (MainThread) [custom_components.sensor.zha_new] Return make_sensor - 00:15:8d:00:02:77:2e:8d
2018-10-23 19:58:13 DEBUG (MainThread) [custom_components.sensor.zha_new] Create sensor.zha: sensor.lumi_lumiweather_02772e8d_1
2018-10-23 19:58:13 ERROR (MainThread) [custom_components.climate.generic_thermostat] Unable to update from sensor: could not convert string to float: '-'
2018-10-23 19:58:13 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0x1cd9:1] initialize cluster listeners: [18, 6, 0] 
2018-10-23 19:58:13 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] [0x1cd9:1] exit make binary-sensor 
2018-10-23 19:58:13 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] set Entity object: <class 'custom_components.binary_sensor.zha_new.OnOffSensor'>-00:15:8d:00:01:ef:85:94_1_on_off 
2018-10-23 19:58:13 DEBUG (MainThread) [custom_components.binary_sensor.zha_new] Return binary_sensor init-cluster {0: <zigpy.zcl.clusters.general.Basic object at 0x70532ff0>, 18: <zigpy.zcl.clusters.general.MultistateInput object at 0x70532390>, 3: <zigpy.zcl.clusters.general.Identify object at 0x705322f0>, 1280: <zigpy.zcl.clusters.security.IasZone object at 0x70532470>}
2018-10-23 19:58:17 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-23 19:58:21 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-10-23 19:58:24 WARNING (MainThread) [bellows.zigbee.application] Unexpected message send notification
2018-10-23 19:58:27 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0402] ZCL request 0x000a: [[<Attribute attrid=0 value=<zigpy.zcl.foundation.TypeValue object at 0x6d429370>>]]
2018-10-23 19:58:27 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0402] Attribute report received: 0=1880
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 0 1880 ('lumi.weather',) {}
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 1880
2018-10-23 19:58:27 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0405] ZCL request 0x000a: [[<Attribute attrid=0 value=<zigpy.zcl.foundation.TypeValue object at 0x6d429370>>]]
2018-10-23 19:58:27 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0405] Attribute report received: 0=4633
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 0 4633 ('lumi.weather',) {}
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 4633
2018-10-23 19:58:27 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0403] ZCL request 0x000a: [[<Attribute attrid=0 value=<zigpy.zcl.foundation.TypeValue object at 0x6d3c9890>>, <Attribute attrid=20 value=<zigpy.zcl.foundation.TypeValue object at 0x6d3c96f0>>, <Attribute attrid=16 value=<zigpy.zcl.foundation.TypeValue object at 0x6d3c9ab0>>]]
2018-10-23 19:58:27 DEBUG (MainThread) [zigpy.zcl] [0x819d:1:0x0403] Attribute report received: 0=987, 20=-1, 16=9876
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 0 987 ('lumi.weather',) {}
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 987
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 20 -1 ('lumi.weather',) {}
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: -1
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] parse 16 9876 ('lumi.weather',) {}
2018-10-23 19:58:27 DEBUG (MainThread) [custom_components.device.lumi_sensor_magnet] Parse Result: 9876
2018-10-23 19:58:28 WARNING (SyncWorker_0) [netdisco.ssdp] Error fetching description at https://192.168.2.188:8888/capability
2018-10-23 19:58:37 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] ZCL request 0x000a: [[<Attribute attrid=85 value=<zigpy.zcl.foundation.TypeValue object at 0x7062d1b0>>]]
2018-10-23 19:58:37 DEBUG (MainThread) [zigpy.zcl] [0x1cd9:1:0x0012] Attribute report received: 85=1
Yoda-x commented 5 years ago

can you modify the lumi_sensor_86sw.py file and change

def _custom_endpoint_init(self, node_config, *argv):
    config = {
         "in_cluster": [0x0000, ],
         "out_cluster": [0x0006, 0x0012],
        "type": "binary_sensor",
        }
    node_config.update(config)
    self.add_output_cluster(0x0006)
    self.add_output_cluster(0x0012)

to

def _custom_endpoint_init(self, node_config, *argv):
    config = {
        "in_cluster": [0x0000, 0x0006, 0x0012 ],
        "type": "binary_sensor",
        }
    node_config.update(config)

Not sure if this is the cause, but I get out of ideas.

then please restart

estevez-dev commented 5 years ago

Ha!! Woks! screenshot-edwin-home duckdns org-8123-2018 10 24-20-32-27

Thanks a lot!

Yoda-x commented 5 years ago

yippie :rocket:

estevez-dev commented 5 years ago

@Yoda-x will you add this fix to code?

Yoda-x commented 5 years ago

Yepp. Already in preview branch. I try to finalize the next master release with all the new devices and some new features the next days.

estevez-dev commented 5 years ago

@Yoda-x Nice! Thanks for your work. One more question, the last one I swear )) When I update a sources of zha-new in custom_components directory, all my Xiaomi devices disappears after HA restart and appears again after some time of HA running. Is it a normal behavior or can I trigger all devices to re-init somehow to make them appear?

Yoda-x commented 5 years ago

ok, new master is out. the state is not saved if you restart hass. bulbs gets polled, so they get quickly updated. Sensors send a heartbeat or send a event, when something changed. So the easy answer is: that is normal.

You may be able to extract the last good state from your history DB, but this an scripting inside hass and out of my knowledge.

estevez-dev commented 5 years ago

Nice, thanks. I'll check out a new master and report here, if you want.

estevez-dev commented 5 years ago

Updated from master. All works fine! Thanks a lot!