Xiaomi smart home

Im curious as to whether they will trigger at any time if there hasn’t been motion for as while, but then only trigger every minute once there is consistent motion.

mmhhh now I get this. I bought sensor for presence detection (not burglar, here the police arrives after 40 mintes, no need for sensors ahah).

Which are the presence detection sensor that are more suitable for “presence” detection?

I don’t own one so cannot test but the other brands I’ve seen don’t work that way. And I’ve seen a few and this is common with a lot of RF PIR’s. I’m sure of the guys that has one will report back on their operation.

Well I use these https://www.aliexpress.com/item/Hot-Selling-433MHz-wireless-Infrared-Detector-For-Home-Burglar-GSM-Alarm-System/32705031091.html?spm=2114.01010208.3.65.ZPZIuf&ws_ab_test=searchweb0_0,searchweb201602_4_10065_10068_10084_10083_10080_10082_10081_10060_10061_10062_10056_10055_10037_10054_10033_10059_10032_10099_10078_10079_10077_10103_10073_10102_10096_10052_10050_10051,searchweb201603_6&btsid=530dc5ff-001c-4c68-9dea-eb8cd233ff0c but this thread is not about general RF PIR’s. These trigger continuously with about a 2 second delay between triggers. If you move continuously they won’t trigger until you stop for 2 seconds then trigger again. The thing about these is they are not very sensitive that’s why I’m constantly looking for better wireless PIR’s but I don’t want to pay $80 each. Anyway back on topic :smiley:

Is there a US version of the Xiaomi Mi Gateway?
Or is there a way to incorporate the Xiaomi sensors into HA without the gateway?

Just curious as the cost of the sensors makes this something I’d be interested in.

*Sorry to hijack the thread, just didn’t see this info anywhere.

Hi everyone, I have some doubts.

If I buy the hub and some wifi switch how can I turn it off and turn on my lights by eliminating my home switches?

I bought one of these, is coming. With which transmitter are you commanding them?

I designed my own

Gettings some of these too… Hopefully development is still happening for this very interested to use home assistant as the UI and smarts as I dont think xiaomi have a good track record for that.

Hi fooxy.
Your code works great with my setup. Amazing work! Thank you.
Do you have any developments on the switches? Do you need help?
Cheers.

Hello @all,

I have something working for motion and magnet using data pushed by the hub/gatway.
So home-assistant reacts instantly to sensor change (the motion sensor waits 1 minute after each motion detection).

If I have enought time, I’ll clean up the code and share it tomorrow.

It has been restructured like this:

  • custom_components : hub/gateway
  • custom_components/sensor : temperature and humidity
  • custom_components/binary_sensor : motion and magnet
  • etc…

@covrig
I think I’ll implement it for tomorrow :wink:

After some feedbacks, if it works well
-> modification to comply with hass rules
-> proposal to integer the official component list.

5 Likes

@covrig can you share with us whats setup you have?
Example how you turn on your lights?
Phisically on your hall switch…or for home assistant?

2nd user stating these trigger every minute. Not good for room / presence sensing. You cannot create great automations based on sensors that only trigger every minute.

just need to see if they trigger immediately, then only update every minute after that, or if they only wake to check every minute.

At some point i’ll give it a test.

Note: from my experience, i believe it works like the former - if there has been no motion, it turns on immediately, upon me entering a room. I have set up the ‘nightlight’ scene using the app and the hub. and it seems to go on as soon as i walk into the room with the sensor. I definitely haven’t noticed any significant delays to it turning on.

1 Like

I guess it depends on what you want to use them for.

I have a PIR in every room here that triggers continuously. At sunset all rooms go into auto mode that aren’t the main living area. I can walk around the house and not touch a switch. Automations are based on around 30 seconds of no activity in the room and then lights go off. If I move in the room then light stays on indefinitely but when I exit the room light goes off after 30 seconds. Now if I had better PIR’s I could reduce that down to 10 second automations. The ones I have trigger continuously but aren’t very sensitive so they require large movement in a room to trigger. If your in the room doing something motionless, lights can go out. You wave your hand and they’re on again but I have seen some PIR’s (albeit wired) that trigger if you move a finger but they are proper good quality PIR’s not some of the rubbish ones getting around now for $8. My problem is I don’t want to spend $80+++ for each PIR :smiley: because if you buy a Honeywell or Bosch or NESS or similar great quality brand, you will get great triggering and wireless long battery life.

That’s why I am always looking for a better and cheap PIR solution. This one is definitely not for me.

You get my point?

If ALS in on in the room, light comes on automatically

1 Like

could always push out the timers to 1 minute… but fair enough!

either way, sounds like a cool project.

Of course you can but with the cost of electricty in Australia, I am trying to do the opposite :smiley: Smarter and more efficient home.

2 Likes

yeah - im in perth. I just put LED downlights through my house, and i have solar.

1 Like

I now wouldn’t recommend the GeekBuying option - I received all the sensors from GearBest earlier this week, but GeekBuying hadn’t even mailed the hub when I enquired about it yesterday (although they told me it was packed up and ready to go). Then today I received an e-mail saying that it couldn’t come via the express method I had paid for because TNT wouldn’t carry the battery, and that I would receive it in fifteen to thirty days as they were going to use standard delivery.

As the hub doesn’t have a battery, I’m starting to wonder if they may actually have none in stock and are just delaying me until they get some in. I suspect that the full kit version will be back in stock everywhere well before I receive my hub.

you control the beside lamp how?

Got my Hub with a PIR and switch today… Got them all hooked up to the xiaomi hub but have also decided to move my HASS to a beaglebone from a windows PC so going to be awhile till I can load up the custom plugin Though on that are there particular steps to install the plugin from fooxy?