Skip to content

Commit

Permalink
i18n and changing to system types after self audit checklist
Browse files Browse the repository at this point in the history
Signed-off-by: Jørgen Austvik <[email protected]>
  • Loading branch information
austvik committed Apr 27, 2024
1 parent 5f7eedf commit ad655d8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
# FIXME: please add all English translations to this file so the texts can be translated using Crowdin
# FIXME: to generate the content of this file run: mvn i18n:generate-default-translations
# FIXME: see also: https://www.openhab.org/docs/developer/utils/i18n.html
# add-on

addon.airgradient.name = AirGradient Binding
addon.airgradient.description = This is the binding for AirGradient.

# thing types

thing-type.airgradient.airgradientapi.label = AirGradient API
thing-type.airgradient.airgradientapi.description = Connection to the AirGradient API
thing-type.airgradient.location.label = AirGradient Location
thing-type.airgradient.location.description = AirGradient Location is where measurements are made

# thing types config

thing-type.config.airgradient.airgradientapi.hostname.label = Hostname
thing-type.config.airgradient.airgradientapi.hostname.description = Hostname or IP address of the API
thing-type.config.airgradient.airgradientapi.refreshInterval.label = Refresh Interval
thing-type.config.airgradient.airgradientapi.refreshInterval.description = Interval the device is polled in sec.
thing-type.config.airgradient.airgradientapi.token.label = Token
thing-type.config.airgradient.airgradientapi.token.description = Token to access the device
thing-type.config.airgradient.location.location.label = Location ID
thing-type.config.airgradient.location.location.description = ID of the location

# channel types

channel-type.airgradient.calibration.label = Calibration
channel-type.airgradient.calibration.description = Calibrate Sensors
channel-type.airgradient.calibration.command.option.co2 = co2
channel-type.airgradient.co2.label = CO2
channel-type.airgradient.co2.description = CarbonDioxide
channel-type.airgradient.leds-mode.label = LEDs Mode
channel-type.airgradient.leds-mode.description = Mode for the LEDs
channel-type.airgradient.leds-mode.state.option.default = default
channel-type.airgradient.leds-mode.state.option.off = off
channel-type.airgradient.leds-mode.state.option.pm = pm
channel-type.airgradient.leds-mode.state.option.co2 = co2
channel-type.airgradient.particle-count.label = Particle Count
channel-type.airgradient.particle-count.description = Count of particles in 1 decilitre of air
channel-type.airgradient.pm1.label = PM1
channel-type.airgradient.pm1.description = Particulate Matter 1 (0.001mm)
channel-type.airgradient.pm10.label = PM10
channel-type.airgradient.pm10.description = Particulate Matter 10 (0.01mm)
channel-type.airgradient.pm2.label = PM2
channel-type.airgradient.pm2.description = Particulate Matter 2 (0.002mm)
channel-type.airgradient.tvoc.label = TVOC
channel-type.airgradient.tvoc.description = Total Volatile Organic Compounds
channel-type.airgradient.wifi.label = RSSI
channel-type.airgradient.wifi.description = Received signal strength indicator
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
<channel id="pm02" typeId="pm2"/>
<channel id="pm10" typeId="pm10"/>
<channel id="pm003Count" typeId="particle-count"/>
<channel id="atmp" typeId="temperature"/>
<channel id="rhum" typeId="humidity"/>
<channel id="atmp" typeId="system.outdoor-temperature"/>
<channel id="rhum" typeId="system.atmospheric-humidity"/>
<channel id="wifi" typeId="wifi"/>
<channel id="rco2" typeId="co2"/>
<channel id="tvoc" typeId="tvoc"/>
Expand Down Expand Up @@ -97,22 +97,6 @@
<state readOnly="true" pattern="%d"/>
</channel-type>

<channel-type id="temperature">
<item-type>Number:Temperature</item-type>
<label>Temperature</label>
<description>Temperature</description>
<category>Temperature</category>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>

<channel-type id="humidity">
<item-type>Number:Dimensionless</item-type>
<label>Humidity</label>
<description>Humidity</description>
<category>Humidity</category>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
</channel-type>

<channel-type id="wifi">
<item-type>Number</item-type>
<label>RSSI</label>
Expand Down

0 comments on commit ad655d8

Please sign in to comment.