Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Search the Community

Showing results for tags 'scene activation'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

Found 4 results

  1. Hello I've wrote a little scene in LUA, and I still do not figure out how scene are triggered --[[ %% autostart %% properties %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); fibaro:debug(tostring(os.date("%d/%m/%y %H:%M:%S"))..' - Start - Scene Activate'); if (sourceTrigger["type"] == "autostart") then fibaro:debug(tostring(os.date("%d/%m/%y %H:%M:%S"))..' - Debug Autostart'); else if (startSource["type"] == "other") then fibaro:debug(tostring(os.date("%d/%m/%y %H:%M:%S"))..' - Manual Trigger'); end end fibaro:debug(tostring(os.date("%d/%m/%y %H:%M:%S"))..' - End - Scene Activate'); For the result in the debug windows with this code should loop. and should look like [DEBUG] 16:45:51: 28/09/17 16:45:51 - Start - Scene Activate [DEBUG] 16:45:51: 28/09/17 16:45:51 - Debug Autostart [DEBUG] 16:45:51: 28/09/17 16:45:51 - End - Scene Activate [DEBUG] 16:45:52: 28/09/17 16:45:52 - Start - Scene Activate [DEBUG] 16:45:52: 28/09/17 16:45:52 - Debug Autostart [DEBUG] 16:45:52: 28/09/17 16:45:52 - End - Scene Activate [DEBUG] 16:45:53: 28/09/17 16:45:53 - Start - Scene Activate [DEBUG] 16:45:53: 28/09/17 16:45:53 - Debug Autostart [DEBUG] 16:45:53: 28/09/17 16:45:53 - End - Scene Activate ..... But the result of the execution is that one [DEBUG] 16:45:51: 28/09/17 16:45:51 - Start - Scene Activate [DEBUG] 16:45:51: 28/09/17 16:45:51 - Debug Autostart [DEBUG] 16:45:51: 28/09/17 16:45:51 - End - Scene Activate only 1 occurence of the execution. Can someone explains what's triggering the execution of the scene ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I found the explaination. How this is working Scene got activated once. If you want to have a reoccurence of the activation you need to create a function and write inside what the part of the code you want to reexecute. and at the end of the function use the fibaro function setTimeout(nameofmyfunction, 60*1000) -> 60 is 60 secondes. The code should looks like --[[ %% autostart %% properties %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); myfunction fibaro:debug('This is looping'); setTimeout(myfunction, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() end
  2. I have a Sonos:AMP in my bathroom which I was not using that much because when I go into the bath or shower my phone often isn’t around to turn on the music. So, It seemed handy to turn on the music (the existing playlist) with a triple click of my bathroom light switch. This is how I reached this goal: I installed the Sonos Plugin and I added my bathroom Sonos device I downloaded and added the Sonos Virtual Device from Krikroff: http://www.fibarouk.co.uk/resources/VirtualDevices/SonosPlayer-0.0.8.zip Add a variable in the Variables Panel. I used this tutorial on Youtube: https://www.youtube.com/watch?v=ps9jNiJ_JeU As I am still using Dimmer 1 (FGD-211), I turned on the Scene Activation functionality by putting parameter 41 on 1 in the advanced tab of my bathroom dimmer. If you use Dimmer 2 (FGD-212) you’ll have to put parameter 28 on 1 (no experience, so not sure). After that I build 3 scenes: First of all a scene to put on the Sonos on a specific volume level (where as 311 and 312 are the ID’s of the Sonos Plugin and Virtual Device): --[[ %% properties %% events %% globals --]] -- Set volume of the Sonos plugin fibaro:call(311, "setVolume", "40") -- Press button 7 (play) of the Sonos Virtual Device fibaro:call(312, "pressButton", "7") Second a scene to stop the Sonos player again: --[[ %% properties %% events %% globals --]] -- Press button 9 (stop) of the Sonos Virtual Device fibaro:call(312, "pressButton", “9") Third, a scene to activate the scenes on a triple click: --[[ %% properties 12 sceneActivation %% globals --]] local id= 12; -- Change this to your dimmer ID if (tonumber(fibaro:getValue(id, "sceneActivation"))==15) and (tonumber(fibaro:getValue(id,"value"))==0) then fibaro:debug("3click activated, Sonos bathroom ON"); fibaro:setGlobal("Sleep", "1") -- Change this to your sleep variable(if you have one) fibaro:startScene(278); -- or start a second scene end if (tonumber(fibaro:getValue(id, "sceneActivation"))==15) and (tonumber(fibaro:getValue(id,"value"))>0) then fibaro:debug("3click activated, Sonos bathroom OFF"); fibaro:setGlobal("Sleep", "1") -- Change this to your sleep variable(if you have one) fibaro:startScene(279); -- or start a second scene end 12 is the dimmer ID of the bathroom, 278 the ID of the scene to turn on Sonos and 279 to turn off Sonos. 15 corresponds with triple click. There is one issue I didn’t foresee (because I copied scene 3): scene 3 looks if dimmer 12 is on (>0) or off (=0) to decide whether to turn on or off the Sonos. This should obviously be: look whether the music is on or off to decide if it has to be turned on or off. Somebody any suggestions to solve this? Any other suggestions to develop this solution further are welcome as well. Thanks in advance. Wesselvvvb
  3. Hi all, I've juste updated my HCL to latest version 4.100. Trying to create a new block scene with as trigger an octan remote device configured with scene-activation. The scene can't be saved : I've the "rolling balls" forever... By looking deeper have seen that there are some javascripts errors : check.js?version=1474920480617:2 Uncaught TypeError: Cannot read property 'indexOf' of undefine The error comes from this part of the code (the red indexOf - sorry but the code is minified, so it's difficult to read or give any line number) : blablabla ... b.isTypeOf(remoteControllerClass)&&b.isInterfaceOf(centralSceneInterface)&&a.swipe.indexOf("keyId")!==-1)return triggersArray.swipe.push(a.id+" CentralSceneEvent "+a.swipe.replace("keyId","")) ... blablabla and the box is looping on the following URL : http://192.168.0.100/api/scenes/50/debugMessages Any help/workaround/fix would be really appreciated! Thanks.
  4. I am using centre off two position momentary switches. I would like to be able to Dim Up / Dim Down by holding the buttons closed. Using Scene Activation IDs 12 / 22 (Hold), is it possible to cycle dim from the current level to max / min respectively? Thanks.
×
×
  • Create New...