marmelatze / avea_bulb Goto Github PK
View Code? Open in Web Editor NEWnodejs POC to control avea bulb
License: MIT License
nodejs POC to control avea bulb
License: MIT License
This repository is called avea_node
In npm it's called avea_bulb
So for example in https://github.com/Alblahm/avea_node/blob/master/accessories/Sample_1Avea_EN_accessory.js you should embed this as avea_node
While in your repository https://github.com/Marmelatze/avea_server you require avea_bulb
I was having a hard time to understand that this is the same stuff but different names and branches.
What should this repository be called? I will try to create pull requests on the other repositories so they all use the name!
Greets, Sören
This issue is the second part of the closed issue #4 , it was too long.
Hi @Marmelatze,
first thanks for putting this on GitHub!
Did you find out how exactly the color is encoded. For example what does 35:e8:03:0a:00:94:00:a2:30:ff:2f:00:10
stand for exactly?
Hi, I just installed your avea_server and it fails to start:
`/usr/lib/node_modules/avea_server/index.js:23
const registry = new avea.Registry();
^
TypeError: avea.Registry is not a constructor
at Object. (/usr/lib/node_modules/avea_server/index.js:23:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
`
There is no mention of an avea.Registry, neither here nor in the version in the npm registry!
Is there any way to turn it on and off?
Additionally, I am converting the values from Brightness, Saturation and Hue to RGB, but I am not quite getting the same colors. Perhaps the White value is missing?
I've used this "avea_node" lib to create an accessory that works with the Homebridge NodeJS server inside a raspberry pi 2b with a usb bluetooth adapter. The pi-2b has the Kodi jarvis 16.1 installed. And I`ve installed also the NodeJS server.
In the raspberry-pi you can have the multimedia center connected to the tv, and running in background the homebridge service that remotely controls the elgato Avea light. By adding this accessory file to the homebridge, you dont need any other device (avea bulb<->raspberry). It directly connects to the light through the low energy bluetooth.
Due to the fantastic integration between homebridge and apple home app, you can also control this light using the siri voice commands on your iphone or ipad (if your device is in the same wifi network). It's great !!!!
The attached file is the corrected version after all the comments below...
Luz_VerticalComedor_accessory.js.txt
Yesterday I have a similar issue as you told in a previous comment. The homebridge was not able to reconnect and it dissapeared from the ios home app when you try to eliminate the node and add a new one. I've tried a lot of options to be sure of the problem, I recompiled the node addons, restarted the service, eliminated all the accesories, removed the temporary folders, and at the end I realized that the solution was as quite simple as change the username hex adress inside the Bridgecore.js and it works. It detects the bridge and you can once again add all the accessories connected to this Bridge.
But, to be sure, when it was working, I've tried to roll back, and use the old username, and it stoped working again, so that was clearly the reason. I dont know why, but I suppose that the ios home have some kind of cache that we cant clear.
So, if you have another time the connection problem try first this, and comment in this section.
Im going to create a new section with this kind of problems because, if not, this thread has a lot of mixed information.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.