Hey guys,
I got a couple of scenes that work pretty well on my wall mounted tablet.
Only “issue” i have is that i want dont want the off buttons on it.
See here:
As you can see i need the off buttons when there has been a different event in my home.
Like when i get home or move away from home i got automated rules to turn everything on or off trough presence.
So when i want to sleep the button is still on Going to sleep, but i cant press that button twice so i need to go to the off button and then press Going to sleep again.
Is there a way to bypass this and just have the mapping buttons without the off button. That they get deselected after they are pressed or something like that.
Items:
Number Mijnscenes "Light Scenes" <bulb>
Number myScenes2 "Master Switches" <bed>
Rules:
rule "my scenes switch"
when
Item Mijnscenes changed
then
switch (Mijnscenes.state) {
case 1: {
sendCommand (Huiskamer_lichten, ON)
sendCommand (Kitchendimmer, 100)
sendCommand (Huiskamerdimmer, 0)
sendCommand (KitchenKleur, 0)
sendCommand (Keukenled,ON)
}
case 2: {
sendCommand (Huiskamer_lichten, ON)
sendCommand (Kitchendimmer, 0)
sendCommand (Huiskamerdimmer, 0)
sendCommand (Keukenled,OFF)
}
case 3: {
sendCommand (Huiskamer_lichten, ON)
sendCommand (Kitchendimmer, 100)
sendCommand (Huiskamerdimmer, 100)
sendCommand (KitchenKleur, 100)
sendCommand (Keukenled,OFF)
}
default: {
logInfo("Mijnscenes","incorrect state: {}",Mijnscenes.state)
}
}
end
Sitemap:
Frame label= Scenes
{
Switch item=Mijnscenes mappings=[0="off",1="Cooking",2="Chilling",3="Working"] labelcolor=["gold"]
Switch item=myScenes2 mappings=[0="OFF",1="Wake Up",2="Going To Sleep"]
}
I hope some of you understand my question, my english is not really good.
I hope someone has a solution for this. Its not a big problem but it would be more cleaner looking in the sitemap.
Greetings,
Freddy