gaetancollaud / digitalstrom-mqtt

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

MQTT cannot fetch new values for groups #24

Closed tchatziliadis closed 2 years ago

tchatziliadis commented 2 years ago

I have 2 problems.

  1. I have created a group on digitalSTROM Configurator, with some lights and a push button. To be more specific, this group contains one input of a SW-TKM200 and 4 outputs of a GE-UMV200 (control of a RGBW ledstrip). So, whenever I push a wall button switch, the brightness of 4 outputs go to 100% or 0%. This works great! The problem is that mqtt cannot fetch these values.

  2. After the last updates of your code, I have problems with two of my covers. MQTT cannot fetch the new values by pressing the wall switch, but only for covers which are members of a group.

So, I think that both of these two problems have a similarity, which is groups.

Screenshot 2022-01-23 at 12 59 24 PM Screenshot 2022-01-23 at 12 59 09 PM
tchatziliadis commented 2 years ago

It's definitely an issue related with groups, because I tried to create a room and not a group and it seems with rooms is working as it should.

gaetancollaud commented 2 years ago

Hello @tchatziliadis,

It's true that I check only for zone (room) updates (It's an optimization because asking for the state of a device is time-consuming, so I cannot refresh all the devices every time). But I should also look into groups.

I will see if I have a bit of time this weekend to setup a group and try to make it work.

Thanks for the feedback.

gaetancollaud commented 2 years ago

Ok, sorry for the long delay. So I investigated a bit and it seems possible to retrieve the groups of each device. And when a group event is fired I could update the status of all the devices that are in this group. The issue is that I would have to refresh this information from time to time (in case you change the group in the config of digitalStrom). Because requesting it every time is way too costly.

I will see if I can come up with a solution.

gaetancollaud commented 2 years ago

@tchatziliadis I release the version 1.4.7 can you have a look please.