Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'guests'.
Hello together, I just wanna give you some insights to my Rollo Shutter scene control by using global Predefined variable Guestmodus. The intention was, to update my Rollo shutter scene that the Rollo blinds will be stay closed in the morning for guest room, if guests are stay over night. 1 Step: I crated a global Predefined variable with called "Guestmodus" with the states "On" and "Off". 2. Step: I created a VD to set the Status if guests are going to stay tonight. Button ON fibaro:setGlobal("Gaestemodus", "On") Button OFF fibaro:setGlobal("Gaestemodus", "Off") Primary loop: selfId = fibaro:getSelfId() guestmodus = fibaro:getGlobal("Gaestemodus") fibaro:call(selfId, "setProperty", "ui.guestmodus.value", guestmodus) 3. Step: I updated my Rollo shutter scene with the a Inner-If-Loop: local var = fibaro:getGlobal("Gaestemodus") if ( var=="Off" ) then fibaro:call(309, "open"); -- Gästezimmer Fenster end Result: If I set the Guestmode to "On" the Rollo Blinds will not move up in the guest room and my Guests can sleep w/o to be disturbed. Greetings Footnote to the icons I used: icon set from @Cannon_82 modified by @master_jo1
Has anyone been able to create a functioning Guest "mode"? I was thinking about making my guest mode do something like the following but is not functioning correctly. everytime a guest is present add 1 to the "guests" variable then everytime a guest is not present minus 1 from the "guests" variable I already have the presence setup with a VD that finds the guests phone via Mac address. the problem is that when it detects that the guest is present it adds 1 to the variable everytime it finds the guests phone (I have it looking every 30min) has anyone found a better solution or can give some advise on how to keep a more accurate track of how many guests are present. Thanks!