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

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

  1. For the Philips Hue lovers there is cheap Osram Lightify Smart Plug, which can be easily added to Philips Hue bridge in order to make non Hue lamps controlled by Hue bridge. I made a simple small VD based on @Sankotronic's Hue devices. ----------------------------------------------------------------------------- -- Osram Smart Plug On/Off ----------------------------------------------------------------------------- --[[ ----------------------------------------------------------------------------- Version 1.0 Original VD written by CHRISSXCROSS © 2015 VD modified and upgraded by Sankotronic © 2016 ----------------------------------------------------------------------------- --]] local _f = fibaro local hueID = 40; -- get name of the user from global value local hueUser = _f:getGlobal('HueUser'); local iconOff = 1226; local iconOn = 1227; local iconUnreachable = 1012; local iconError = 1013; -- END OF CODE PART FOR USERS TO EDIT AND SETUP -------------------------- Id = _f:getSelfId() Ip = _f:get(Id, "IPAddress") Port = _f:get(Id, "TCPPort") -- connect to the Hue bridge Hue = Net.FHttp(Ip, Port) -- Now do light, get previous settings and send new -- HTTP GET to get all the info from the light(s) resp ,stat , err = Hue:GET('/api/'..hueUser..'/lights/'..hueID); -- continue if HTTP status code is 200 if (tonumber(stat) == 200) then jT = json.decode(resp) -- get the on state hueOn = jT.state.on _f:debug("hueOn = " .. tostring(hueOn)); hueReachable = jT.state.reachable _f:debug("hueReachable = " .. tostring(hueReachable)); -- if light is reachable then check if it is ON or OFF to toggle it if (hueReachable == true) then if (hueOn == false) then hueOn = true; ic = iconOn; else hueOn = false; ic = iconOff; end -- HTTP PUT to set the new values resp, stat, err = Hue:PUT('/api/'..hueUser..'/lights/'..hueID..'/state', '{"on":'..tostring(hueOn)..'}'); _f:call(Id, "setProperty", "currentIcon", ic); else _f:log("Hue: Unit not reachable"); -- change the icon to unreachable _f:call(Id, "setProperty", "currentIcon", iconUnreachable); end else _f:log("Hue: Bridge not reachable"); _f:call(Id, "setProperty", "currentIcon", iconError); end I hope someone will have use for it
  2. Hello all, I need help with this HTTPS call: STEP 1: Receive the Security Token METHOD: URL: HEADER: BODY: RESPONSE BODY: POST https://eu.lightify-api.org/lightify/services/session { “Content-Type“ : “application/json“} {"username" : “[email protected]“, "password" : „your-password", "serialNumber" : "OSR0xxxxxxx"} { "userId": "123456", "securityToken": "123456-abcdefghijklmnopqrstuvwxyz123"} STEP 2: Use the Security Token METHOD: URL: HEADER: GET https://eu.lightify-api.org/lightify/services/group/set?idx=2&onoff=1 { “Content-Type“ : “application/json“; “authorization“: "123456-abcdefghijklmnopqrstuvwxyz123"} I know that this can't be done from VD but how to code this in LUA scene? Thank you!
×
×
  • Create New...