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 'turn on'.

  • 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 3 results

  1. amatt

    Restart Plug

    I am looking to have the wall plug restart (turn off then back on after 30 seconds) at an exact time (midnight). i have tried coding this in Lua but i am having no success on getting it to turn off and on at midnight can some help me?
  2. --- Yamonos 1.0 beta --- -- Automatically turns on a Yamaha Receiver (and switches it to the appropriate input) when a Sonos Connect starts playing. -- It requires a Yamaha Virtual Device that stores the correct power state and input in 2 separate Global Variables -- Known issue: If there are multiple grouped devices, Sonos will keep setting the status to "Playing", even if the devices are paused. -- Feel free to improve it and share it -- adjust the variables section below --[[ %% 526 properties %% 525 properties %% 359 properties %% autostart %% events %% globals --]] local YamahaAVR = 359 -- Yamaha VD ID local sonos = 526 -- Sonos Connect ID local pwrBtn = 1 -- the Yamaha VD button ID to turn on the device local offBtn = 2 -- the Yamaha VD button ID to turn off the device local srcBtn = 8 -- the Yamaha VD source button ID local sleepTime = 5000 -- how often should Fibaro check the AV status - in miliseconds local globalVarName = "YAMAHA" -- global variable name created for Yamaha VD local globalVarInputName = "YAMAHA_SET" -- global variable name for Yamaha VD to set the input local avInput = "AV2" -- The Global variable set by the Yamaha VD local globalVarValueOn = "ON" -- the value of the global variable when ON, set by Yamaha VD local globalVarValueOff = "Standby" -- the value of the global variable when OFF, set by Yamaha VD -------- no input is necessary from here --------------- local executed = false function turnOnYamaha() fibaro:call(YamahaAVR, "pressButton",pwrBtn) --POWER ON fibaro:debug("yamaha on") fibaro:sleep(2000) --wait 2 sec until it turns on fibaro:debug("yamaha av2") fibaro:call(YamahaAVR, "pressButton",srcBtn) --AV2 executed = true end function turnOffYamaha() fibaro:call(YamahaAVR, "pressButton",offBtn) --POWER OFF fibaro:debug("yamaha off") end while true do local sonosPlaying = fibaro:getValue(sonos, "state") local yamahaStatus = fibaro:getGlobalValue(globalVarName) if yamahaStatus == globalVarValueOff and sonosPlaying == "PLAYING" then fibaro:debug("Sonos Playing, Yamaha Off - Turning On Yamaha") if not executed then turnOnYamaha() end executed = false sonosPlaying = fibaro:getValue(sonos, "state") yamahaStatus = fibaro:getGlobalValue(globalVarName) elseif yamahaStatus == globalVarValueOn and sonosPlaying == "PLAYING" then fibaro:debug("Sonos Playing, Yamaha On - Nothing here for me") fibaro:debug(sonosPlaying) sonosPlaying = fibaro:getValue(sonos, "state") yamahaStatus = fibaro:getGlobalValue(globalVarName) elseif sonosPlaying == "PAUSED_PLAYBACK" and yamahaStatus == globalVarValueOff then fibaro:debug(yamahaStatus) fibaro:debug("Sonos Off, Yamaha Off - nothing to do") sonosPlaying = fibaro:getValue(sonos, "state") yamahaStatus = fibaro:getGlobalValue(globalVarName) elseif yamahaStatus == globalVarValueOn and sonosPlaying == "PAUSED_PLAYBACK" then fibaro:debug("Sonos Off, Yamaha On - Turning Off Yamaha") local otherInput = fibaro:getGlobalValue(globalVarInputName) if otherInput ~= (avInput) then fibaro:debug("Yamaha is on another input, do not touch") else turnOffYamaha() end sonosPlaying = fibaro:getValue(sonos, "state") yamahaStatus = fibaro:getGlobalValue(globalVarName) end fibaro:sleep(sleepTime) end Hey Folks, I wrote this small script to help me out with my Sonos Connect and Yamaha AV Receiver. It turns on the Yamaha AV and switches to the correct input as soon as Sonos Connect is playing. It's not perfect, but it works pretty well. Please feel free to improve it, if it's needed. /Seb
  3. Distance check is a LUA script to turn on the lights when you’re coming home, for example to turn on the garden light. It uses the GPS functionality of the Fibaro HC2. The script tries to manage the delays or the errors that sometimes there are acquiring the user's location by the Fibaro/GPS and it requires an interval of 1 minute for the Fibaro HC2 parameter "How frequently GPS position from the user’s iPhone should be collected". It has been tested in scenario where you are some kilometers away from home and you are going to home. How it works. You can define four areas: large area and small area, gap area and extra large area. The area are circles around the location of the house. When you enter in the large area the light is turned on and a timer is started. If you reach the small area before the timer has expired the light will be “confirmed on” otherwise the light will be turned off. Perhaps you was not going to home but you have entered in the large area for a while. When the light is “confirmed on” by the first timer a second timer is started. If you exit from the small area before that this timer has expired the light will be turned off. This second timer avoids that the light remains on when, for example, you pass near the house (inside the small area) without to stop at the house. If you remains in the small area the script will continue to run to check when you will go away from home just to reset at the condition where it checks when you area arriving to home. The reset happens when you will be out of the “large area + a gap distance”. Large area + gap distance define the gap area. The gap area is to avoid that the script switches exactly on large area border when you are going away from home. Infact it could be that the road you are on goes in and out from the large area or that the FIBARO GPS reports different values (greater or less than large area radius) when you are next to the large area border. So, without the gap area the script could turn on the light when you are going away from home. It is important to note that even though the script should erroneously turned on the light when you are going away from home the light will be turned off after the first timer is expired since you will not enter in the small area. Anyway the gap area avoids this kind of error and it is used only when you are going away from home. Link for script (ZIP file) and documentation (PDF) download: http://domotica.gposta.it
×
×
  • Create New...