I’ve configured a dfrobot.com BH1750 light sensor module (SKU SEN0097) with an RPi Zero W to provide ambient light measurements as an integer value via a web URL. Is there some HA module or code that allows fetching values from an http:// web URL?
Answer: Sensor of type command_line
In my configuration.yaml file:
#
# Ambient Light Sensor
#
sensor:
- platform: command_line
# device_class: illuminance
name: Ambient Light
scan_interval: 30
unit_of_measurement: 'Lux'
command: "curl http://192.168.1.103:8080/"
value_template: '{{ value }}'
Now, to see if I can use the Lux value in other automations.