Hi Dominic,
Here it is:
items:
// ================================= Woonkamer ===============================================
Dimmer Hue_booglamp “Booglamp” (gWoonkamer) { hue=“8” }
Dimmer Hue_staandelamp_onder “Staande lamp onder” (gWoonkamer) { hue=“9” }
Dimmer Hue_staandelamp_boven “Staande lamp boven” (gWoonkamer) { hue=“10” }
Dimmer Hue_iris “Iris” (gWoonkamer) { hue=“12” }
Color Hue_iris_color “Iris_color” (gWoonkamer) { hue=“12” }
Sitemap:
sitemap test label=“Main Menu”
{
Frame {
Group label=“Woonkamer” icon=“groundfloor” {
Switch item=Z_Haard_Switch label=“Haard” icon=“fire”
Slider item=Hue_staandelamp_onder label=“Staande lamp onder [%d %%]” icon=“hue”
Slider item=Hue_staandelamp_boven label=“Staande lamp boven [%d %%]” icon=“hue”
Slider item=Hue_iris label=“Iris [%d %%]” icon=“hue”
Switch item=gKeuken label=“Lamp keuken” icon=“hue”
Switch item=gEetkamer label=“Lampen eetkamer” icon=“hue”
Slider item=Hue_lichtslang label=“Lichtslang [%d %%]” icon=“hue”
Switch item=Z_switch_schuur label=“Schuur”
Slider item=Hue_voordeurlamp label=“Voordeurlamp [%d %%]” icon=“hue”
Slider item=Hue_booglamp label=“Booglamp [%d %%]” icon=“hue”
}
Group label="Eerste verdieping" icon="firstfloor" {
Group label="1st slaapkamer" icon="bedroom" {
Slider item=Hue_slaapkamer_1st label="Slaapkamerlamp [%d %%]" icon="hue"
Slider item=Hue_bloom label="Bloom [%d %%]" icon="hue"
}
Group label="Hoofd slaapkamer" icon="bedroom" {
Slider item=Hue_slaapkamer label="Slaapkamerlamp [%d %%]" icon="hue"
}
Slider item=Hue_overloop label="Overloop dimmer [%d %%]" icon="hue"
}
}
Frame {
Group label="Tuin" icon="garden" {
Switch item=Shutter_Living_switch1 label="Zonscherm [%d %%]" mappings=[100="Uit", STOP="Stop", 0="In"]
Switch item=Gordijn_achter_switch1 label="Gordijn achter [%d %%]"
//Switch item=Tuindimmer label="Tuinverlichting"
Slider item=Tuindimmer label="Tuindimmer [%d %%]" icon="outdoorlight"
}
}
Frame {
Group label="Energie status" icon="socket" {
Text item=item_haard_energy icon="energy"
Text item=item_haard_current icon="energy"
Text item=item_haard_kwh icon="energy"
Text item=Tuindimmer_Energy icon="energy"
Text item=Tuindimmer_Kwh icon="energy"
Text item=energie_totaal_vermogen_mqtt icon="house"
Group label="Gas" icon="shield" {
Text item=gas_totaal icon="house"
Text item=GasConsumption_Today icon="house"
Text item=GasConsumption_CostToday icon="house"
}
}
}
Frame {
Group label="Weer" icon="climate" {
Text item=Temperatuur_buiten_mqtt icon="temperature"
Text item=Luchtvochtigheid_buiten_mqtt icon="climate"
Text item=Luchtdruk_buiten_mqtt icon="climate"
Chart item=Temperatuur_buiten_mqtt label="temp [%.2f]" icon="bedroom"
}
}
Frame {
Group label="Radio" icon="network" {
Switch item=woonkamer label="Radio" icon="switch"
Slider item=woonkamerVolume label="Volume [%d %%]" icon="settings"
Selection item=Sonos_Radio_Station mappings=[0="off", 1="Lounge FM Terrace", 2="NPO Radio 4", 3="Radio 10 80's"]
}
}
Frame {
Group label="Telefoon" icon="bluetooth" {
Text item=Inkomende_call_mqtt icon="boy0"
}
}
Frame label="Test" {
Selection item=Scene_General label="Scene selection" icon="moon" mappings=[0="Uit", 1="Ochtend", 2="Dinner", 3="Avond"]
}
Frame {
Group label="Sensors" icon="heating" {
Group label="Voordeur" icon="socket" {
Text item=Z_Woonkamer_Switch_Bat icon="socket"
Text item=Z_Voordeur_sensor
Text item=Z_Voordeur_sensor_Bat
}
Group label="Tuinhuis" icon="network" {
Text item=Fibaro_Motion_1_Motion
Text item=Fibaro_Motion_1_Temp icon="temperature"
Text item=Fibaro_Motion_1_Lux icon="sun"
Text item=Fibaro_Motion_1_Tamper
Text item=Fibaro_Motion_1_Bat
}
Group label="Schuur" icon="corridor" {
Text item=Schuur_Motion_Motion
Text item=Schuur_Motion_Lux icon="sun"
Text item=Schuur_Motion_Temp icon="temperature"
Text item=Schuur_Motion_Bat icon="socket"
}
}
}
}
Rules:
licht.rules
rule “Woonkamer_light_on”
when
Item Z_Woonkamer_Switch changed from OFF to ON
then
var HSBType paars = new HSBType(“307.9816513761468,85.49019607843137,100”)
sendCommand(Hue_staandelamp_boven,80)
sendCommand(Hue_staandelamp_onder,80)
sendCommand(Hue_iris_color,paars)
sendCommand(Hue_booglamp,50)
sendCommand(Hue_lichtslang_color,paars)
sendCommand(Z_Haard_Switch,ON)
end
rule “Woonkamer_light_off”
when
Item Z_Woonkamer_Switch changed from ON to OFF
then
sendCommand(Hue_staandelamp_boven,0)
sendCommand(Hue_staandelamp_onder,0)
sendCommand(Hue_iris,0)
sendCommand(Hue_booglamp,0)
sendCommand(Hue_lichtslang,0)
sendCommand(Z_Haard_Switch,OFF)
end
events.log:
2016-01-10 20:02:10 - Z_Woonkamer_Switch received command ON <–Zwave switch pressed
2016-01-10 20:02:10 - Z_Woonkamer_Switch state updated to ON
2016-01-10 20:02:11 - Hue_staandelamp_boven received command 80
2016-01-10 20:02:11 - Hue_staandelamp_onder received command 80
2016-01-10 20:02:11 - Hue_iris_color received command 307.9816513761468,85.49019607843137,100
2016-01-10 20:02:11 - Hue_booglamp received command 50
2016-01-10 20:02:11 - Hue_lichtslang_color received command 307.9816513761468,85.49019607843137,100
2016-01-10 20:02:12 - Z_Haard_Switch received command ON
2016-01-10 20:02:12 - Z_Haard_Switch state updated to ON
2016-01-10 20:02:12 - Hue_staandelamp_boven state updated to ON
2016-01-10 20:02:12 - Hue_iris_color state updated to ON
2016-01-10 20:02:12 - Hue_iris state updated to ON
2016-01-10 20:02:12 - Hue_lichtslang state updated to ON
2016-01-10 20:02:12 - Hue_booglamp state updated to ON
2016-01-10 20:02:12 - Hue_lichtslang_color state updated to ON
2016-01-10 20:02:12 - Hue_staandelamp_onder state updated to ON
2016-01-10 20:02:15 - Z_Woonkamer_Switch received command OFF <–Zwave switch pressed
2016-01-10 20:02:15 - Z_Woonkamer_Switch state updated to OFF
2016-01-10 20:02:15 - Hue_staandelamp_boven received command 0
2016-01-10 20:02:15 - Hue_staandelamp_onder received command 0
2016-01-10 20:02:16 - Hue_iris received command 0
2016-01-10 20:02:16 - Hue_booglamp received command 0
2016-01-10 20:02:16 - Hue_lichtslang received command 0
2016-01-10 20:02:16 - energie_totaal_vermogen_mqtt state updated to 420
2016-01-10 20:02:16 - Z_Haard_Switch received command OFF
2016-01-10 20:02:16 - Z_Haard_Switch state updated to OFF
2016-01-10 20:02:18 - Hue_staandelamp_boven state updated to OFF
2016-01-10 20:02:18 - Hue_iris_color state updated to OFF
2016-01-10 20:02:18 - Hue_iris state updated to OFF
2016-01-10 20:02:18 - Hue_lichtslang state updated to OFF
2016-01-10 20:02:18 - Hue_booglamp state updated to OFF
2016-01-10 20:02:18 - Hue_lichtslang_color state updated to OFF
2016-01-10 20:02:18 - Hue_staandelamp_onder state updated to OFF