gaetancollaud / digitalstrom-mqtt

Bridge between digitalSTROM and MQTT
GNU Affero General Public License v3.0
23 stars 4 forks source link

GE-KL200's state is not updating by physical switch #23

Closed tchatziliadis closed 2 years ago

tchatziliadis commented 2 years ago

Hello again, I recently purchased this device. Unfortunately, it's not working well. I can manage the device via MQTT, but whenever I turn on/off the lights by physical wall switch, MQTT does not update the status of the lights.

gaetancollaud commented 2 years ago

Hello,

I don't own this device so I cannot really test it. But for me, it should be pretty similar to the GE-KM200 which is supported.

I introduced a bug in version 1.4.3 that was fixed in 1.4.5 where devices' updates would not work. Maybe you have the version 1.4.3 or 1.4.4. If yes, can you try to upgrade, please?

If not can you set the LOG_LEVEL to TRACE (see readme), physically press the button, and post the log here, please?

tchatziliadis commented 2 years ago

I have already installed the latest version. Here are the logs:

2022-01-17T00:07:08Z INF Error error="Error with digitalstrom API: Event subscription token not found. *this:bcf9784f4f4913f3793879ceef2293a7bdcab8e27d4f558469654582d4b579fd token:42 m_subscriptions.size():0 condition:item != m_subscriptions.end() session.cpp:110 httpPath:/json/event/get"

2022-01-17T00:07:09Z TRC Response received status="500 Internal Server Error" url=https://192.168.1.173:8080/json/event/get?subscriptionID=42&token=bcf9784f4f4913f3793879ceef2293a7bdcab8e27d4f558469654582d4b579fd
tchatziliadis commented 2 years ago

Ok that was strange. I decided to remove the image from docker-compose completely. Then, I added again and now it's working. I don't know why, but the job has done ;) GE-KL200 is also supported!

gaetancollaud commented 2 years ago

thanks, I will add it to the supported devices list