Hey @N1c093
this is pretty cool. I also just started to look into getting Divera into HA. Unfortunately I don’t know a lot about using the API etc. My main goal was actually to display the current personal status and also set the status with HA automations. It should be pretty easy, as Divera offers a URL to set the status. Unfortunately the URL doesn’t seem to work. Any idea why that is?
I am talking about the URL you can retrieve in the „Statusgeber“ tab when logged into the Divera web interface. Doesn’t work as a rest command on HA and also not via IFTTT or just the browser.
Seems like this would be possible via the API as well, but I don’t know how to get it into HA.
Sadly I don’t know, why your status URL doesn’t work. The URL should work in any webbrowser.
Maybe you can contact divera support.
Reading current status
I looked into the api, but reading out the current status seems to be more difficult, because there isn’t any special API endpoint for it. You can read out your current status with this API: Divera API - Pull
Maybe you can try it yourself. Otherwise I can have a deeper look into it and write down a short guide.
thanks for the quick and helpful response. I tried again today and my URLs are working fine, not sure why that wasn’t the case when I first tried, as I haven’t changed anything.
Regarding reading the status. I’ll have a look into the API. But so far I am already happy about getting the Statusgeber to work. As I will actually mainly use this to set the Status, I can also create a “current status helper”, which will be changed with an HA automation. Not ideal, but for my uses case it should be pretty accurate.
I am new to HA, so please be patient with me. I would like to show all the informations of an alarm on my Dashboard. I know how to display single sensors, but that only shows the alarm keyword (“Stichwort”). See my screenshot for reference:
how can I display the text and maybe a map with the address of the alarm, when an alarm occurs? Thanks in advance
how nice that there are a few like-minded people here.
Until a few weeks ago, I still have not found a post on this topic here.
I had already started with the “rest sensors”, but they did not meet my expectations.
Therefore, I am currently trying to develop a Divera integration.
I already know Python, but the actual HA development is still very new to me. That’s why it’s going slowly.
My own goals are actually the following:
Representation and setting of the own status (sensor and service)
Representation of alarms (probably only the last one)
Representation of vehicles + status
For further ideas and an exchange I am always available.
Hello @N1c093
when the integration has reached a stable state, I will share it here.
I would find it great if there are still people who could support me in the development.
In the beginning, there will certainly be plenty of errors to find. Also the documentation will probably still require some effort.
Therefore help in any form is welcome.
hello all,
the really first version of the divera integration is released.
This is a beta release and the development of my first integration.
There are some bugs and inaccuracies that can not be excluded.
Please forgive me for this.
At the beginning there are two sensors included.
The first to the last alarm.
The second to the current status of the user.
The goal is to add more sensors and device trackers for vehicles as well as the alarm-location.
In addition, a service to set the status for the user should come to be able to respond automatically to alarms.
Further ideas are welcome.
great work. I just tested the integration a few days ago. I noticed that the alarm sensor isn’t created and there are some errors/warnings inside the ha-log. Are you aware of these problem? Should I create an issue on github or is it to early for it?