]> git.basschouten.com Git - openhab-addons.git/commitdiff
[chromecast] Added pattern for DateTime channel types (#11694)
authorChristoph Weitkamp <github@christophweitkamp.de>
Sat, 4 Dec 2021 15:59:50 +0000 (16:59 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Dec 2021 15:59:50 +0000 (16:59 +0100)
* Added pattern for DateTime channel types

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.chromecast/src/main/resources/OH-INF/thing/thing-types.xml

index 401cfb187ad897f77b83f5b7e962a13ba35f9476..5c7bbf6bf1cd0cb1f42eabcaeb15d465f158f7d1 100644 (file)
                <item-type>DateTime</item-type>
                <label>Broadcast Date</label>
                <description>The broadcast date of the currently playing media</description>
-               <state readOnly="true"/>
+               <category>Calendar</category>
+               <state readOnly="true" pattern="%1$tY-%1$tm-%1$td"/>
        </channel-type>
 
        <channel-type id="composer" advanced="true">
                <item-type>DateTime</item-type>
                <label>Creation Date</label>
                <description>The creation date of the currently playing media</description>
-               <state readOnly="true"/>
+               <category>Calendar</category>
+               <state readOnly="true" pattern="%1$tY-%1$tm-%1$td"/>
        </channel-type>
 
        <channel-type id="discNumber" advanced="true">
                <item-type>DateTime</item-type>
                <label>Release Date</label>
                <description>The release date of the currently playing media</description>
-               <state readOnly="true"/>
+               <category>Calendar</category>
+               <state readOnly="true" pattern="%1$tY-%1$tm-%1$td"/>
        </channel-type>
 
        <channel-type id="seasonNumber" advanced="true">