]> git.basschouten.com Git - openhab-addons.git/commitdiff
[avmfritz] Fix wrong system channel types (#15172)
authorJ-N-K <github@klug.nrw>
Mon, 3 Jul 2023 20:48:03 +0000 (22:48 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 20:48:03 +0000 (22:48 +0200)
Signed-off-by: Jan N. Klug <github@klug.nrw>
bundles/org.openhab.binding.avmfritz/src/main/resources/OH-INF/thing/thing-types.xml
bundles/org.openhab.binding.avmfritz/src/main/resources/OH-INF/update/instructions.xml

index 482bc3b6c59958da87e5796ac090c6045db980a7..5ee848408ab2921cd91c437b63fef4613a688be2 100644 (file)
                        <channel id="locked" typeId="locked"/>
                        <channel id="device_locked" typeId="device_locked"/>
                        <channel id="temperature" typeId="temperature"/>
-                       <channel id="energy" typeId="system.electrical-energy">
+                       <channel id="energy" typeId="system.electric-energy">
                                <label>Energy Consumption</label>
                                <description>Accumulated energy consumption.</description>
                        </channel>
                        <channel id="locked" typeId="locked"/>
                        <channel id="device_locked" typeId="device_locked"/>
                        <channel id="temperature" typeId="temperature"/>
-                       <channel id="energy" typeId="system.electrical-energy">
+                       <channel id="energy" typeId="system.electric-energy">
                                <label>Energy Consumption</label>
                                <description>Accumulated energy consumption.</description>
                        </channel>
                        <channel id="mode" typeId="mode"/>
                        <channel id="locked" typeId="locked"/>
                        <channel id="device_locked" typeId="device_locked"/>
-                       <channel id="energy" typeId="system.electrical-energy">
+                       <channel id="energy" typeId="system.electric-energy">
                                <label>Energy Consumption</label>
                                <description>Accumulated energy consumption.</description>
                        </channel>
                        <channel id="mode" typeId="mode"/>
                        <channel id="locked" typeId="locked"/>
                        <channel id="device_locked" typeId="device_locked"/>
-                       <channel id="energy" typeId="system.electrical-energy">
+                       <channel id="energy" typeId="system.electric-energy">
                                <label>Energy Consumption</label>
                                <description>Accumulated energy consumption.</description>
                        </channel>
index dc034a8601131bb066ec13c1c2e79d87c27b7e38..b0106ae8cb86c96013700143fb8ea897a2452697 100644 (file)
                                <type>system:electrical-voltage</type>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="2">
+                       <update-channel id="energy">
+                               <type>system:electric-energy</type>
+                       </update-channel>
+                       <update-channel id="power">
+                               <type>system:electric-power</type>
+                       </update-channel>
+                       <update-channel id="voltage">
+                               <type>system:electric-voltage</type>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
 
        <thing-type uid="avmfritz:FRITZ_DECT_210">
                                <type>system:electrical-voltage</type>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="2">
+                       <update-channel id="energy">
+                               <type>system:electric-energy</type>
+                       </update-channel>
+                       <update-channel id="power">
+                               <type>system:electric-power</type>
+                       </update-channel>
+                       <update-channel id="voltage">
+                               <type>system:electric-voltage</type>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
 
        <thing-type uid="avmfritz:FRITZ_DECT_200">
                                <type>system:electrical-voltage</type>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="2">
+                       <update-channel id="energy">
+                               <type>system:electric-energy</type>
+                       </update-channel>
+                       <update-channel id="power">
+                               <type>system:electric-power</type>
+                       </update-channel>
+                       <update-channel id="voltage">
+                               <type>system:electric-voltage</type>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
 
        <thing-type uid="avmfritz:FRITZ_Powerline_546E">
                                <type>system:electrical-voltage</type>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="2">
+                       <update-channel id="energy">
+                               <type>system:electric-energy</type>
+                       </update-channel>
+                       <update-channel id="power">
+                               <type>system:electric-power</type>
+                       </update-channel>
+                       <update-channel id="voltage">
+                               <type>system:electric-voltage</type>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
 
        <thing-type uid="avmfritz:Comet_DECT">