[robonect] improve jobType config (#14868)
* Add allowed pattern to description * Increase allowed duration to 12h - thats what the web gui allows Signed-off-by: Christian Jonak-Möchel <christian@jonak.org>
This commit is contained in:
parent
5b92f40b2f
commit
705f6e84ee
|
@ -6,19 +6,32 @@
|
|||
https://openhab.org/schemas/config-description-1.0.0.xsd">
|
||||
|
||||
<config-description uri="channel-type:robonect:jobType">
|
||||
<parameter name="remoteStart" type="text" pattern="^STANDARD|REMOTE_1|REMOTE_2$">
|
||||
<parameter name="remoteStart" type="text">
|
||||
<label>Remote Start</label>
|
||||
<description>The location to start the mowing job from.</description>
|
||||
<options>
|
||||
<option value="STANDARD">Standard</option>
|
||||
<option value="REMOTE_1">Remote 1</option>
|
||||
<option value="REMOTE_2">Remote 2</option>
|
||||
</options>
|
||||
|
||||
</parameter>
|
||||
<parameter name="duration" type="integer" min="0" max="60" unit="m">
|
||||
<parameter name="duration" type="integer" min="0" max="720" unit="m">
|
||||
<context>time</context>
|
||||
<label>Job Duration</label>
|
||||
<description>The duration of the job.</description>
|
||||
<default>0</default>
|
||||
|
||||
</parameter>
|
||||
<parameter name="afterMode" type="text" pattern="^AUTO|HOME|EOD$">
|
||||
<parameter name="afterMode" type="text">
|
||||
<label>After Job Mode</label>
|
||||
<description>The Mode to put the mower into after the job is done.</description>
|
||||
<options>
|
||||
<option value="AUTO">Auto</option>
|
||||
<option value="HOME">Home</option>
|
||||
<option value="EOD">End of day</option>
|
||||
</options>
|
||||
|
||||
</parameter>
|
||||
</config-description>
|
||||
|
||||
|
|
|
@ -89,7 +89,13 @@ channel-type.robonect.versionType.label = Robonect Version
|
|||
|
||||
channel-type.config.robonect.jobType.afterMode.label = After Job Mode
|
||||
channel-type.config.robonect.jobType.afterMode.description = The Mode to put the mower into after the job is done.
|
||||
channel-type.config.robonect.jobType.afterMode.option.AUTO = Auto
|
||||
channel-type.config.robonect.jobType.afterMode.option.HOME = Home
|
||||
channel-type.config.robonect.jobType.afterMode.option.EOD = End of day
|
||||
channel-type.config.robonect.jobType.duration.label = Job Duration
|
||||
channel-type.config.robonect.jobType.duration.description = The duration of the job.
|
||||
channel-type.config.robonect.jobType.remoteStart.label = Remote Start
|
||||
channel-type.config.robonect.jobType.remoteStart.description = The location to start the mowing job from.
|
||||
channel-type.config.robonect.jobType.remoteStart.option.STANDARD = Standard
|
||||
channel-type.config.robonect.jobType.remoteStart.option.REMOTE_1 = Remote 1
|
||||
channel-type.config.robonect.jobType.remoteStart.option.REMOTE_2 = Remote 2
|
||||
|
|
Loading…
Reference in New Issue