ycardon / gigaset-elements-proxy

a simple web and MQTT bridge with gigaset-elements APIs (no more maintained)
GNU General Public License v3.0
18 stars 5 forks source link

Add smoke detector #11

Closed sracing closed 5 years ago

sracing commented 5 years ago

The proxy in a great way closes the painful gap of Gigaset not offering a API for its system. I´m using it for my integration into SmarthomeNG (along with KNX, Zigbee and MQTT).

The sensors all work, except the 'smoke' detector from Gigaset Elements does not connect. I see from the code that it is not yet considered.

Since I am not very familiar with programming, but could provide input on how the 'smoke' detector is managed in the base, would you be interested to add that function as a enhancement?

ycardon commented 5 years ago

It seems that we can't get the smoke detector status by the /basestations API. The gigaset-proxy is sending a default state on startup, assuming there is no smoke detected... I'm afraid we we can't do better.

Can you give it a try in v2.1.1 ?

h4nc commented 5 years ago

I just updated to 2.1.1.

Now the sensor state is default, which is great.

But I can’t tell yet how it reacts to restarts of ha or other things like an alarm (will it automatically go back to default).

h4nc commented 5 years ago

After a restart of ha it goes to unknown and after some seconds it goes back to default.

So that works fine too. I thinks it’s fine like this now. Thanks!

Edit: you said it sends a “default value at start up of the proxy”. Could you add this to the “force refresh” too.

Maybe you already did and this is the reason why it went back to default (automation that is triggered after restart triggers “force refresh).

ycardon commented 5 years ago

Maybe you already did and this is the reason why it went back to default (automation that is triggered after restart triggers “force refresh").

You are right: initial status and force refresh share the same code. I'm closing the issue \o/