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

Universal Sensor (Window): "event dropped: unhandled event type: um01" #17

Closed Pe-MaKer closed 5 years ago

Pe-MaKer commented 5 years ago

Many thanks for the great work! Your proxy is a real help for me! Unfortunately there is still a problem when transmitting events: My Universal Sensor on the window sends either open, close or tilt. But the sensor (input boolean) in Home Assistant is never set correctly. Always closed.

Log

gigaset-elements-proxy version: "2.2.0"
nodejs version: v10.16.3
--------------------------------
[Fri Oct 18 2019 16:23:51] [INFO]   gigaset-element-proxy v2.2.0 is starting
[Fri Oct 18 2019 16:23:51] [INFO]   authorize on gigaset cloud api : starting
[Fri Oct 18 2019 16:23:53] [INFO]   authorize on gigaset cloud api : done
[Fri Oct 18 2019 16:23:53] [INFO]   server listening on http://localhost:8094
[Fri Oct 18 2019 16:23:53] [LOG]    sending actual state: Bürofenster | open
[Fri Oct 18 2019 16:23:53] [LOG]    sending actual state: Kinderzimmerfenster | unknown
[Fri Oct 18 2019 16:23:53] [LOG]    sending actual alarm mode: base | home
[Fri Oct 18 2019 16:24:23] [LOG]    acquired event: {"id":"4ab0e346c7dd3f194c5dca783c3d35783fb06440","state":"ok","ts":"1571408658288","type":"close","o":{"frontendTags":{"room":{"roomName":"Büro"}},"friendly_name":"Bürofenster","id":"0335ab9b16","factoryType":"umos","type":"um01","umosConfiguredType":{"mainType":"window","subType":"regular"},"room":{"id":38051,"friendlyName":"Büro"}},"source_id":"BB4BC9AAA262EEABA32021A066F0B043","source_name":"base","source_type":"basestation","state_pre":"ok"}
[Fri Oct 18 2019 16:24:23] [LOG]      event dropped: unhandled event type: um01
Fri Oct 18 2019 16:30:23] [LOG]    acquired event: {"id":"bdcfb10a0eb6bf39c33875f296fd45372eabc88e","state":"ok","ts":"1571409022083","type":"close","o":{"frontendTags":{"room":{"roomName":"Büro"}},"friendly_name":"Bürofenster","id":"0335ab9b16","factoryType":"umos","type":"um01","umosConfiguredType":{"mainType":"window","subType":"regular"},"room":{"id":38051,"friendlyName":"Büro"}},"source_id":"BB4BC9AAA262EEABA32021A066F0B043","source_name":"base","source_type":"basestation","state_pre":"ok"}
[Fri Oct 18 2019 16:30:23] [LOG]      event dropped: unhandled event type: um01
[Fri Oct 18 2019 16:30:53] [LOG]    acquired event: {"id":"d31e1aff4ebc95992e16672fa3be50bd0891dbb0","state":"ok","ts":"1571409051804","type":"open","o":{"frontendTags":{"room":{"roomName":"Büro"}},"friendly_name":"Bürofenster","id":"0335ab9b16","factoryType":"umos","type":"um01","umosConfiguredType":{"mainType":"window","subType":"regular"},"room":{"id":38051,"friendlyName":"Büro"}},"source_id":"BB4BC9AAA262EEABA32021A066F0B043","source_name":"base","source_type":"basestation","state_pre":"ok"}
[Fri Oct 18 2019 16:30:53] [LOG]      event dropped: unhandled event type: um01
[Fri Oct 18 2019 16:32:03] [LOG]    acquired event: {"id":"d5e1f30544a454e60104cd94a4d8923d92246404","state":"ok","ts":"1571409122267","type":"tilt","o":{"frontendTags":{"room":{"roomName":"Büro"}},"friendly_name":"Bürofenster","id":"0335ab9b16","factoryType":"umos","type":"um01","umosConfiguredType":{"mainType":"window","subType":"regular"},"room":{"id":38051,"friendlyName":"Büro"}},"source_id":"BB4BC9AAA262EEABA32021A066F0B043","source_name":"base","source_type":"basestation","state_pre":"ok"}
[Fri Oct 18 2019 16:32:03] [LOG]      event dropped: unhandled event type: um01
ycardon commented 5 years ago

Well, it's the same issue as https://github.com/ycardon/gigaset-elements-proxy/issues/16, I closed it because I had no feedback.

I added support for the um01 sensor type in the latest commit. It converts "open" and "tilt" to true and "close" to false. I hope it's ok for you.

Pe-MaKer commented 5 years ago

Thanks for that fast update! Fix confirmed:

Log
[Mon Oct 21 2019 16:19:19] [LOG]    acquired event: {"id":"285865be1b098cfe56083a3ddef869b04d1cc9bf","state":"ok","ts":"1571667556469","type":"tilt","o":{"frontendTags":{"room":{"roomName":"Büro"}},"friendly_name":"Bürofenster","id":"0335ab9b16","factoryType":"umos","type":"um01","umosConfiguredType":{"mainType":"window","subType":"regular"},"room":{"id":38051,"friendlyName":"Büro"}},"source_id":"BB4BC9AAA262EEABA32021A066F0B043","source_name":"base","source_type":"basestation","state_pre":"ok"}
[Mon Oct 21 2019 16:19:19] [LOG]    event sent as mqtt_topic: gigaset/Bürofenster, value: true
ycardon commented 5 years ago

:)