Domoticz + sensor lux BH1750

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Daro1003
Posts: 203
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Domoticz + sensor lux BH1750

Post 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
Attachments
Sprzęt.jpg
Sprzęt.jpg (43.8 KiB) Viewed 729 times
User avatar
waltervl
Posts: 6690
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Domoticz + sensor lux BH1750

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
habahabahaba
Posts: 267
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Domoticz + sensor lux BH1750

Post by habahabahaba »

As a variant
you can use Tuya Zigbee motion sensor ( like this) that includes lux sensor
User avatar
waltervl
Posts: 6690
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Domoticz + sensor lux BH1750

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
habahabahaba
Posts: 267
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Domoticz + sensor lux BH1750

Post 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 616 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest