Add the first lamps

master
slopjong 2019-04-11 20:30:55 +02:00
parent af9f0c7940
commit f361ffc565
2 changed files with 63 additions and 0 deletions

17
items/level2.items Normal file
View File

@ -0,0 +1,17 @@
Group level2 "Level2"
Group ground_floor "Ground Floor" <groundfloor> (level2)
Group main_floor "Second Floor" <firstfloor> (level2)
Group engineering "Engineering" (main_floor)
Group lab "Lab" (main_floor)
Group chill_zone "Chill Zone" (main_floor)
Group entrance "Entrance" (main_floor)
//-------------------------------------------------------------------------------
Switch entrance_ceiling_lamps "Ceiling Lamps" <lightbulb> (entrance) { channel="mqtt:topic:entrance_ceiling_lamps:power" }
Switch chill_zone_lamps "Lamps" <lightbulb> (chill_zone) { channel="mqtt:topic:chill_zone_lamps:power" }
Switch engineering_table_lamps "Table Lamps" <lightbulb> (engineering) { channel="mqtt:topic:engineering_table_lamps:power" }
Switch engineering_ceiling_lamps "Ceiling Lamps" <lightbulb> (engineering) { channel="mqtt:topic:engineering_ceiling_lamps:power" }
Switch engineering_status_lamp "Status Lamp" <lightbulb> (engineering) { channel="mqtt:topic:engineering_status_lamp:power" }

46
things/level2.things Normal file
View File

@ -0,0 +1,46 @@
Bridge mqtt:broker:mosquitto "Mosquitto" [
host="localhost",
port=1883,
secure=false,
username="",
password="",
clientID="openHAB2"
]{
Thing topic entrance_ceiling_lamps "Entrance Ceiling Lamps" @ "Entrance" {
Channels:
Type switch : power "Power" [
commandTopic="cmnd/entrance/ceiling_lamp/Power"
]
}
Thing topic chill_zone_lamps "Lamps" @ "Chill zone" {
Channels:
Type switch : power "Power" [
commandTopic="cmnd/chill_zone/sonoffs/Power"
]
}
Thing topic engineering_table_lamps "Engineering Table Lamps" @ "Engineering" {
Channels:
Type switch : power "Power" [
commandTopic="cmnd/engineering/table/sonoffs/Power"
]
}
Thing topic engineering_ceiling_lamps "Engineering Ceiling Lamps" @ "Engineering" {
Channels:
Type switch : power "Power" [
commandTopic="cmnd/engineering/ceiling/lamp/Power"
]
}
Thing topic engineering_status_lamp "Engineering Status Lamp" @ "Engineering" {
Channels:
Type switch : power "Power" [
commandTopic="cmnd/engineering/status_lamp/Power"
]
}
}