diff --git a/common/veml6075.yaml b/common/veml6075.yaml new file mode 100644 index 0000000..d9673eb --- /dev/null +++ b/common/veml6075.yaml @@ -0,0 +1,16 @@ +# VEML6075 UV sensor +sensor: + - platform: custom + lambda: |- + auto veml6075 = new VEML6075CustomSensor(); + App.register_component(veml6075); + return {veml6075->uva_sensor, veml6075->uvb_sensor}; + sensors: + - name: "zelva UVA" + id: uva + unit_of_measurement: "mW/cm²" + accuracy_decimals: 0 + - name: "zelva UVB" + id: uvb + unit_of_measurement: "mW/cm²" + accuracy_decimals: 0