Skip to content

Commit

Permalink
Update illuminance unit according to HA convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomDietrich committed Feb 7, 2023
1 parent 538b0eb commit 3ec456b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miflora-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
project_url = 'https://github.com/ThomDietrich/miflora-mqtt-daemon'

parameters = OrderedDict([
(MI_LIGHT, dict(name="LightIntensity", name_pretty='Sunlight Intensity', typeformat='%d', unit='lux', device_class="illuminance", state_class="measurement")),
(MI_LIGHT, dict(name="LightIntensity", name_pretty='Sunlight Intensity', typeformat='%d', unit='lx', device_class="illuminance", state_class="measurement")),
(MI_TEMPERATURE, dict(name="AirTemperature", name_pretty='Air Temperature', typeformat='%.1f', unit='°C', device_class="temperature", state_class="measurement")),
(MI_MOISTURE, dict(name="SoilMoisture", name_pretty='Soil Moisture', typeformat='%d', unit='%', device_class="humidity", state_class="measurement")),
(MI_CONDUCTIVITY, dict(name="SoilConductivity", name_pretty='Soil Conductivity/Fertility', typeformat='%d', unit='µS/cm', state_class="measurement")),
Expand Down

0 comments on commit 3ec456b

Please sign in to comment.