Git Product home page Git Product logo

loxone-hue-picoc's Introduction

logo

HitCount Code Smells Maintainability Rating Security Rating Bugs Vulnerabilities Duplicated Lines (%) Reliability Rating Technical Debt

loxone-hue-picoc

A PicoC script to control Philips Hue lights from a Loxone Miniserver. Using this solution it is not necessary to rely on a thirdparty bridge to translate between the Miniserver and the Hue Bridge.

Note

Unfortunately this PicoC code can only send commands to the Hue system. Is is however not possible to receive events from the Hue system. Have a look at the repo hue-to-loxone if you also want to receive events from your Hue system.

Getting Started

Follow these steps to get the PicoC script working:

  • Generate a Philips hue API key. This blog entry describes how to do this.
  • Enter the ip address and Hue API key in the PicoC script.
  • Get a list of all the id's of the lights connected to your Hue bridge. Go to: https://<bridge-ip>/api/<api-key>/lights. This will show a json file with all the id's.
  • Enter all the id's and device types you want to control in the PicoC script.
  • If you exceed the 13 devices limit, you can ether use Hue groups https://<bridge-ip>/api/<api-key>/groups, or you can run up to 8 PicoC scripts simultaneously on the Loxone Miniserver.

License

Released under the MIT License, this code is yours to command! πŸš€ Modify it, tweak it, use it to your heart's content. Let's create something amazing together! πŸ’»πŸŒŸ


SonarCloud

loxone-hue-picoc's People

Contributors

marcelschreiner avatar

Stargazers

 avatar  avatar  avatar  avatar

loxone-hue-picoc's Issues

Questions about Hue light types and configuration

Thank you very much for your excellent script!

I have a few questions to clarify the details. Could you please confirm if the mapping between my Philips Hue model IDs and the bulb types in your PicoC program is correct? Specifically, I'm uncertain whether to select TYPE_SINGLE_DIM or TYPE_SINGLE_TUNABLE, as I don’t fully understand the difference.

Model ID Product Type Type in PicoC program
LCA001 Hue color lamp Extended color light TYPE_SINGLE_RGB
LCL001 Hue lightstrip plus Extended color light TYPE_SINGLE_RGB
LCT015 Hue color lamp Extended color light TYPE_SINGLE_RGB
LOM002 Hue smart plug On/Off plug-in unit TYPE_SINGLE_ONOFF
LWA004 Hue filament bulb Dimmable light TYPE_SINGLE_DIM
LWO001 Hue filament bulb Dimmable light TYPE_SINGLE_DIM

For the Lighting Controller in Loxone Config, could you please confirm if we should use "Lumitech DMX" as the lighting type, or is there a different setting we should apply?

Lastly, I noticed that the Hue smart plug is listed among the lights on the Hue bridge. Does this mean we can also control it through your program?

Thank you for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.