Putting the LOLIN Ambient sensor on top of the rig, putting everything inside a flipped glas jar works perfect!
It could be controlled by a standard D1 Mini, but as I had some LOLIN D1 Mini Pro V2.0 laying around I used those in this project. 230 VAC is converted to 5VDC using a AC-DC 110V 120V 220V 230V To 5V 12V Converter Board
I fixed the bracket to the wall, screwing the lid to the bracket, and then filling the holes with silicone to seal the jar. Then putting the rig inside the jar, which has power connectors prepared.
LOLIN Ambient Light Sensor: https://www.aliexpress.com/item/32885969140.html?spm=a2g0o.order_list.order_list_main.10.633e1802jYkB74
LOLIN D1 Mini Pro V2.0: https://www.aliexpress.com/item/32724692514.html?spm=a2g0o.order_list.order_list_main.20.633e1802jYkB74
AC-DC 110V 120V 220V 230V To 5V 12V Converter Board: https://www.aliexpress.com/item/1005001651483616.html?spm=a2g0o.order_list.order_list_main.114.633e1802jYkB74
Here is the LOLIN D1 Mini, which I could have used ๐
https://www.aliexpress.com/item/32529101036.html?spm=a2g0o.order_list.order_list_main.185.633e1802jYkB74
substitutions:
devicename: lyssensor-ute
friendly_name: Ambient outdoor sensor
comment: Ambient outdoor sensor
packages:
device_base: !include common/d1_mini_esp8266.yaml
captive_portal:
i2c:
sda: D2
scl: D1
scan: False
sensor:
- platform: bh1750
name: "Outdoor light"
address: 0x23
update_interval: 30s