Page 1 of 1

Domoticz + sensor lux BH1750

Posted: Sunday 26 November 2023 20:14
by Daro1003
Hello

Is it possible to connect the BH1750 lighting intensity sensor directly via Raspberry GPIO to Domoticz and read the value?

Currently I have it through the weather station but I would like to build a raspberry backup with lux reading in the event of a power failure. Now I would also have to maintain the main router and the Wi-Fi access point from which the station receives the Wi-Fi signal to connect to the network and Domoticz.

I checked in Domoticz from settings -> hardware and the BH1750 sensor is missing in I2C

Re: Domoticz + sensor lux BH1750

Posted: Monday 27 November 2023 8:23
by waltervl
If not yet supported with Domoticz integration you could read the sensor with a bash or python script and have that script push the data to a dummy sensor in Domoticz.

Check out this wiki page for examples https://www.domoticz.com/wiki/Scripts

Re: Domoticz + sensor lux BH1750

Posted: Tuesday 28 November 2023 14:23
by habahabahaba
As a variant
you can use Tuya Zigbee motion sensor ( like this) that includes lux sensor

Re: Domoticz + sensor lux BH1750

Posted: Tuesday 28 November 2023 15:31
by waltervl
habahabahaba wrote: Tuesday 28 November 2023 14:23 As a variant
you can use Tuya Zigbee motion sensor ( like this) that includes lux sensor
Then you need zigbee ;-) Does this sensor send regular lux updates or only when motion is detected?

Re: Domoticz + sensor lux BH1750

Posted: Tuesday 28 November 2023 16:52
by habahabahaba
waltervl wrote: Tuesday 28 November 2023 15:31
habahabahaba wrote: Tuesday 28 November 2023 14:23 As a variant
you can use Tuya Zigbee motion sensor ( like this) that includes lux sensor
Then you need zigbee ;-) Does this sensor send regular lux updates or only when motion is detected?
Yes you need it :) May be TS have it?

As i remember they work independently.
Motion sensor as switch
And lux sensor as... separate device :))
2023-11-28_18-46-19.png
2023-11-28_18-46-19.png (12.85 KiB) Viewed 617 times
My lux sensor was broken - very frequent triggers so i cut it off from motherboard and it just shows 0 now and motion sensor still works fine. So i cant show you how it working.