Giter Site home page Giter Site logo

miio_gateway's People

Contributors

aburghelea avatar cadavre avatar cliffordwhansen avatar glebsterx avatar scottie34 avatar

Stargazers

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

Watchers

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

miio_gateway's Issues

XiaomiGwDevice._push_data({'availability': False})

My last night logs, and this happens once a day at least, and beaks my whole system down, needing a restart

2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:19:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-09-02 06:20:28 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:20:28.002274+03:00
2019-09-02 06:21:29 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:21:29.003373+03:00
2019-09-02 06:22:30 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:22:30.003068+03:00
2019-09-02 06:23:31 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:23:31.002683+03:00
2019-09-02 06:23:58 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.dark_home_temperature is taking over 10 seconds
2019-09-02 06:24:32 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:24:32.003875+03:00
2019-09-02 06:25:33 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:25:33.003587+03:00
2019-09-02 06:26:34 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:26:34.002012+03:00
2019-09-02 06:27:35 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:27:35.003236+03:00
2019-09-02 06:28:36 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:28:36.003071+03:00
2019-09-02 06:29:37 INFO (MainThread) [homeassistant.components.flux.switch] Lights updated to mired:526 brightness:None, 100% of night cycle complete at 2019-09-02 06:29:37.002168+03:00
2019-09-02 06:30:28 INFO (MainThread) [custom_components.miio_gateway] Gateway became unavailable by timeout!
2019-09-02 06:30:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback XiaomiGwDevice._push_data({'availability': False})

I can confirm it works with the Xiaomi-Honeywell smoke detector

Hey there!
You've done a great job of "hacking" the EU version of the gateway. I followed your instructions for installing the miio_client on my gateway, and using the component for HA, it works nicely.

I have the Xiaomi-Honeywell smoke detector, which I wasn't able to pair to the gateway using the Mi App (because the smoke detector is not meant for EU market).

I wanted to confirm that I have successfully paired the EU gateway with the smoke detector (identified as lumi.sensor.smoke.v1).
It shows not only smoke detection state but also battery voltage and last time of heartbeat.

After putting gateway in Zigbee mode, I just pressed the button on the detector 3 times quickly and it paired.
In HA configuration I just added it as a sensor under the gateway using class: smoke and of course using sid found in HA logs after pairing.

Pretty cool I must say.
So I guess you can update the readme :-)

It would be nice if we could also configure the sensor using HA, for example to set its sensitivity (which can be set in Mi App but only if you paired it with a Chinese version gateway).

Get battery status? + suggestion

  1. First of all a question: is there any way to get the battery status of a device?

  2. Suggestion: I had a hard time figuring out how to set up a termometer/hygrometer/thing. I would suggest adding an example, specifying that you need to set up the 3 sensors individually (repeat the same sid with 3 different classes).

Alarm panel issue

Hi,

I have configured some automations for some events on the sensors, if I get alarm states set by the developer tools, the automation works as it is supposed to and the state changes in the alarm control panel, if I set them from the alarm control panel the alarm activates by making a sound (which is not what I configured) and the alarm operates with the default settings of the Xiaomi gateway before the integration which not what I want. Is there a guide, some tips or something to configure the panel to set the correct settings in my gateway?
Below is the automation settings of one of the sensors:

  • id: 1000001-00000000004
    alias: Back Door
    trigger:
    • entity_id: binary_sensor.lumi_158d0002c472e7_door
      from: 'on'
      platform: state
      to: 'off'
      condition:
    • condition: state
      entity_id: alarm_control_panel.miio_gateway
      state: armed_away
    • condition: or
      conditions:
      • condition: state
        entity_id: alarm_control_panel.miio_gateway
        state: armed_home
    • condition: or
      conditions:
      • condition: state
        entity_id: alarm_control_panel.miio_gateway
        state: armed_night
        action:
    • data:
      message: Back Door Open
      service: telegram_bot.send_message
    • data:
      entity_id: media_player.miio_gateway
      service: media_player.media_play

and this is the configuration.yaml section for the gateway:

miio_gateway:
host: 10.10.10.99 # IP of your gateway
port: 54321 # port running miio_client, defaults to 54321
sensors: # sensors that will be available in HA (optional)
- sid: lumi.158d00027cce6a
class: motion # motion sensor
friendly_name: Back Room # display name (optional)
#restore: true
- sid: lumi.158d00027cceb2
class: motion # motion sensor
friendly_name: Fireplace # display name (optional)
#restore: true
- sid: lumi.158d0002c47299
class: door # door sensor
#restore: true # will restore sensor state after HA reboot
friendly_name: Main Door
- sid: lumi.158d0002c472e7
class: door # door sensor
#restore: true # will restore sensor state after HA reboot
friendly_name: Back Door
- sid: lumi.158d0002bfb134
class: button # button
restore: true

And this is the panel configuration in which the only states that work are the ones in the code below, if I change manually the states to eg. armed_away instead or arm_away I get the error of unknown state.

entity: alarm_control_panel.miio_gateway
states:

  • arm_home
  • arm_away
  • arm_night
    type: alarm-panel

I'm a complete newbiew and trying very much to learn the logic behind this but I fail to understand why the state is valid for the same entity when set from the developer tools and invalid when configured in this widget.....

Thank you!

Error on 2022.2

After upgrading to 2022.2 while it seems that theintegration works, suddenly I get the error below in the logs and all the sensors (motion, door etc.) are either in uknown or not responding..

2022-02-21 09:35:39 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for miio_gateway doing blocking calls at custom_components/miio_gateway/init.py, line 278: sleep(6) # Give it timeout time to respond...

Gateway availability changed! Available: False

Hello, i got this kind of issue. HA connects to the gateway and after 20-30 seconds i`m getting this kind of error.

Home Assistant 0.102.0 on hassio.
Log from HA.

2019-11-21 23:53:14 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.kodi 2019-11-21 23:53:59 INFO (SyncWorker_6) [pyicloud.base] Authenticating as xxxxxx 2019-11-21 23:53:59 INFO (SyncWorker_6) [pyicloud.base] Authentication completed successfully 2019-11-21 23:54:10 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.imap_custom 2019-11-21 23:54:10 WARNING (MainThread) [homeassistant.components.sensor] Platform imap_custom not ready yet. Retrying in 90 seconds. 2019-11-21 23:54:11 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.imap_custom 2019-11-21 23:54:11 WARNING (MainThread) [homeassistant.components.sensor] Platform imap_custom not ready yet. Retrying in 90 seconds. 2019-11-21 23:54:59 INFO (MainThread) [custom_components.miio_gateway] Gateway availability changed! Available: False 2019-11-21 23:54:59 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.1s (concurrent.futures._base.TimeoutError) 2019-11-21 23:54:59 INFO (SyncWorker_4) [pyicloud.base] Authenticating as xxxxx 2019-11-21 23:54:59 INFO (SyncWorker_4) [pyicloud.base] Authentication completed successfully 2019-11-21 23:55:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.printer_toner_remaining is taking over 10 seconds 2019-11-21 23:55:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.printer_uptime is taking over 10 seconds 2019-11-21 23:55:03 WARNING (MainThread) [homeassistant.components.sensor] Updating snmp sensor took longer than the scheduled update interval 0:00:10 2019-11-21 23:55:41 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.imap_custom 2019-11-21 23:55:41 WARNING (MainThread) [homeassistant.components.sensor] Platform imap_custom not ready yet. Retrying in 120 seconds. 2019-11-21 23:55:42 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.imap_custom 2019-11-21 23:55:42 WARNING (MainThread) [homeassistant.components.sensor] Platform imap_custom not ready yet. Retrying in 120 seconds. 2019-11-21 23:56:00 INFO (MainThread) [backoff] Backing off get_ratelimit(...) for 0.6s (concurrent.futures._base.TimeoutError) 2019-11-21 23:56:00 INFO (SyncWorker_8) [pyicloud.base] Authenticating as xxxxxxx 2019-11-21 23:56:01 INFO (SyncWorker_8) [pyicloud.base] Authentication completed successfully

The log from the gateway:

root@imx6ull14x14evk:/# killall miio_client && /home/root/home-assistant/miio_client Local client connected Local client connected Received from local client: {"method":"_internal.hello"} got _internal.hello Requesting device id. sending: {"method":"_internal.request_dinfo","params":"/mnt/data/miio/"} local client internal disconnected. Local client connected Received from local client: {"method":"_internal.response_dinfo","params":{}} Reading _internal message Device id wasn't a number. Device id received Local client disconnected. Local client connected Received from local client: {"method":"_internal.hello"} got _internal.hello Received from local client: {"id":421,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":421,"result":"ok"} Couldn't forward local client package: Invalid argument Received from local client: {"id":422,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11645,[\"event.motion\",[]]]"}} sending reply: {"id":422,"result":"ok"} Couldn't forward local client package: Invalid argument Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4456} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4486} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4516} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":423,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":423,"result":"ok"} Couldn't forward local client package: Invalid argument Received from local client: {"id":424,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11728,[\"event.motion\",[]]]"}} sending reply: {"id":424,"result":"ok"} Couldn't forward local client package: Invalid argument Received from local client: {"id":425,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":425,"result":"ok"} Received from local client: {"id":426,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11734,[\"event.motion\",[]]]"}} sending reply: {"id":426,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4546} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4576} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4606} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":427,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":427,"result":"ok"} Received from local client: {"id":428,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11818,[\"event.motion\",[]]]"}} sending reply: {"id":428,"result":"ok"} Received from local client: {"id":429,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":429,"result":"ok"} Received from local client: {"id":430,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11823,[\"event.motion\",[]]]"}} sending reply: {"id":430,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4636} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":431,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":431,"result":"ok"} Received from local client: {"id":432,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11840,[\"event.motion\",[]]]"}} sending reply: {"id":432,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":433,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":433,"result":"ok"} Received from local client: {"id":434,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11847,[\"event.motion\",[]]]"}} sending reply: {"id":434,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4666} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":435,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":435,"result":"ok"} Received from local client: {"id":436,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11869,[\"event.motion\",[]]]"}} sending reply: {"id":436,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Got PING Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"result":["on"],"code":0,"id":1} sending reply: {"id":1,"result":"ok"} Received from local client: {"result":[5],"code":0,"id":2} sending reply: {"id":2,"result":"ok"} Received from local client: {"result":["ok"],"code":0,"id":3} sending reply: {"id":3,"result":"ok"} Received from local client: {"id":437,"method":"props","model":"lumi.gateway.mieu01","params":{"from.light":",,,","light":"off"}} sending reply: {"id":437,"result":"ok"} Received from local client: {"id":113,"method":"props","params":{"from.light":",,,","light":"off"}} sending reply: {"id":113,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4696} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"result":["ok"],"code":0,"id":12345} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":438,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":438,"result":"ok"} Received from local client: {"id":439,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11916,[\"event.motion\",[]]]"}} sending reply: {"id":439,"result":"ok"} Received from local client: {"result":["18.893383026123"],"code":0,"id":4} sending reply: {"id":4,"result":"ok"} Received from local client: {"id":440,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":440,"result":"ok"} Received from local client: {"id":441,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11924,[\"event.motion\",[]]]"}} sending reply: {"id":441,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4726} Received from local client: {"result":["ok"],"code":0,"id":12345} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":442,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":442,"result":"ok"} Received from local client: {"id":443,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11949,[\"event.motion\",[]]]"}} sending reply: {"id":443,"result":"ok"} Received from local client: {"id":444,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":444,"result":"ok"} Received from local client: {"id":445,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[11954,[\"event.motion\",[]]]"}} sending reply: {"id":445,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4756} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4786} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":446,"method":"event.heartbeat","params":[{"w_SL":"","w_LQ":"","TIME":"4818","FRAM":"215830528"}]} sending reply: {"id":446,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4816} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":447,"method":"event.heartbeat","params":[{"w_SL":"","w_LQ":"","TIME":"4818","FRAM":"215908352"}]} sending reply: {"id":447,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4846} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":448,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":448,"result":"ok"} Received from local client: {"id":449,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12060,[\"event.motion\",[]]]"}} sending reply: {"id":449,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4876} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":450,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":450,"result":"ok"} Received from local client: {"id":451,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12083,[\"event.motion\",[]]]"}} sending reply: {"id":451,"result":"ok"} Received from local client: {"id":452,"sid":"lumi.158d0003a35d79","model":"lumi.sensor_switch.v2","method":"event.double_click","params":[]} sending reply: {"id":452,"result":"ok"} Received from local client: {"id":453,"sid":"lumi.158d0003a35d79","model":"lumi.sensor_switch.v2","method":"props","params":{"device_log":"[12085,[\"event.double_click\",[]]]"}} sending reply: {"id":453,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":454,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":454,"result":"ok"} Received from local client: {"id":455,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12088,[\"event.motion\",[]]]"}} sending reply: {"id":455,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4906} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4936} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4966} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":456,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":456,"result":"ok"} Received from local client: {"id":457,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12184,[\"event.motion\",[]]]"}} sending reply: {"id":457,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":458,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":458,"result":"ok"} Received from local client: {"id":459,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12193,[\"event.motion\",[]]]"}} sending reply: {"id":459,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":4997} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":460,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":460,"result":"ok"} Received from local client: {"id":461,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12225,[\"event.motion\",[]]]"}} sending reply: {"id":461,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5027} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":462,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":462,"result":"ok"} Received from local client: {"id":463,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12234,[\"event.motion\",[]]]"}} sending reply: {"id":463,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5057} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":464,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":464,"result":"ok"} Received from local client: {"id":465,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12257,[\"event.motion\",[]]]"}} sending reply: {"id":465,"result":"ok"} Received from local client: {"id":466,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":466,"result":"ok"} Received from local client: {"id":467,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12262,[\"event.motion\",[]]]"}} sending reply: {"id":467,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5087} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5117} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":468,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":468,"result":"ok"} Received from local client: {"id":469,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12344,[\"event.motion\",[]]]"}} sending reply: {"id":469,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5147} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5177} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5207} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5237} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":470,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.no_motion","params":[120]} sending reply: {"id":470,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5267} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5297} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5327} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":471,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":471,"result":"ok"} Received from local client: {"id":472,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12540,[\"event.motion\",[]]]"}} sending reply: {"id":472,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5357} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5387} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":473,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":473,"result":"ok"} Received from local client: {"id":474,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12597,[\"event.motion\",[]]]"}} sending reply: {"id":474,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":475,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":475,"result":"ok"} Received from local client: {"id":476,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12611,[\"event.motion\",[]]]"}} sending reply: {"id":476,"result":"ok"} Received from local client: {"id":477,"method":"event.heartbeat","params":[{"w_SL":"","w_LQ":"","TIME":"5419","FRAM":"215887872"}]} sending reply: {"id":477,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_time"} Reading local message sending reply: {"id":12345,"method":"local.time","params":5417} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":478,"method":"event.heartbeat","params":[{"w_SL":"","w_LQ":"","TIME":"5419","FRAM":"215887872"}]} sending reply: {"id":478,"result":"ok"} Received from local client: {"id":479,"method":"_sync.neighborDevInfo","params":{"did":[]}} sending reply: {"id":479,"result":"ok"} Received from local client: {"id":12345,"method":"local.query_status"} Reading local message sending reply: {"id":12345,"method":"local.status","params":"cloud_connected"} Received from local client: {"id":480,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"event.motion","params":[]} sending reply: {"id":480,"result":"ok"} Received from local client: {"id":481,"sid":"lumi.158d00036ce62c","model":"lumi.sensor_motion.v2","method":"props","params":{"device_log":"[12629,[\"event.motion\",[]]]"}} sending reply: {"id":481,"result":"ok"}

Manual Probing of Sensors

I have followed your suggestions and work and I can finally connect to my Xiamo gateway! I can see all the sensors but they seem to either not changing state or reamining in a false state (door is closed and HA shows it open) until their data are updated (that is when I get voltage, battery and such). Is there a way to trigger manualy the discovery of sensors?

EU zigbee plugs

Good afternoon. Are you planning to add zigbee plugs to the module?

New HA version

Hi and thank you for this invaluable integration!

During the last HA upgrade, this integration fails to load propably due to the new manifest requirement. Is it possible to make it work again??

Log entry:

Logger: homeassistant.setup
Source: setup.py:172
First occurred: 8:46:10 AM (1 occurrences)
Last logged: 8:46:10 AM

Setup failed for miio_gateway: Integration not found.

Behaviour of restore param

Hi there.
DISCLAIMER: I may be really stupid and don't understand what I read.

Per the documentation:

https://github.com/cadavre/miio_gateway#v13
Added restore param to sensor mapping. Defaults to false, will restore pre-HA restart state if set to true.

The behaviour i see with door sensors is that if i have restore: true , after a HA restart , all the sensors report as Open (until i trigger them manually, when the state is updated). But if i set restore: false , after the restart, the state that are reported after restart (without any other trigger) is the actual state of the sensor prior to the restart.

I've seed this with HA 0.105 , 0.107, 0.110 and 0.111.

Am I reading the README and not understanding it or does is the actual behaviour different from the documented one ?

[custom_components.miio_gateway] Gateway became unavailable by timeout!

Hello @cadavre !
I've a little / big issue I don't know if it's related to your component or not.
HA hangs and the last entries are those:

2019-08-14 21:01:03 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: spotify_connect {'host': '192.168.3.106', 'port': 41397, 'hostname': 'c5695c2f2114ac90-0.local.', 'properties': {'CPath': '/zc/0', 'VERSION': '1.0', 'Stack': 'SP'}}
2019-08-14 21:02:28 INFO (MainThread) [custom_components.miio_gateway] Gateway became unavailable by timeout!
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity Gateway Player: idle>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity Gateway Alarm: armed_away>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity Gateway Illuminance Sensor: 70>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity None: off>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity None: off>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity None: off>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity None: off>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity None: off>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'
2019-08-14 21:02:28 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method XiaomiGwDevice._push_data of <Entity Gateway LED: off>>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
TypeError: _push_data() missing 3 required positional arguments: 'sid', 'event', and 'params'

Or there is a way to debug it better?
I've 0.97.2 of HA on Synology docker and latest miio_gateway component.
After restart it works for a day, then it stopps.

Ideas?

Thanks!
Simon

Values from events

Some events from sensors, like Vibration and cube, give a value. This value could be the "intensity" of the vibration,,the rotation angle of the cube, etc. I can see the values in the log, but they aren't acessible from the event. Can you fix this? Thank you

Assigning innr Zigbee bulb to Xiaomi gateway

Hi,

Thanks for all your work here. I was able to set up HA fully with my Xiaomi Mijia Gateway for the existitng devices.

It seems that in setting up the gateway in this way, it should be able to connect to any zigbee device?

I was trying to pair an innr bulb by calling the miio_gateway.join_zigbeeservice from the UI, the gateway mentions that it is ready to pair with child devices, and once I reset the innr bulb, nothing happens and eventually the gateway states "failed to connect to child device, please try again later."

I cannot see anything in HA.

But when I reset the bulb (by turning it on/off 6 times, the gateway states "device deleted".

Can you please help with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.