# Xiaomi gateway light sensor

**URL:** <https://discourse.nodered.org/t/xiaomi-gateway-light-sensor/4920>\
**Category:** General\
**Created:** [16 November 2018 08:44 UTC](https://discourse.nodered.org/t/xiaomi-gateway-light-sensor/4920 "2018-11-16T08:44:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erbachm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/erbachm/32/977_2.png) [@Erbachm](https://discourse.nodered.org/u/Erbachm)\
**Post date:** [16 November 2018 08:44 UTC](https://discourse.nodered.org/t/xiaomi-gateway-light-sensor/4920/1 "2018-11-16T08:44:08Z")

</div>

Hi All,

Just wondering if there is any way to read light sensor information from the Xiaomi gateway. I can see in the app that it's possible to create scenes using the gateway "is dark" status but I'm not sure how to get this information into Node Red. Any assistance would be appreciated.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [16 November 2018 08:47 UTC](https://discourse.nodered.org/t/xiaomi-gateway-light-sensor/4920/2 "2018-11-16T08:47:23Z")

</div>

Have you looked on [flows.nodered.org](http://flows.nodered.org) to see if someone has written a node for the gateway?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [16 November 2018 22:36 UTC](https://discourse.nodered.org/t/xiaomi-gateway-light-sensor/4920/3 "2018-11-16T22:36:16Z")

</div>

Check in the home-assistant forums - they use this extensively and have (i believe) hacked firmware to send out through MQTT

Craig

---

<div class="post-metadata">

**Author:** ![Erbachm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/erbachm/32/977_2.png) [@Erbachm](https://discourse.nodered.org/u/Erbachm)\
**Post date:** [16 November 2018 23:20 UTC](https://discourse.nodered.org/t/xiaomi-gateway-light-sensor/4920/4 "2018-11-16T23:20:04Z")

</div>

Thanks for the feedback. I've managed to get what I need by creating an automation to send notifications to my phone when it's dark. This appears to have done the trick.
