From c6c63bd609e6a36fdd799bc0bb9bb50beb3ea663 Mon Sep 17 00:00:00 2001 From: Andrew Fiddian-Green Date: Fri, 16 May 2025 12:43:05 +0100 Subject: [PATCH] [astro] Add semantic tags (#18540) * Add semantic tags Signed-off-by: Andrew Fiddian-Green --- .../main/resources/OH-INF/thing/channels.xml | 111 ++++++++++++++++++ .../src/main/resources/OH-INF/thing/moon.xml | 1 + .../src/main/resources/OH-INF/thing/sun.xml | 1 + 3 files changed, 113 insertions(+) diff --git a/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/channels.xml b/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/channels.xml index d0499130ab1..25703097213 100644 --- a/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/channels.xml +++ b/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/channels.xml @@ -29,6 +29,9 @@ Number:Angle The azimuth of the planet + + Calculation + @@ -36,6 +39,9 @@ Number:Angle The elevation of the planet + + Calculation + @@ -43,6 +49,9 @@ Number Projected shade length ratio (derived from Elevation) + + Calculation + @@ -50,6 +59,10 @@ Number:Intensity Level of radiation after penetration of the atmospheric layer + + Calculation + Level + @@ -57,6 +70,10 @@ Number:Intensity Level of radiation diffracted by clouds and atmosphere + + Calculation + Level + @@ -64,6 +81,9 @@ Number:Intensity Total quantity of radiation on the ground + + Calculation + @@ -93,6 +113,10 @@ DateTime The start time of the event + + Calculation + Timestamp + @@ -101,6 +125,10 @@ DateTime The end time of the event + + Calculation + Timestamp + @@ -109,6 +137,10 @@ Number:Time The duration of the event + + Calculation + Duration + @@ -140,6 +172,10 @@ String The sign of the zodiac + + Status + Info + @@ -183,6 +219,10 @@ String The name of the current season + + Status + Info + @@ -197,6 +237,10 @@ DateTime The beginning of spring + + Calculation + Timestamp + @@ -204,6 +248,10 @@ DateTime The beginning of summer + + Calculation + Timestamp + @@ -211,6 +259,10 @@ DateTime The beginning of autumn + + Calculation + Timestamp + @@ -218,6 +270,10 @@ DateTime The beginning of winter + + Calculation + Timestamp + @@ -240,6 +296,10 @@ DateTime The DateTime of the next total eclipse + + Calculation + Timestamp + @@ -247,6 +307,10 @@ DateTime The DateTime of the next partial eclipse + + Calculation + Timestamp + @@ -254,6 +318,10 @@ DateTime The DateTime of the next ring eclipse + + Calculation + Timestamp + @@ -284,6 +352,10 @@ String The name of the current sun phase + + Status + Info + @@ -323,6 +395,10 @@ DateTime The DateTime the moon is in the first quarter + + Calculation + Timestamp + @@ -330,6 +406,10 @@ DateTime The DateTime the moon is in the third quarter + + Calculation + Timestamp + @@ -337,6 +417,10 @@ DateTime The DateTime for full moon + + Calculation + Timestamp + @@ -344,6 +428,10 @@ DateTime The DateTime for new moon + + Calculation + Timestamp + @@ -351,6 +439,10 @@ Number:Time The age of the moon in days + + Calculation + Duration + @@ -358,6 +450,9 @@ Number:Angle The age of the moon + + Calculation + @@ -365,6 +460,9 @@ Number:Dimensionless The age of the moon + + Calculation + @@ -372,6 +470,9 @@ Number:Dimensionless The illumination of the moon + + Calculation + @@ -379,6 +480,9 @@ String The name of the current moon phase + + Status + @@ -450,6 +554,10 @@ DateTime The DateTime when the distance is reached + + Calculation + Timestamp + @@ -457,6 +565,9 @@ Number:Length The distance of the object + + Calculation + diff --git a/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/moon.xml b/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/moon.xml index 07a404aa0f4..d742727e29e 100644 --- a/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/moon.xml +++ b/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/moon.xml @@ -7,6 +7,7 @@ Provides astronomical data from the moon + Application diff --git a/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/sun.xml b/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/sun.xml index c09a6ed4ec9..75b2f46d52d 100644 --- a/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/sun.xml +++ b/bundles/org.openhab.binding.astro/src/main/resources/OH-INF/thing/sun.xml @@ -7,6 +7,7 @@ Provides astronomical data from the sun + Application