On the ESPHome Page is just a Short sample for a YAML. Is the there some where the Code for this Output available?
I don’t understand the question. Code? YAML is a configuration language, not code. What ESPHome page? Do you mean ESPHome docs?
Documentation has example and gives what to do:
" you can just use shorthands like this: ambient_light: Ambient light.
- ambient_light (Optional): Illuminance for visible light (ALS channel), lx.
- full_spectrum (Optional): Illuminance for the full spectrum sensor (WHITE channel), lx.
- infrared (Optional): Calculated illuminance for the Near-IR spectrum (WHITE minus ALS), lx.
- ambient_light_counts (Optional): The reading for visible light (ALS channel), counts.
- full_spectrum_counts (Optional): The reading for the full spectrum sensor (WHITE channel), counts.
- actual_gain (Optional): The value of gain used for reported values. Particularly useful when “auto_mode” is selected.
- actual_integration_time (Optional): Integration time used for reported values, ms. Particularly useful when “auto_mode” is selected."
Noted, I’ll follow that recommendation.
