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 support for um01 device #16

Closed nikolaus-online closed 5 years ago

nikolaus-online commented 5 years ago

Hey man,

first of all, thank you very much for your effort and your nice Proxy! I've used it for several weeks now on my openhab Pi without any problems.

Now I have migrated it to a Ubuntu-Server and recreated the service. But it seems not to work when an Item changes its state. Whenever I initialize it, it will work correctly - but when the state of an item changes, it throws an error.

Sep 24 21:49:20 openhabian node[4518]: [Tue Sep 24 2019 21:49:20] [LOG] acquired event: {"id":"1bac04c426e8030c2dde739b999da8868961c398","state":"ok","ts":"1569354557723","type":"open" Sep 24 21:49:20 openhabian node[4518]: [Tue Sep 24 2019 21:49:20] [LOG] event dropped: unhandled event type: um01

Can you point me in the right direction?

ycardon commented 5 years ago

Well it seems that you have a kind of equipment um01 that is new to me (you can check the list of supported devices in the README.md table).

I can do some changes if you want but you'll have to tell me more: extract some samples of these events, get the device description... and do some testings because I will be blind.

Meanwhile you can try to change the allow_unknown_events to true in the config/default.yaml file.

ycardon commented 5 years ago

you can refer to https://github.com/ycardon/gigaset-elements-proxy/issues/11 issue to get an idea of what informations are needed.

nikolaus-online commented 5 years ago

Hey ycardon,

it seems to be related to the service I generated for it. When I run the app.js from the terminal it works without any complaint. It wasn't any problem on my raspberry, it seems to be a problem using ubuntu.

nikolaus-online commented 5 years ago

Well it seems that you have a kind of equipment um01 that is new to me (you can check the list of supported devices in the README.md table).

Nah, it's a simple window sensor I used for testing. And it worked flawlessly until I migrated the system to ubuntu.

ycardon commented 5 years ago

So it is outputting the same event dropped: unhandled event type: um01 message whenever ANY states changes on ANY device, right ?

Apart from this message, do you have some device working ?

  1. could you try switch the allow_unknown_events| to true in the config/default.yaml file ? do you see this message again ?
  2. could you point to the <my server>:port/api/v1/me/basestations URL to see the RAW gigaset API describing all your devices. Is there a um01 type device ?

My guess is that:

Of course I can be wrong, please provide me more info.

ycardon commented 5 years ago

second reading :

When I run the app.js from the terminal it works without any complaint

now this is strange... maybe your service does not start in the correct directory, or with the right user. Do you have any authentication errors in the firsts steps ?

ycardon commented 5 years ago

third reading :)

Whenever I initialize it, it will work correctly - but when the state of an item changes, it throws an error.

could you get the corresponding event on the <my server>:port/api/v2/me/events RAW gigaset API ?

ycardon commented 5 years ago

can I close this issue ?

ycardon commented 5 years ago

same as https://github.com/ycardon/gigaset-elements-proxy/issues/17, now corrected.