Giter Site home page Giter Site logo

bluetooth-lamp's Introduction

python expect script for BLE lamp

scope

I have an LED lamp by Paulmann where the brightness and colour temperature are adjustable with either a smartphone app or a dedicated remote control. When switching it off and on, it loses its state and resets to max brightness / min colour temperature. If I wanted to enjoy 2700 K, I would have bought candles.

I don't think a telephone is a suitable HID for a lamp and long term support is an open question. I also don't want an additional piece of hardware lying around. In either case, resetting the colour temperature whenever switching a lamp on is inconvenient. Very. Instead, it would be nice to automatically follow a colour profile during the course of a day (higher temperature during daytime / early evening and lower towards the late evening). This should happen automatically, for example using a cron job.

usage

After setting the correct lamp address and pwd:

./bluetooth-expect.py <brightness> <colour temp>

where the brightness is an integer between 2..100 and the colour temperature is an integer between 2700..6500 (even though the box says 2700..6000).

issues

The lamp seems to be extremely sensitive towards multiple open connections. It can be required to close + exit the telephone app to avoid interference.

bluetooth-lamp's People

Watchers

 avatar

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.