Comments (12)
Hi,
Where I can find some sample code to get me started.
It would be great to put it in README doc for other to use this package.
I could create something like that if you are OK with it.
I now have API key and can connect to my gateway check sensors etc, but wondering how I could use your code.
Please advise.
Thanks
Feel free to contribute 👍🏻
I think improving the main file is a good way to show case how to set up the basics of the integration. I can probably do that within the next few days.
If you want to delve deep into it everything is done to work with Home Assistant so you can look at the deconz integration to get inspiration. https://github.com/home-assistant/core/tree/dev/homeassistant/components/deconz
from deconz.
You will laugh, the default user and password was the ones in your main code, both are
delight
, I though it was something you set previously, i am getting the apikey without problems.Thanks a lot
Great! It was so obvious I didn't think I'd need to ask the question 😂
from deconz.
Rest API documentation: https://dresden-elektronik.github.io/deconz-rest-doc/endpoints/configuration/
Make a new method similar to initialize which calls request with
await self.request("put", "/config/", json={"permitjoin": 60})
Note this is untested and might not work
Line 66 in c89a33b
from deconz.
Thanks it was a very useful help,
Now i am facing a problem, I am trying to use the basic authentification, but it is reporting always user and password is not recognized. I saw in your main.py that you comment the user and pass in kw, have you had problems with it?
Line 39 in c89a33b
Later I tested to get into Conbee II thought Web App
I am getting always an error:
I am using the same pass than in Phoscon APP where I have no problem. I am doing something wrong...
from deconz.
I should probably improve the main a bit :), what you should do is generate an api key
Line 13 in c89a33b
In Phoscon you should open up for pairing of third party applications and then use the async_get_api_key function
from deconz.
I was expecting not to use the pairing :(, but in any case thanks a lot...
from deconz.
If you get your credentials right it's just a matter of altering this line with the basic auth parts from async_get_api_key, unfortunately I stopped using the credentials a couple of years ago but it should still work
Line 99 in c89a33b
from deconz.
Thanks, I think the problem is the user not the password, but don't know how to get the proper one, I will keep you updated in any case.
from deconz.
You will laugh, the default user and password was the ones in your main code, both are delight
, I though it was something you set previously, i am getting the apikey without problems.
Thanks a lot
from deconz.
Hello,
I have one more question, is it mandatory to run up the deconz software to use the discovery function?, as if i have not this software running i am having allways "[ ]" as response.
from deconz.
No the discovery function is a helper function in cases where you don't have full knowledge of the system or want to provide a better user experience
from deconz.
Hi,
Where I can find some sample code to get me started.
It would be great to put it in README doc for other to use this package.
I could create something like that if you are OK with it.
I now have API key and can connect to my gateway check sensors etc, but wondering how I could use your code.
Please advise.
Thanks
from deconz.
Related Issues (20)
- Additional lighting effects and control HOT 2
- Expose CLIPGenericFlag sensors from deCONZ as switches to Home Assistant HOT 1
- Support for Philips Hue wall switch module HOT 4
- Deconz integration test issue HOT 1
- Add support for "Range extender" light type HOT 2
- Stuff to clean up from typing HOT 1
- Expose all available attributes of thermostat to HA bundled as device HOT 2
- 'requirements.txt' is missing in Pypi's SDIST since v90 HOT 3
- Feature request: expose more IKEA Starkvind functions to Home Assistant HOT 44
- Support events for Philips Tap Dial Switch HOT 31
- Feature request: expose more Aqara FP1 functions to Home Assistant HOT 5
- Device IP snippets
- Sensors are added to deConz but are not appearing in HA HOT 8
- Styrbar Automations deleted after update to 2023.1 HOT 2
- Smart plug consumption sensor "state is not strictly increasing" in HA HOT 1
- Legrand netatmo thermostat entitie doesn't work
- Unsupported device type ZHAParticulateMatter HOT 5
- Unknown devices for air quality HOT 4
- IKEA badring (Water Leak Sensor) HOT 1
- deCONZ entities: current or voltage are not created in HA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deconz.