[ojelectronics] Add discovery; enable writable properties (#9168)

* Add methods to update via Command; Add discovery
* add vacation channels; rework README
* Fixed code review issues: Corrected TimeZone-Handling

Signed-off-by: Christian Kittel <ckittel@gmx.de>
This commit is contained in:
Christian Kittel
2020-12-08 02:23:04 +01:00
committed by GitHub
parent 20e03c257a
commit 8d389b7e2e
22 changed files with 620 additions and 83 deletions

View File

@@ -36,3 +36,5 @@ channel-type.ojelectronics.comfortEndTime.label = Komfort-Endzeit
channel-type.ojelectronics.boostEndTime.label = Boost Endzeit
channel-type.ojelectronics.manualSetpoint.label = manuelle Endzeit
channel-type.ojelectronics.vacationEnabled.label = Urlausbmodus aktiviert
channel-type.ojelectronics.vacationBeginDay.label = Start des Urlausbmodus
channel-type.ojelectronics.vacationEndDay.label = Ende des Urlausbmodus

View File

@@ -68,10 +68,13 @@
<channel id="boostEndTime" typeId="boostEndTime"/>
<channel id="manualSetpoint" typeId="manualSetpoint"/>
<channel id="vacationEnabled" typeId="vacationEnabled"/>
<channel id="vacationBeginDay" typeId="vacationBeginDay"/>
<channel id="vacationEndDay" typeId="vacationEndDay"/>
</channels>
<properties>
<property name="vendor">OJ Electronics</property>
</properties>
<representation-property>serialNumber</representation-property>
<config-description>
<parameter name="serialNumber" type="text" required="true">
<label>Serial Number</label>
@@ -119,7 +122,7 @@
<channel-type id="regulationMode">
<item-type>String</item-type>
<label>Regulation Mode</label>
<state readOnly="true">
<state>
<options>
<option value="auto">Auto</option>
<option value="comfort">Comfort</option>
@@ -135,27 +138,33 @@
<item-type>Number:Temperature</item-type>
<label>Comfort Set Point Temperature</label>
<category>Temperature</category>
<state pattern="%.1f %unit%" readOnly="true"/>
<state pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="comfortEndTime">
<item-type>DateTime</item-type>
<label>End Time of Comfort Mode</label>
<state readOnly="true"/>
</channel-type>
<channel-type id="boostEndTime">
<item-type>DateTime</item-type>
<label>End Time of Boost Mode</label>
<state readOnly="true"/>
</channel-type>
<channel-type id="manualSetpoint">
<item-type>Number:Temperature</item-type>
<label>Manual Set Point Temperature</label>
<category>Temperature</category>
<state pattern="%.1f %unit%" readOnly="true"/>
<state pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="vacationEnabled">
<item-type>Switch</item-type>
<label>Vacation Mode Enabled</label>
<state readOnly="true"/>
</channel-type>
<channel-type id="vacationBeginDay">
<item-type>Switch</item-type>
<label>Vacation Begin Day</label>
</channel-type>
<channel-type id="vacationEndDay">
<item-type>Switch</item-type>
<label>Vacation End Day</label>
</channel-type>
</thing:thing-descriptions>