Skip to content

Commit

Permalink
Update demo.items with semantic tags and synonyms (openhab#792)
Browse files Browse the repository at this point in the history
* Update demo.items with semantic tags and synonyms

Signed-off-by: Yannick Schaus <[email protected]>
  • Loading branch information
ghys authored and kaikreuzer committed Oct 16, 2018
1 parent 3746525 commit 158a907
Showing 1 changed file with 73 additions and 73 deletions.
146 changes: 73 additions & 73 deletions features/distro-resources/src/main/resources/items/demo.items
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
Group gFF "First Floor" <firstfloor>
Group gGF "Ground Floor" <groundfloor>
Group gC "Cellar" <cellar>
Group Garden "Garden" <garden>
Group gFF "First Floor" <firstfloor> ["FirstFloor"]
Group gGF "Ground Floor" <groundfloor> ["GroundFloor"]
Group gC "Cellar" <cellar> ["Cellar"]
Group Garden "Garden" <garden> ["Garden"]
Group Weather "Weather" <sun>

Group Status
Group Shutters

Group GF_Living "Living Room" <video> (gGF)
Group GF_Kitchen "Kitchen" <kitchen> (gGF)
Group GF_Toilet "Toilet" <bath> (gGF)
Group GF_Corridor "Corridor" <corridor> (gGF)
Group GF_Living "Living Room" <video> (gGF) ["LivingRoom"]
Group GF_Kitchen "Kitchen" <kitchen> (gGF) ["Kitchen"]
Group GF_Toilet "Toilet" <bath> (gGF) ["Bathroom"] { synonyms="Toilets,WC,Restroom" }
Group GF_Corridor "Corridor" <corridor> (gGF) ["Corridor"]

Group FF_Bath "Bathroom" <bath> (gFF)
Group FF_Office "Office" <office> (gFF)
Group FF_Son "Oliver's Room" <boy_1> (gFF)
Group FF_Daughter "Amelia's Room" <girl_1> (gFF)
Group FF_Bed "Bedroom" <bedroom> (gFF)
Group FF_Corridor "Corridor" <corridor> (gFF)
Group FF_Bath "Bathroom" <bath> (gFF) ["Bathroom"]
Group FF_Office "Office" <office> (gFF) ["Room"] { synonyms="Study" }
Group FF_Son "Oliver's Room" <boy_1> (gFF) ["Bedroom"] { synonyms="Oli's Room" }
Group FF_Daughter "Amelia's Room" <girl_1> (gFF) ["Bedroom"] { synonyms="Amy's Room" }
Group FF_Bed "Bedroom" <bedroom> (gFF) ["Bedroom"] { synonyms="Master Bedroom" }
Group FF_Corridor "Corridor" <corridor> (gFF) ["Corridor"]

/* active groups */
Group:Switch:OR(ON, OFF) Lights "All Lights [(%d)]"
Expand All @@ -26,77 +26,77 @@ Group:Number:AVG Temperature "Avg. Room Temperature [%.1f °C]"
Group:Contact:OR(OPEN, CLOSED) Windows "Open windows [(%d)]" <contact>

/* Lights */
Dimmer Light_GF_Living_Table "Table" (GF_Living, Lights) ["Lighting"]
Switch Light_GF_Corridor_Ceiling "Ceiling" (GF_Corridor, Lights)
Switch Light_GF_Kitchen_Ceiling "Ceiling" (GF_Kitchen, Lights)
Switch Light_GF_Kitchen_Table "Table" (GF_Kitchen, Lights)
Switch Light_GF_Corridor_Wardrobe "Wardrobe" (GF_Corridor, Lights)
Switch Light_GF_Toilet_Ceiling "Ceiling" (GF_Toilet, Lights)
Switch Light_GF_Toilet_Mirror "Mirror" (GF_Toilet, Lights)

Switch Light_FF_Bath_Ceiling "Ceiling" (FF_Bath, Lights)
Switch Light_FF_Bath_Mirror "Mirror" (FF_Bath, Lights)
Switch Light_FF_Corridor_Ceiling "Corridor" (FF_Corridor, Lights)
Switch Light_FF_Office_Ceiling "Ceiling" (FF_Office, Lights)
Switch Light_FF_Son_Ceiling "Ceiling" (FF_Son, Lights)
Switch Light_FF_Daughter_Ceiling "Ceiling" (FF_Daughter, Lights)
Switch Light_FF_Bed_Ceiling "Ceiling" (FF_Bed, Lights)

Switch Light_C_Corridor_Ceiling "Ceiling" (gC, Lights)
Switch Light_C_Staircase "Staircase" (gC, Lights)
Switch Light_C_Washing_Ceiling "Washing" (gC, Lights)
Switch Light_C_Workshop "Workshop" (gC, Lights) ["Lighting"]

Switch Light_Garden_Garage "Garage" (Garden, Lights) ["Lighting"]
Switch Light_Garden_Terrace "Terrace" (Garden, Lights)
Dimmer Light_GF_Living_Table "Table" (GF_Living, Lights) ["Light", "Lighting"]
Switch Light_GF_Corridor_Ceiling "Ceiling" (GF_Corridor, Lights) ["Light"]
Switch Light_GF_Kitchen_Ceiling "Ceiling" (GF_Kitchen, Lights) ["Light"]
Switch Light_GF_Kitchen_Table "Table" (GF_Kitchen, Lights) ["Light"]
Switch Light_GF_Corridor_Wardrobe "Wardrobe" (GF_Corridor, Lights) ["Light"]
Switch Light_GF_Toilet_Ceiling "Ceiling" (GF_Toilet, Lights) ["Light"]
Switch Light_GF_Toilet_Mirror "Mirror" (GF_Toilet, Lights) ["Light"]

Switch Light_FF_Bath_Ceiling "Ceiling" (FF_Bath, Lights) ["Light"]
Switch Light_FF_Bath_Mirror "Mirror" (FF_Bath, Lights) ["Light"]
Switch Light_FF_Corridor_Ceiling "Corridor" (FF_Corridor, Lights) ["Light"]
Switch Light_FF_Office_Ceiling "Ceiling" (FF_Office, Lights) ["Light"]
Switch Light_FF_Son_Ceiling "Ceiling" (FF_Son, Lights) ["Light"]
Switch Light_FF_Daughter_Ceiling "Ceiling" (FF_Daughter, Lights) ["Light"]
Switch Light_FF_Bed_Ceiling "Ceiling" (FF_Bed, Lights) ["Light"]

Switch Light_C_Corridor_Ceiling "Ceiling" (gC, Lights) ["Light"]
Switch Light_C_Staircase "Staircase" (gC, Lights) ["Light"]
Switch Light_C_Washing_Ceiling "Washing" (gC, Lights) ["Light"]
Switch Light_C_Workshop "Workshop" (gC, Lights) ["Light", "Lighting"]

Switch Light_Garden_Garage "Garage" (Garden, Lights) ["Light", "Lighting"]
Switch Light_Garden_Terrace "Terrace" (Garden, Lights) ["Light"]

/* Heating */
Switch Heating_GF_Corridor "Corridor" <heating> (GF_Corridor, Heating)
Switch Heating_GF_Toilet "Toilet" <heating> (GF_Toilet, Heating)
Switch Heating_GF_Living "Livingroom" <heating> (GF_Living, Heating)
Switch Heating_GF_Kitchen "Kitchen" <heating> (GF_Kitchen, Heating)
Switch Heating_GF_Corridor "Corridor" <heating> (GF_Corridor, Heating) ["HVAC"]
Switch Heating_GF_Toilet "Toilet" <heating> (GF_Toilet, Heating) ["HVAC"]
Switch Heating_GF_Living "Livingroom" <heating> (GF_Living, Heating) ["HVAC"]
Switch Heating_GF_Kitchen "Kitchen" <heating> (GF_Kitchen, Heating) ["HVAC"]

Switch Heating_FF_Bath "Bath" <heating> (FF_Bath, Heating)
Switch Heating_FF_Office "Office" <heating> (FF_Office, Heating)
Switch Heating_FF_Son "Oliver's Room" <heating> (FF_Son, Heating)
Switch Heating_FF_Daughter "Amelia's Room" <heating> (FF_Daughter, Heating)
Switch Heating_FF_Bed "Bedroom" <heating> (FF_Bed, Heating)
Switch Heating_FF_Bath "Bath" <heating> (FF_Bath, Heating) ["HVAC"]
Switch Heating_FF_Office "Office" <heating> (FF_Office, Heating) ["HVAC"]
Switch Heating_FF_Son "Oliver's Room" <heating> (FF_Son, Heating) ["HVAC"]
Switch Heating_FF_Daughter "Amelia's Room" <heating> (FF_Daughter, Heating) ["HVAC"]
Switch Heating_FF_Bed "Bedroom" <heating> (FF_Bed, Heating) ["HVAC"]

/* Rollershutters */
Rollershutter Shutter_GF_Toilet "Toilet" (GF_Toilet, Shutters)
Rollershutter Shutter_GF_Kitchen "Kitchen" (GF_Kitchen, Shutters)
Rollershutter Shutter_GF_Living "Livingroom" (GF_Living, Shutters)
Rollershutter Shutter_GF_Toilet "Toilet" (GF_Toilet, Shutters) ["Blinds"]
Rollershutter Shutter_GF_Kitchen "Kitchen" (GF_Kitchen, Shutters) ["Blinds"]
Rollershutter Shutter_GF_Living "Livingroom" (GF_Living, Shutters) ["Blinds"]

Rollershutter Shutter_FF_Bed "Bedroom" (FF_Bed, Shutters)
Rollershutter Shutter_FF_Bath "Bath" (FF_Bath, Shutters)
Rollershutter Shutter_FF_Office_Window "Office Window" (FF_Office, Shutters)
Rollershutter Shutter_FF_Office_Door "Office Door" (FF_Office, Shutters)
Rollershutter Shutter_FF_Bed "Bedroom" (FF_Bed, Shutters) ["Blinds"]
Rollershutter Shutter_FF_Bath "Bath" (FF_Bath, Shutters) ["Blinds"]
Rollershutter Shutter_FF_Office_Window "Office Window" (FF_Office, Shutters) ["Blinds"]
Rollershutter Shutter_FF_Office_Door "Office Door" (FF_Office, Shutters) ["Blinds"]

Switch Shutter_all

/* Indoor Temperatures */
Number Temperature_GF_Corridor "Temperature [%.1f °C]" <temperature> (Temperature, GF_Corridor)
Number Temperature_GF_Toilet "Temperature [%.1f °C]" <temperature> (Temperature, GF_Toilet)
Number Temperature_GF_Living "Temperature [%.1f °C]" <temperature> (Temperature, GF_Living)
Number Temperature_GF_Kitchen "Temperature [%.1f °C]" <temperature> (Temperature, GF_Kitchen, Thermostat) ["CurrentTemperature"]
Number Temperature_FF_Bath "Temperature [%.1f °C]" <temperature> (Temperature, FF_Bath)
Number Temperature_FF_Office "Temperature [%.1f °C]" <temperature> (Temperature, FF_Office)
Number Temperature_FF_Son "Temperature [%.1f °C]" <temperature> (Temperature, FF_Son)
Number Temperature_FF_Daughter "Temperature [%.1f °C]" <temperature> (Temperature, FF_Daughter)
Number Temperature_FF_Bed "Temperature [%.1f °C]" <temperature> (Temperature, FF_Bed)
Number Temperature_GF_Corridor "Corridor [%.1f °C]" <temperature> (Temperature, GF_Corridor) ["Temperature", "Measurement"]
Number Temperature_GF_Toilet "Toilet [%.1f °C]" <temperature> (Temperature, GF_Toilet) ["Temperature", "Measurement"]
Number Temperature_GF_Living "Living Room [%.1f °C]" <temperature> (Temperature, GF_Living) ["Temperature", "Measurement"]
Number Temperature_GF_Kitchen "Kitchen [%.1f °C]" <temperature> (Temperature, GF_Kitchen, Thermostat) ["Temperature", "Measurement", "CurrentTemperature"]
Number Temperature_FF_Bath "Bath [%.1f °C]" <temperature> (Temperature, FF_Bath) ["Temperature", "Measurement"]
Number Temperature_FF_Office "Office [%.1f °C]" <temperature> (Temperature, FF_Office) ["Temperature", "Measurement"]
Number Temperature_FF_Son "Oliver's Room [%.1f °C]" <temperature> (Temperature, FF_Son) ["Temperature", "Measurement"]
Number Temperature_FF_Daughter "Amelia's Room [%.1f °C]" <temperature> (Temperature, FF_Daughter) ["Temperature", "Measurement"]
Number Temperature_FF_Bed "Bedroom [%.1f °C]" <temperature> (Temperature, FF_Bed) ["Temperature", "Measurement"]

/* Windows */
Contact Window_GF_Frontdoor "Frontdoor [MAP(en.map):%s]" <frontdoor> (GF_Corridor, Windows)
Contact Window_GF_Kitchen "Kitchen [MAP(en.map):%s]" (GF_Kitchen, Windows)
Contact Window_GF_Living "Terrace door [MAP(en.map):%s]" <door> (GF_Living, Windows)
Contact Window_GF_Toilet "Toilet [MAP(en.map):%s]" (GF_Toilet, Windows)
Contact Window_GF_Frontdoor "Frontdoor [MAP(en.map):%s]" <frontdoor> (GF_Corridor, Windows) ["FrontDoor"]
Contact Window_GF_Kitchen "Kitchen [MAP(en.map):%s]" (GF_Kitchen, Windows) ["Window"]
Contact Window_GF_Living "Terrace door [MAP(en.map):%s]" <door> (GF_Living, Windows) ["Door"]
Contact Window_GF_Toilet "Toilet [MAP(en.map):%s]" (GF_Toilet, Windows) ["Window"]

Contact Window_FF_Bath "Bath [MAP(en.map):%s]" (FF_Bath, Windows)
Contact Window_FF_Bed "Bedroom [MAP(en.map):%s]" (FF_Bed, Windows)
Contact Window_FF_Office_Window "Office Window [MAP(en.map):%s]" (FF_Office, Windows)
Contact Window_FF_Office_Door "Balcony Door [MAP(en.map):%s]" <door> (FF_Office, Windows)
Contact Window_FF_Bath "Bath [MAP(en.map):%s]" (FF_Bath, Windows) ["Window"]
Contact Window_FF_Bed "Bedroom [MAP(en.map):%s]" (FF_Bed, Windows) ["Window"]
Contact Window_FF_Office_Window "Office Window [MAP(en.map):%s]" (FF_Office, Windows) ["Window"]
Contact Window_FF_Office_Door "Balcony Door [MAP(en.map):%s]" <door> (FF_Office, Windows) ["Door"]

Contact Garage_Door "Garage Door [MAP(en.map):%s]" <garagedoor> (Garden, Windows)
Contact Garage_Door "Garage Door [MAP(en.map):%s]" <garagedoor> (Garden, Windows) ["GarageDoor"]

Group Weather_Chart
Number Weather_Temperature "Outside Temperature [%.1f °C]" <temperature> (Weather, Weather_Chart) { channel="yahooweather:weather:berlin:temperature" }
Expand Down Expand Up @@ -127,7 +127,7 @@ Number Wifi_Level "Wifi Level [%d/4]" <signal>
String ImageURL "Image URL [%s]"

Group Thermostat "Thermostat" <temperature> ["Thermostat"]
Number Temperature_Setpoint "Temperature [%.1f °C]" <temperature> (Thermostat) ["TargetTemperature"]
String Thermostat_Mode "Thermostat Mode [%s]" <temperature> (Thermostat) ["homekit:HeatingCoolingMode"]
Dimmer Temperature_Setpoint "Temperature [%.1f °C]" <temperature> (Thermostat) ["TargetTemperature", "Setpoint", "Temperature"] { habot="" [ control="knob", min=15, max=35, leftIcon="mdi-thermometer", leftInverted=true ] }
String Thermostat_Mode "Thermostat Mode [%s]" <temperature> (Thermostat) ["homekit:HeatingCoolingMode", "Control"]

// vim: syntax=Xtend

0 comments on commit 158a907

Please sign in to comment.