Xiaomi Gateway Integration

Check your template and reverse it. I think HA reverse the display for door sensor. You can verify it by going to the dev tool and check the state for the device. Or open one of the door and see if it changes to off

Ah ok, will check that out.

Thanks Rave.

There was an issue with HASS not shutting down in 0.34.x, 0.35.x that was fixed in 0.36.

1 Like

How fast are the PIR sensors? Are they quick enough to be used for triggering lights as you enter a room?

Yes… I use two of it for this purpose… :slight_smile:

1 Like

Yes, they’re fast, small and good build quality. There’s just a minute delay before the motion disabled itself. But it should be pretty easy to change the component code to reduce the time

really?? How?

I would love to, I don’t mind to change the battery instead of 1 year to 6 months or little less (battery can be replaced?)

Right now, gateway will send a motion signal everytime it receives detects a motion, even within the 60s window. All you have to do is make a counter, that if after a motion is being sent after 30, set the state to false and reset the state to true.

Since a few days I am unable to login to my Xiaomi account. “Can’t sign into xiaomi account”. Anyone else experiencing this ?

too much for my coding skill (almost inexistant) :smile:

anyway I bought another gateway kit. Will fill all house with sensors, until wife kick me out :smiley:

2 Likes

Are you sure? I’ve sniffed the traffic and it only sends a motion message once per minute.

1 Like

Do you mean tell the gateway the motion sensor state is off? And the sensor will report new motion before the interval of 60 sec?

Yeah. Based on one test i did. That’s why i added a code to ignore any motion message from the gateway when the motion is already activated

Nothing to do with the gateway. The gateway just send a motion message when there’s a motion. Maybe within a good 30 seconds. Maybe you can do a test. Put a logger right where the push update code is. It should log all message pushed from the gateway

I’m busying working on a IR receiver on esp8266 :slight_smile:

1 Like

Nevermind. I had to update your component. It seems something got updated in HASS.

why don’t use the ready made broadlink? Is cheap and it works

can you give me a clue on how to do this?

I have broadlink. But it’s another purposes. I want to detect if IR has been sent either by a remote or blaster and send a mqtt message

what i wrote originally is the clue… I have not write the code and it’s not 1 or 2 lines of codes so i won’t be able to tell you how to code that