Currently use rave’s bench.
Put it into custom components folder than manually sim linked to the root (as git puts into a different directory). Can somebody please post simple solution to switch to Danielhiversen branch?
Or even maybe rm -rf and than how to clone the git into the custom_components folder?
Sorry to bump it up - but maybe someone can lay a helping hand on this one?
Awesome work, I’ve used Danielhiversen repo and I’ve been able to use xiaomi switches to drive hue light, amazing!
What I still not understand is if I can use the temperature sensor to trigger an event.
I’ve put one in bathroom, and I want to turn on a smart plug (osram, connected to hue, seen as light) when the humidity in the room reaches a particular threshold (when the shower is open) any idea if I can accomplish this?
I didn’t really want to answer you because I do it the noob way because I don’t quite understand git, or linux commands yet. But since nobody else is… and my apologies if I have misunderstood your question.
Basically, when I want to switch branches or update I just navigate to the custom components directory - delete everything, since xiaomi is all I have in there and drag and drop the new files. Then restart hass.
So if you want to do it the wrong way here is my windows step by step.
1) I spend about 15 mins scrolling through the thread until I can find a post by @Danielhiversen with a link to his repo and click it. I do this because I always plan to bookmark or save the link next time. ( https://github.com/danielhiversen/homeassistant )
3) Usually I stop home-assistant, then navigate to the hass config directory on my windows PC. (I have the relevant directory shared by samba to make things easy for me.)
5) I copy everything from the components folder in the zip I downloaded from github into the custom_components directory in my hass config directory. It looks the same as the first pic except for the pycache folder, this will be created on first run.
This is how I do it from command line in Linux.
You need to replace the path with your path.
See the section that has Daniels version. It overwrites whatever is currently there;
Well probably depend on boxing and selling time, they arrive already active (instead of, for example, hue accessories that have a little strip between battery contacts) so maybe they discharge.
Mine arrive with 65% of battery
@Danielhiversen I use your fork and sometimes (once, twice a day) I have in log something like that:
2017-05-08 07:37:01 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d00014d0a27 is taking over 10 seconds
2017-05-08 07:37:01 ERROR (Thread-5) [custom_components.xiaomi] Cannot connect to Gateway
2017-05-08 07:37:01 ERROR (Thread-5) [custom_components.xiaomi] No data in response from hub None
2017-05-08 07:37:32 WARNING (MainThread) [homeassistant.helpers.entity] Update of binary_sensor.motion_sensor_158d00014d0a27 is taking over 10 seconds
2017-05-08 07:37:32 ERROR (Thread-12) [custom_components.xiaomi] Cannot connect to Gateway
2017-05-08 07:37:32 ERROR (Thread-12) [custom_components.xiaomi] No data in response from hub None
This usually applies to the motion sensor but sometimes also to the temperature/humidity sensor. Is it a WiFi problem? On the router I wrote a script that pings Xiaomi Gateway and during these errors there are no delays.
I’m very interested to hear reports from people who are using the native zigbee support from 0.44, and whether they are able to see or even use the Xiaomi sensors.
is it possible to replace arming/disarming from xiaomi with an automation (I mean if door is opened fired the gateway sound) or should I take an other device for making noise
is it possible to cut internet from xiaomi gateway (this way i’m sure my data is not on chinese servers anymore ?)
Good question. In general @rave repo is out of date. I would go with @Danielhiversen repo as it has support for gateway ring, gateway light sensor and maybe more. I switched a few weeks back
With daniels repo you can create an automation to sound the gateway based on sensor and rules (I didnt do it myself but all the functionality is there)
Yes - you need to configure your router to do it. Depends on router. I’m still looking into this with my Unifi Edgerouter, but I know it’s possible.
No way to disable on the gw itself.
This is how xiaomi provides remote control as well as offshoring all your sensor data (benefits vs risks are for individuals to decide)