add things, items and rules for Area42 table lamps
parent
ecfbef4441
commit
2133eae239
|
@ -23,6 +23,8 @@ Switch engineering_ceiling_lamps "Ceiling Lamps" <lightbulb> (eng
|
|||
Switch engineering_status_lamp "Status Lamp" <lightbulb> (engineering) { channel="mqtt:topic:engineering_status_lamp:power" }
|
||||
Switch engineering_ceiling_phone_flash "Ceiling Phone Flash" <lightbulb> (engineering) { channel="mqtt:topic:engineering_phone_flash:pulse" }
|
||||
Switch area42_status_lamp "Status Lamp" <lightbulb> (area42) { channel="mqtt:topic:mosquitto:area42_status_lamp:power" }
|
||||
Switch area42_table_lamp1 "Table Lamp1" <lightbulb> (area42) { channel="mqtt:topic:mosquitto:area42_table_lamp1:power" }
|
||||
Switch area42_table_lamp2 "Table Lamp2" <lightbulb> (area42) { channel="mqtt:topic:mosquitto:area42_table_lamp2:power" }
|
||||
Switch lab_soldering_table "Soldering table" <lightbulb> (lab) { channel="mqtt:topic:mosquitto:lab_soldering_table:power" }
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -55,3 +57,4 @@ String proxyIR
|
|||
Switch all_lights "All Lights" <lightbulb> (level2)
|
||||
Switch all_status_lights "All Status Lights" <lightbulb> (engineering)
|
||||
Switch all_engineering_lights "All Engineering Lights" <lightbulb> (engineering)
|
||||
Switch all_area42_table_lights "All Area42 Table Lights" <lightbulb> (area42)
|
||||
|
|
|
@ -9,6 +9,8 @@ then
|
|||
chill_zone_ikea_led.sendCommand("ON")
|
||||
entrance_ceiling_lamps.sendCommand("ON")
|
||||
entrance_marbleadder_lamps.sendCommand("ON")
|
||||
area42_table_lamp1.sendCommand("ON")
|
||||
area42_table_lamp2.sendCommand("ON")
|
||||
end
|
||||
|
||||
|
||||
|
@ -22,6 +24,8 @@ then
|
|||
chill_zone_ikea_led.sendCommand("OFF")
|
||||
entrance_ceiling_lamps.sendCommand("OFF")
|
||||
entrance_marbleadder_lamps.sendCommand("OFF")
|
||||
area42_table_lamp1.sendCommand("OFF")
|
||||
area42_table_lamp2.sendCommand("OFF")
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
rule "Area42 Table Lights ON"
|
||||
when
|
||||
Item all_area42_table_lights changed from OFF to ON
|
||||
then
|
||||
area42_table_lamp1.sendCommand("ON")
|
||||
area42_table_lamp2.sendCommand("ON")
|
||||
end
|
||||
|
||||
|
||||
rule "Engineering Lights OFF"
|
||||
when
|
||||
Item all_area42_table_lights changed from ON to OFF
|
||||
then
|
||||
area42_table_lamp1.sendCommand("OFF")
|
||||
area42_table_lamp2.sendCommand("OFF")
|
||||
end
|
||||
|
||||
|
|
@ -34,6 +34,8 @@ then
|
|||
engineering_ceiling_lamps.sendCommand("ON")
|
||||
engineering_status_lamp.sendCommand("ON")
|
||||
area42_status_lamp.sendCommand("ON")
|
||||
area42_table_lamp1.sendCommand("ON")
|
||||
area42_table_lamp2.sendCommand("ON")
|
||||
executeCommandLine("/etc/openhab2/syn2cat/spaceapi-set-status.sh open")
|
||||
// needs current time in OpenTime
|
||||
// sendTweet("It's "+OpenTime+" and we are open \o/ \ncome in and create something awesome =) \nhttps://Level2.lu/openingTimes")
|
||||
|
@ -52,6 +54,8 @@ then
|
|||
engineering_ceiling_lamps.sendCommand("OFF")
|
||||
engineering_status_lamp.sendCommand("OFF")
|
||||
area42_status_lamp.sendCommand("OFF")
|
||||
area42_table_lamp1.sendCommand("OFF")
|
||||
area42_table_lamp2.sendCommand("OFF")
|
||||
lab_soldering_table.sendCommand("OFF")
|
||||
IRCode.sendCommand(transform("MAP", "ir.map", "amp_off"))
|
||||
executeCommandLine("/etc/openhab2/syn2cat/spaceapi-set-status.sh closed")
|
||||
|
|
|
@ -99,6 +99,20 @@ Bridge mqtt:broker:mosquitto "Mosquitto" [
|
|||
]
|
||||
}
|
||||
|
||||
Thing topic area42_table_lamp1 "Area42 Table Lamp1" @ "Area42" {
|
||||
Channels:
|
||||
Type switch : power "Power" [
|
||||
commandTopic="cmnd/area42/table/lamp1/Power"
|
||||
]
|
||||
}
|
||||
|
||||
Thing topic area42_table_lamp2 "Area42 Table Lamp2" @ "Area42" {
|
||||
Channels:
|
||||
Type switch : power "Power" [
|
||||
commandTopic="cmnd/area42/table/lamp2/Power"
|
||||
]
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Thing topic lab_soldering_table "Soldering table" @ "Lab" {
|
||||
|
|
Loading…
Reference in New Issue