-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for sensors and fixed get values for characteristics On and Brightness #11
Conversation
Hi, I'll look at you changes during the weekend, in the meantime I have one question for you. What is this "Skalskydd" at line 186 and why is it located under "selflearning-dimmer" (line 185) with SecuritySystem as the service? |
Hello, Characteristic.SecuritySystemCurrentState.STAY_ARM = 0; /Mats
|
with this EA4C addition my temp sensor finally works! But It could probably be better implemented... See below for the data for my temp sensor: ´´´ {"sensor":[{"id":"2227001","name":"Utetemp","lastUpdated":1458594078,"ignored":0,"client":"130828","clientName":"Torodd1","online":"1","editable":1,"battery":253,"keepHistory":0,"protocol":"oregon","model":"EA4C","sensorId":"141"}]} ´´´
added one more temp sensor model
@jchnlemon Do you mind merging in these changes? And can you open-source this project? Right now this is rotting on github, while users need to download a fork to make it work! |
Devices that are not auto detected, can be included in config.json. For example: "unknown_accessories": [ { "id": 123456, "model": "selflearning-switch", "manufacturer": "Nexa" } ] Also make code more robust and easy to follow by using promises. Don't turn on dimmer if already on (prevents problems when dimming) Because homekit sends both Brightness command and On command at the same time. More descriptive message when unknown device is encountered. Made code more modern by using node v4 features. REQUIRES NODE >=v4
Support unknown devices
Caused two of the same sensor type to fail
Fix bug introduced during refactoring
Temperature and humidity sensors, either combined or separate, are now added as accessories.
Return values are now fixed for On and Brightness and a combination of those.