Giter Club home page Giter Club logo

devices's Introduction

diyHue - A Hue Bridge Emulator

Discourse JoinSlack Build Status



diyHueLogo



diyHue provides a Ecosystem for several Smart Home Solutions, eliminating the need for vendor specific Bridges and Hardware. Written in Python and Open Source, you are now able to import and control all your Lights and Sensors into one System.

Lightweight and resource friendly, to run on small devices like the RPi .... 24/7

The Best part? No Cloud connection by Design!

Enjoy your diyHue enlighted Home.

diyHue ecosystem

Stats

DockerPulls CommitActivity arm version badge arm-size-batch amd version badge amd size badge

Getting Started

All documentation and instructions can be found over at diyhue.readthedocs.io

Requirements

  • coap-client: i.e. via apt install libcoap2-bin
  • Python 3
  • Python modules: ws4py, requests, astral, paho-mqtt see requirements.txt
  • faketime: i.e. via apt install faketime

or

  • Docker

Recommendation - minimal setup

You need a System that can run the python script or Docker Image 24/7!

Emulator Lights App
RaspberryPi 3B WS2812 Strip + Wemos D1 mini Board Hue Essentials (iOS & Android)

Working diyHue features

Functions Devices Apps Lights Smarthome
Control lights (all functions) Amazon Alexa (control only the lights) Hue Essentials WS2812B and SK6812 smart led strips Home Assistant
Control groups (all functions) Deconz (Conbee 1 & 2) Hue App Phillips Hue Openhab
Scenes (all functions) Trådfri Gateway hueManic Ikea Trådfri Jeedom
Routines Hue Bridge (original + other emulators) Kodi Hue Ambilight Yeelight Domoticz
Wake up Logitech Harmony OnSwitch MiLight Home Assistant Add-on
Go to sleep Philips Ambilight TV's LampShade Hyperion.ng
Switches (custom esp8266 switches) Hue Sync for PC MQTT lights see mqtt
Autodiscover lights HueSwitcher any PWM(CCT, RGB, RGBW) incl. Dimming
Hue entertainment On/Off 433Mhz devices (multiple devices for every esp8266)
LYT8266
WLED

Support

All documentation and instructions can be found over at diyhue.readthedocs.io

If you need help with diyHue you can get support from other users, aswell as the maintainer.

Please use GitHub, Slack or Discourse, other platforms are not checked by the maintainers.

Slack JoinSlack SlackStatus

Use Slack for a general chat or fast live support.

However: Since Slack is faster at providing live Support but not as good when it comes to save and show known Issues, we kindly ask you to open a Topic at our Discourse group. This will provide Help for others in the future.

Discourse Discourse

Our Board might already have your fix and answer ready. Have a look!

General Note: Please provide some Logs to make it easier for all of us. Enable Debug by manually starting diyHue with additional --debug true argument.

Stability

Starting in Dec. 2020 we will introduce one Master and one Dev Branch. The Master will have the most stable code.

If you want to tinker and experiment you can try the dev Branch. Active development will take place here.

You want to get the latest features? Try the experimental Branch. Use at own Risk!

Please post on our Slack team any other device/application that you find to work with this emulator.

Contribute

diyHue is Opensource and maintained by volunteers in their free time. You are welcome to contribute and become a recognised member of the diyHue community. Feel free to add PR and Commits to our Dev Branch. If you are experienced in

  • Webdesign
  • Python
  • Arduino
  • Coding in general

We highly appreciate your support, making diyHue even better!

Support

diyHue is and will be Free to use. However it does take a lot of time to maintain the code etc etc.

Long story short.... you can support us at Ko-Fi

ko-fi

Thank you very much!

Credits

Additional Projects and Ideas

Hue living color light project for 3D printing: Thingiverse 2773413

License

license

devices's People

Contributors

bb-benbridges avatar cad435 avatar jellewie avatar mariusmotea avatar nikfinn99 avatar philipphunger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

devices's Issues

Hue Dimmer switch

Hi,
Do I understand right, that it is not possible to use the Philips Hue Dimmer?

Thanks
Hyper

Bridge to Home Assistant

The documentation mentions "Home Assistant" as one of the supported devices.

Is it possible to use diyhue as a bridge to emulated_hue on Home Assistant? That would be useful in case where a Logitech Harmony Hub is on a network different from Home Assistant, and would forward the requests.

If that would be the case - what is the right configuration?

Button index wrong

Nice little sketch!

I only found a small issue:

digitalRead(Button[1]) == HIGH or digitalRead(Button[1]) == HIGH) //If button 2 or 3 is pressed (Maybe user didn't want OTA?)

this should be:

if (digitalRead(Button[1]) == HIGH or digitalRead(Button[2]) == HIGH) //If button 2 or 3 is pressed (Maybe user didn't want OTA?) 
``

Use Philip switch with emulated Hue

The docs mention ways to create your own switch and motion sensor that work with the emulated Hue.
https://diyhue.readthedocs.io/en/latest/AddFuncts/sensors.html#switches

I was unable to find documentation for connecting an actual Hue Switch to the emulated Hue. "Accessory setup" on the Hue App is unable to find this switch. It tested the switch against an actual Hue and the App was able to set it up.

Any guidance would be appreciated. I tried restarting the docker container emulating the Pi in case the config file needed to get updated.

Registering HueTapSwitch to hub (ESP32)

It seems that the 'Devices/HueTapSwitch/ESP32' isn't always registering the device correctly.
It seems to lag, (stuck in the "register device" part) and then time-out, nothing appeared in the app.
Looking at the code (copied from the ESP8266 version) I find a few things that need to be looked at (I don't have the time ATM)

Notes

  • "client.connect(bridgeIp, 80);" is called twice
  • no 'client connected' check, (it should go into error mode when it can't connect, or something)
  • the HOST gives 'done' back when successful. this should be read and processed in my opinion (not sure how)

You can do it manally like this: (replace the things in betwen [])
[bridgeIp]/switch?devicetype=[switchType]&mac=[mac]
Like:
http://192.168.1.1/switch?devicetype=ZGPSwitch&mac=11:11:11:11:11:11

Cant connect Hue Dimmer Switch to Emulator

Hello!

First of all, i appreciate your work on this project. I have some issues connecting deconz to the emulator. Whenever I go to the phoscon web-app i first connect the dimmer switch, then remove it. Afterwards i go to gateway-settings and click 'authenticate app'. When i then browse to 'my_ip/deconz' i get an empty response. At this stage, i am able to visit the main emulator-page, but when i force a restart via ssh, i cant get any access to the webpage anymore (error_connection_refused). Phoscon webpage still reachable, so is ssh. This is really frustrating, cause, for now, the only way to get it working again is to freshly install the system onto the card.

Anyone here with the same issues? Any help appreciated :)

ESP8266 Siren/Alarm REST API help

Great work here, I saw that you did not have ESP8266 based siren/alarm checked off from your todo list. I have https://github.com/debsahu/HASirenMQTT that works with MQTT and very minimal REST and WebSocket API. In order to get this to work with DIY Hue, could you point me to resources to get the REST API in correct format for an alarm?

Two state (double) wall switch

HI!

How would you do it with a regular two state wall switch? I.e. short pulse to pull down RST on both the ON and OFF side.

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.