Next week i will add extra info to check the brightness setting of Hamulight L2046 connected LEDS by using the 3.6V PWM signal output of a Hamulight L2046 LED transformer and ESP8266 module with simple electronic components.
The ESP8266 D1_MINI_V3/V4 with some simple electronics uses ESPHome to connect to Home Assistant.

The ESP8266 D1 MINI V3/V4 needs to be powered through USB. An adapter 230V to USB is needed.
Below ZIP-file contain a casing for the ESP8266 D1 MINI V3/V4 module.
THIS CASING IS NOT WATERPROOF, SO PLACE CASING IN ENVIRONMENT/LOCATION WHICH IS NOT EXPOSED TO WATER !!!!!!
In home assistant use ESPhome builder to configure the ESP8266 as a duty cycle sensor.
Add below lines to the YAML file used in ESPHOME builder.
sensor:
- platform: duty_cycle
pin: GPIO15
update_interval: 0.5s
name: Duty Cycle Sensor