Last active
September 16, 2019 03:59
-
-
Save brianhanifin/1a4baec7459249772a0318902c9a86cf to your computer and use it in GitHub Desktop.
Home Assistant: Xiaomi Button Click Event Handler
Thanks! I'm curious about your MQTT integration too; it sounds fun. 🤠
@johan I have used this custom lovelace button to track when chores were last some. It stores the timestamp in mqtt. I stuck a Xiaomi pushbutton inside the kitchen cabinet door next to the dog's medicine. Clicking the physical button updates the lovelace check button card sensor, as if I clicked the virtual button on my phone!
https://community.home-assistant.io/t/lovelace-check-button-card/92980
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted a way to capture Xiaomi button events and to hide the complexity away from my task oriented scripts. After watching DrZzs (@snipercanine) Xiaomi Aquare Smart Home Kit video I decided to share my solution with everyone.
If you are interested in seeing my full Home Assistant repository go here: https://github.com/brianhanifin/Home-Assistant-Config/
Ignore #4. I have included it for completeness, but it is more confusing that is necessary. I'm using a custom lovelace button to keep track of when chores get done and it integrates with MQTT. Ask if you'd like to know more about it.