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



More search options

  • 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

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 19 results

  1. I am not the Author, but this is such a great guide that I think it should be here. https://snillevilla.se/styr-philips-hue-lampor-med-fibaro-home-center-2/ You also need to check Developers.meethue.com and follow the tutorial there to get a user made for API https://developers.meethue.com/documentation/getting-started Files for icons and VD files here: https://github.com/snillevilla/Philips-Hue-VD-for-Fibaro-HC2
  2. Witam Posiadam Dimmer 2, podpięte są pod niego żarówki GU10 hue color, czy ktos sie orientuje czy one nie sa sciemnialne, poza aplikacja philips hue? dziala komus poprawnie hue + dimmer 2? pozdrawiam
  3. Od pewnego czasu w aplikacji hue można ustawić zachowanie żarówek po włączeniu, fajnie by było gdyby udało się to zrobić za pomocą pluginu w HC, ustawiając w zależności od pory dnia barwę światła.
  4. This is my first topic in a series of post I'm going to write about the advanced LUA scenes I wrote for my home automation project. My goal is not flipping a light scene with a phone but for 90% autonome home automation. Besides posting LUA code I give you more insight why I came to this routine. It may help you with designing your own automation routines. Disclaimer: I am not a professional programmer and I post the scenes as is. I have no time to make the LUA scenes generic like other great members do on this forum. I just post my LUA code to share knowlegde and inspire you to create awesome things! Advanced home wake-up routine with Philips Hue and HC2 Applies to: Fibaro Home Center 2 and Philips HUE bridge. GOALS Use my Philips Hue led strips as a wake-up light. Use 1 app to schedule the whole home wake-up routine. Start the morning routine when walking downstairs (check motion). Turn on the lights only when it’s dark (read lux). In our bedroom we integrated a Philips Hue lightstrip in the ceiling and use this with the Philips Hue app as a wake-up light. It beautifully fakes a sunrise in our whole room. As we use the Hue app to set our wake-up alarm I use this app to trigger the Home Center to run a wake-up routine for the rest of the house. TL;DR Set recurring wake-up schedule in the Philips Hue app. Home Center LUA scene 1 reads schedules at 04:00 with the keyword Wake in it. If schedule is set for today and motion is detected at the hallway after the scheduled time (scene 2), run wake-up routine. HOW I IMPLEMENTED IT IN WORDS Reading Hue schedules from the bridge cannot be done with the Fibaro Hue plug-in. Therefore I wrote a LUA scene to read the Hue schedules from the Hue bridge and run the wake-up routine at the schedules wake-up time. I achieved this with 2 LUA scenes: Scene 1 runs every minute and polls the Hue bridge schedules at 04:00. If a wake-up is scheduled for today write the wake-up times to a global variable. Every minute it checks if there is a wake-up planned by reading the same global variable and if so it sets the WakeUpReady global variable to 1. Scene 2 runs when motion detected by a Fibaro Motion Sensor. If it detects motion it checks if the global variable WakeUpReady is set to 1 and runs the wake-up routine. SCENE 1 EXPLAINED You can download the full LUA scenes at the bottom of this post. I only describe snippets of my code to make you understand what it does and show the challenges I ran into. TAG YOUR HUE SCHEDULE WITH A WAKE-UP STRING IN IT! To know which schedules are used for wake-up I set all those schedules with the Wake keyword in it. Like Wake-up weekday’s and Wake-up weekends. In the LUA scene I find these schedules with the code: if name:find('Wake') and status == 'enabled' then ... end RECURRING DAY’S ARE SAVED AS A BITMASK IN THE HUE BRIDGE The Hue API states: The Hue bridge saves the recurring day’s as a bitmask. You have to convert this bitmask to weekday’s. So you can check if the alarm is set for today. The first step is to convert decimal to a binary. I did this with the folowing LUA function: function bin(dec) local result = "" repeat local divres = dec / 2 local int, frac = math.modf(divres) dec = int result = math.ceil(frac) .. result until dec == 0 local StrNumber StrNumber = string.format(result, "s") local nbZero nbZero = 8 - string.len(StrNumber) local Sresult Sresult = string.rep("0", nbZero)..StrNumber return Sresult end Then I have a binary representation of the scheduled weekday’s. For example: mo tu we th fr sa su 1 1 1 1 0 1 0 You see the alarm is set for monday, tuesday, wednesday, thursday and saturday. With this I can determine if the alarm is set for today: if name:find('Wake') and status == 'enabled' then local huedays, huetime = string.match(timepattern, 'W(.*)/T(.*)') -- Hue starts at monday, LUA starts at sunday, so I have to fix this. local dayofweek = os.date("*t").wday-1 if dayofweek == 0 then dayofweek = 7 end local scheduleddays = bin(huedays) -- dayofweek+1 because a week is 7 days and binary is 8 digits, so -- a have a pre 0 local waketoday = string.sub(scheduleddays, dayofweek+1, dayofweek+1) if waketoday == '1' then wakeUpAlarms = wakeUpAlarms .. huetime:sub(1, -4) .. '|' end ... end WRITE WAKE-UP TIME TO GLOBAL VARIABLE If there is an alarm schedule for today write it to a global variable for later use: if wakeUpAlarms ~= '' then fibaro:setGlobal("WakeUpTime", wakeUpAlarms:sub(1, -2)) -- remove last | else -- If no schedules are set, write disabled to the global variable. fibaro:setGlobal("WakeUpTime", "disabled") end SET WAKEUPREADY GLOBAL VARIABLE FOR MOTION SENSOR LUA SCENE The LUA scene runs every minute using the code: setTimeout(tempFunc, 60*1000) At 04:00 it checks the schedules in the Hue bridge, but every minute it checks the WakeUpTime global variable to set the wakeupReady global variable to 1. This variable triggers the second LUA scene used by the motion sensor. local wakeupTime = fibaro:getGlobal("WakeUpTime") if wakeupTime ~= "disabled" then local waketimes = {} for match in (wakeupTime..'|'):gmatch("(.-)"..'|') do table.insert(waketimes, match); end for k, v in pairs(waketimes) do if os.date("%H:%M") == v then fibaro:setGlobal("WakeUpReady", 1) fibaro:debug("It's wake-up time! Set motion detector ready!") end end end SCENE 2 EXPLAINED (MOTION SENSOR PART) With scene 1 I created a global variable setting to determine if the wake-up routine must run. Now I create a second scene to act if there is motion in our hallway. CHECK FOR MOTION AND IF ALARM IS NOT ARMED First I want to check if there is motion and if the alarm is not armed with the line: if tonumber(fibaro:getValue(158, "value")) > 0 and tonumber(fibaro:getValue(158, "armed")) == 0 then ... RUN WAKE-UP ROUTINE ONLY IF IT’S DARK OUTSIDE The Philips Hue wake-up schedule runs always because our bedroom had curtains and the room is always dark. Downstairs I only want to run the wake-up routine when it’s dark outside. The wakeupReady global variable check’s if the routine needs to run when there is motion (set with scene 1). The line below gets the current lux reading from the Fibaro motion sensor: fibaro:getValue(160, "value") If the illuminance is below 20 I want to turn on my lights. if wakeupReady == "1" then fibaro:setGlobal("WakeUpReady", 0) -- Disable trigger for current wake-up time. -- check lux local currentLux = tonumber(fibaro:getValue(160, "value")) -- id 160 is sensors light device. -- If it's dark then start wake-up routine if currentLux < 20 then fibaro:debug("Illuminance measuring " .. currentLux .. " lx, starting wake-up routine.") fibaro:call(44, "setValue", "8") -- Spots keuken (8%) fibaro:call(29, "setValue", "5") -- Tafel eethoek (5%) fibaro:call(106 , "turnOn") -- Bolles (aan) fibaro:call(118 , "turnOn") -- Spot voordeur (aan) fibaro:call(156, "sendPush", "Started wake-up routine. Debug: " .. currentLux .. " lx") else fibaro:debug("Illuminance measuring " .. currentLux .. " lx, do nothing.") end ... DOWNLOAD MY SCENES COMPLETE LUA CODE You can download the full LUA scene code from GitHub: Scene 1: Wakeup.lua Scene 2: MotionRoutine1.lua You have to change the device id’s from my motion sensors in this scene to your own id’s! And don't forget to set the scenes to run automatic in the Fibaro Home Center 2
  5. Version 1.0.0

    246 downloads

    Icons for Philips HUE strip lights.
  6. Version 1.0.0

    59 downloads

    Outdoor version of Philips HUE GU10 bulbs.
  7. Version 1.0.0

    109 downloads

    Philips HUE GU10 indoor bulbs icons with new icon for unreachable bulb.
  8. Version 1.0.0

    58 downloads

    Philips HUE virtual device is revamped to version 2.0 check here: Here are icons for Philips HUE E27 outdoor bulbs to use with Philips HUE VD
  9. Version 1.0.1

    449 downloads

    Philips HUE virtual device is revamped to version 2.0 check here: Here are icons for Philips HUE E27 indoor bulbs to use with Philips HUE VD
  10. Hi, Is it possible to control Philips Hue with the Swipe? If so how can I fix this? Marlon
  11. Version 1.0.0

    83 downloads

    Here is my version of Philips HUE strip icons: turned off: turned on: I hope is ok. Cheers!
  12. Season holiday iscoming so I am happy to share the scene to control the VDs for PHILIPS HUE. That can be used not only for the color lights during holidays, but also for decorative light arrangement in the garden or wherever. The scene is controlling the VDs published by @Sankotronic here : The user settings is very simple. There are three parameters to be entered. 1. timeBRI is the value for the cycle of the brightness change 2. timeHUE is the value for the cycle of the hue cycle 3. lights ={} contain the IDs of the HUE lights to be controlled. I reccomend to experiment with different values and see the result of the "DYNAMIC RAINBOW" with your lights. -- BEGIN OF USER SETTINGS -- time for BRIGHTNESS cycle [ time units depend on number of lights ] local timeBRI = 100 -- time for HUE cycle [ time units depend on number of lights ] local timeHUE = 20 -- IDs of HUE lights VDs to be controlled local lights = {1240,1247,1249,1250,1251,1252,1253}; -- END OF USER SETTINGS The scene is running in the endless loop, so if you want to stop it, you have to press button on the scene icon GUI. DYNAMIC RAIBOW 1.01.txt UPDATE: There are quite interesting result if you run two instances of this scene at the same time :
  13. I understand that the plugin in HC2 is only to enable manual control of lights from the HC2 and from the Fibaro App. Are there any other ways I could include one or more hue lights into scenes? Any coding? Anything else before I have to throw a large investment I made in hue lights or instead the Fibaro one? Many thanks for your support.
  14. Hi everyone, It appears my hue lights are not responding to any scenes after the HC2 and hue hub had a power outage. is there an easy way to reset this? I dont want to create new bulbs with new device ID's because then i will ave to change all my scenes Thanks in advance!
  15. Hi all, Is it at all possible to make use of , add Philips Hue Dimmer switches as an device to the HC lite world? Would be great to make use of them...
  16. Is it possible to make Philips Hue lights blink in i.e. red in a scene, i.e. if a variable changes. The idea is something like this: https://youtu.be/53Vu0riatMQ?t=102 , when a door-sensor is not safe, a variable changes, and sets the alarm with blinking lights. When you change the variable back to safe, the alarm stops(a VD that changes a variable is explained several places). I was thinking of a door-sensor on a baby gate. I already have Philips Hue lights in that room and rooms nearby.
  17. Hi! Here is something I want to share with you all! You can control your new Android Philips TV with commands mentioned here: http://jointspace.sourceforge.net/projectdata/documentation/jasonApi/1/doc/API.html The only thing you have to change to get it working is to change the version number into 5. So if you want to GET the system instead of using http://ip-address:1925/1/system you use http://ip-address:1925/5/system ! Happy LUA coding!
  18. Could you guys help me to create a simple lua scene that could turn on HUE lamp and turn off this lamp ? There is no possibility to add hue widget on a home screen on Fibaro ipad app, so i thought that a solution could be a scene. Is there a possibility to add custom icon to this scene that can shows us if the hue is on or off ?
  19. Hello All, I have got a number of Philips Hue GU10 (color) spots sitting behind a dimmer2. I basically have these spots at a dim level of 100% at all times and use the Hue Plugin and scripts leveraging this plugin to control the dim level. It would be nice (ideal even) if I could attach a switch to S2 on dimmer2. Then capture dim levels from S2 to drive a scene that calls the Hue Plugin to pass on or synchronise the dim levels accordingly. I know how to set dim levels though the Hue Plugin, but have not been able to figure out how to capture dim levels from S2 on dimmer2. Is there anyone who could give me a pointer? I appreciate all the help you can give me! Cheers, Barry
×
×
  • Create New...