[ecowatt] Shorter labels for channel options (#13438)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2022-09-25 21:01:26 +02:00 committed by GitHub
parent 8ab5f629c3
commit 5bbd729ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 19 deletions

View File

@ -40,9 +40,9 @@ All channels are read-only.
| Channel | Type | Description |
|-------------------|--------|------------------------------------------------------------------|
| todaySignal | Number | The signal relating to the forecast consumption level for today. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system. |
| tomorrowSignal | Number | The signal relating to the forecast consumption level for tomorrow. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system. |
| currentHourSignal | Number | The signal relating to the forecast consumption level for the current hour. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system. |
| todaySignal | Number | The signal relating to the forecast consumption level for today. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red). |
| tomorrowSignal | Number | The signal relating to the forecast consumption level for tomorrow. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red). |
| currentHourSignal | Number | The signal relating to the forecast consumption level for the current hour. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red). |
## Full Example

View File

@ -8,11 +8,11 @@ binding.ecowatt.description = This binding uses the Ecowatt API to expose clear
thing-type.ecowatt.signals.label = Electricity Forecast
thing-type.ecowatt.signals.description = The French electricity consumption forecasts
thing-type.ecowatt.signals.channel.currentHourSignal.label = Current Hour Signal
thing-type.ecowatt.signals.channel.currentHourSignal.description = The signal relating to the forecast consumption level for the current hour. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system.
thing-type.ecowatt.signals.channel.currentHourSignal.description = The signal relating to the forecast consumption level for the current hour. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red).
thing-type.ecowatt.signals.channel.todaySignal.label = Today Signal
thing-type.ecowatt.signals.channel.todaySignal.description = The signal relating to the forecast consumption level for today. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system.
thing-type.ecowatt.signals.channel.todaySignal.description = The signal relating to the forecast consumption level for today. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red)).
thing-type.ecowatt.signals.channel.tomorrowSignal.label = Tomorrow Signal
thing-type.ecowatt.signals.channel.tomorrowSignal.description = The signal relating to the forecast consumption level for tomorrow. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system.
thing-type.ecowatt.signals.channel.tomorrowSignal.description = The signal relating to the forecast consumption level for tomorrow. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red).
# thing types config
@ -24,10 +24,10 @@ thing-type.config.ecowatt.signals.idSecret.description = ID secret provided with
# channel types
channel-type.ecowatt.signal.label = Consumption Signal
channel-type.ecowatt.signal.description = The signal relating to the forecast consumption level. Values are 1 for normal consumption, 2 for strained electrical system and 3 for very strained electrical system.
channel-type.ecowatt.signal.state.option.1 = Green (normal consumption)
channel-type.ecowatt.signal.state.option.2 = Orange (strained electrical system)
channel-type.ecowatt.signal.state.option.3 = Red (very strained electrical system)
channel-type.ecowatt.signal.description = The signal relating to the forecast consumption level. Values are 1 for normal consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red).
channel-type.ecowatt.signal.state.option.1 = Green
channel-type.ecowatt.signal.state.option.2 = Orange
channel-type.ecowatt.signal.state.option.3 = Red
# thing status descriptions

View File

@ -11,18 +11,19 @@
<channels>
<channel id="todaySignal" typeId="signal">
<label>Today Signal</label>
<description>The signal relating to the forecast consumption level for today. Values are 1 for normal consumption, 2
for strained electrical system and 3 for very strained electrical system.</description>
<description>The signal relating to the forecast consumption level for today. Values are 1 for normal consumption
(green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red)).</description>
</channel>
<channel id="tomorrowSignal" typeId="signal">
<label>Tomorrow Signal</label>
<description>The signal relating to the forecast consumption level for tomorrow. Values are 1 for normal
consumption, 2 for strained electrical system and 3 for very strained electrical system.</description>
consumption
(green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red).</description>
</channel>
<channel id="currentHourSignal" typeId="signal">
<label>Current Hour Signal</label>
<description>The signal relating to the forecast consumption level for the current hour. Values are 1 for normal
consumption, 2 for strained electrical system and 3 for very strained electrical system.</description>
consumption (green), 2 for strained electrical system (orange) and 3 for very strained electrical system (red).</description>
</channel>
</channels>
@ -42,13 +43,13 @@
<channel-type id="signal">
<item-type>Number</item-type>
<label>Consumption Signal</label>
<description>The signal relating to the forecast consumption level. Values are 1 for normal consumption, 2 for
strained electrical system and 3 for very strained electrical system.</description>
<description>The signal relating to the forecast consumption level. Values are 1 for normal consumption (green), 2 for
strained electrical system (orange) and 3 for very strained electrical system (red).</description>
<state readOnly="true">
<options>
<option value="1">Green (normal consumption)</option>
<option value="2">Orange (strained electrical system)</option>
<option value="3">Red (very strained electrical system)</option>
<option value="1">Green</option>
<option value="2">Orange</option>
<option value="3">Red</option>
</options>
</state>
</channel-type>