Skip to content

Commit

Permalink
Add Application, Channel, and Mode Properties
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Feb 23, 2025
1 parent fd53c4c commit f278db3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bundles/org.openhab.core.semantics/model/SemanticTags.csv
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Property,Voltage,,Voltage,,
Property,Current,,Current,,
Property,Frequency,,Frequency,,
Property,Gas,,Gas,,
Property,Application,,Application,,
Property,Channel,,Channel,,
Property,Mode,,Mode,,
Property,SoundVolume,,Sound Volume,,
Property,Oil,,Oil,,
Property,Duration,,Duration,,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def header() {
line.isBlank() ? " *" : " * " + line.replace("\${year}", year)
}).collect(Collectors.toList())

headerLines.add(0, "/**")
headerLines.add(0, "/*")
headerLines.add(" */")
headerLines.add("")

Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.core.semantics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.9</version>
<version>3.0.23</version>
<type>pom</type>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ public DefaultSemanticTagProvider() {
"Frequency", "", ""));
defaultTags.add(new SemanticTagImpl("Property_Gas", //
"Gas", "", ""));
defaultTags.add(new SemanticTagImpl("Property_Application", //
"Application", "", ""));
defaultTags.add(new SemanticTagImpl("Property_Channel", //
"Channel", "", ""));
defaultTags.add(new SemanticTagImpl("Property_Mode", //
"Mode", "", ""));
defaultTags.add(new SemanticTagImpl("Property_SoundVolume", //
"Sound Volume", "", ""));
defaultTags.add(new SemanticTagImpl("Property_Oil", //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Property_Voltage=Voltage
Property_Current=Current
Property_Frequency=Frequency
Property_Gas=Gas
Property_Application=Application
Property_Channel=Channel
Property_Mode=Mode
Property_SoundVolume=Sound Volume
Property_Oil=Oil
Property_Duration=Duration
Expand Down

0 comments on commit f278db3

Please sign in to comment.