Staijn1 / phos

Control your leds over wifi using a PWA Angular App
3 stars 0 forks source link

Correctly persist each room state #186

Open Staijn1 opened 1 month ago

Staijn1 commented 1 month ago

When selecting / deselecting rooms some weird stuff happens with the state.

An example, use Spotify integration and put two rooms into VuMeter mode. Then, put one room into VuMeter brightness mode.

Then you need to select both rooms again otherwise the FFT signal is not sent to the other room. When you do this, the VuMeter mode is selected again in state (but not sent)

When a new color is received because a new song started playing, this mode is now suddenly sent causing not only the colors to update but also the mode again.

Room states should be smarter to be more robust against switching