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 'script'.

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

  1. Hi, I have a blocks-script, which turns off two of my outdoor lights when a light sensor gets above a certain value (and similar script for turning them on). This works fine. However, I have one switch on an outdoor sockett, which also turns OFF (but not ON), at the same time as the two outdoor lights. I’m sure that this is NOT included in the script. Could there be some sort of «link» that I don’t see. How can I find out why this switch turns off? Thanks.
  2. Dear all, I am progressing with the HC2, adding sensors, actors, the like. Also some scripts. But there is one BIG surprise for me. This is how the AND operator is interpreted in block scenes. Trying to accomplish scripts that check for more than 1 criterion to be met, and only execute the act if all conditions are met, i grouped the conditions with the AND tag, as for instance shown in the image. The idea being that in the morning (at 6.12 on weekdays) the light will only be started if it is dark (ie a light sensor registers values of 6 and below). However, if i in the evening turn off the light, the sensor value falls below 7, and the script runs, executing the wakeup scene and turning on the bathroom lights. Obviously the trigger conditional in the script is met. But how? it is not a weekday morning at 6.12. So I checked. If I delete the line for 6.12 weekday, obviously the script runs anytime the sensor value drops below 7: that is correct. If I delete the line for the light sensor, then the script is executed at weekdays at 6.12. Correct as well. If I toggle the command to OR, it executes either when the sensor drops below 7, or it is 6.12 in the morning: correct. But if I set it to AND again (and save, and revisit the script to see if it is set to AND...), it executes as if there is OR. This I feel is not so correct. I'm not the guy to scream BUG all the time, but do feel confused... Anyone any thought? Oh yes, and I used the translate to LUA feature. The resulting line of code looks correct to me as well. All criteria within brackets are linked by ANDs, so therefore there ought not be any execution of the statements that are sequential to THEN until all is met, isn't it? if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "06:12") and tonumber(fibaro:getValue(156, "value")) < 7 ) ) then ...etc... thank you for any insights
  3. Hi, I currently use the script (Scene) below to turn off all lights when going to sleep. The problem is sometimes my adult children are still awake upstairs. How would I modify scene to turn off only downstairs lights? HC2 - Running latest version I thought of using the description field in devices and evaluating but can't work out the code. Help! --[[ %% properties %% events %% globals --]] local ids = fibaro:getDevicesId( { interfaces = { "light", }, properties = { dead = false, }, enabled = true, visible = true, -- optional --userDescription ~= "", -- attempt to evaluate if user description in device is not nil. } ); -- loop through light ids for i, id in ipairs(ids) do fibaro:debug("Turning off " .. fibaro:getName(id)); -- turn light off fibaro:call(id, "turnOff"); end Thanks Jason
  4. Hi, Specific Lua question I'm hoping a more experienced member can help with. I have a 3-way momentary switch connected to a universal binary sensor which controls my Hue lights via Logic/Lua. I would like to increment the brightness of the Hue lights when the button is held down, I'm comfortable with the Hue control I just don't know how to increment the value for brightness when the button is held. I've attached a screenshot of the scene that I need to add the functionality to, the brightness value is represented by question marks. Any help would be greatly appreciated. Ryan PS. If anyone would like to know how to trigger a Hue Scene or change the state of a Hue Group I'll post something up.
  5. Are the IP Address and TCP Port properties for a virtual device read only in LUA and only able to be changed using the web interface? Tried the following from a scene with no success. fibaro:call(id.vd, "setProperty", "ip", newIP) fibaro:call(id.vd, "setProperty", "port", newPort) fibaro:call(id.vd, "setProperty", "IPAddress", newIP) fibaro:call(id.vd, "setProperty", "TCPPort", newPort)
  6. Is there a way to determine whether a virtual device slider was changed by physically moving the slider or whether it was updated with LUA? This is for a now playing progress bar. In the slider's LUA script I want to ignore when the slider was updated by the main loop LUA code. fibaro:getSourceTrigger() sadly doesn't work for virtual devices. UPDATE: Issue resolved. Use fibaro:call(id, "setProperty", "ui.Slider1.value", position) to change the value and position of a slider without running the code in the slider. The slider on the web interface may not move without refreshing the page when this is called but it does work.
×
×
  • Create New...