Browse Source

veml6075 custom component

esphome
Hendrik Langer 3 years ago
parent
commit
143f04cb3d
  1. 16
      common/veml6075.yaml

16
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
Loading…
Cancel
Save