Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 8b8a864

Browse files
Fabrizio Mirabitoaentinger
Fabrizio Mirabito
authored andcommitted
Update local timestamp after setting values
1 parent 6886c7a commit 8b8a864

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types/automation/CloudColoredLight.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class CloudColoredLight : public CloudColor {
8282

8383
void setSwitch(bool const swi) {
8484
_value.swi = swi;
85+
updateLocalTimestamp();
8586
}
8687

8788
float getHue() {
@@ -90,6 +91,7 @@ class CloudColoredLight : public CloudColor {
9091

9192
void setHue(float const hue) {
9293
_value.hue = hue;
94+
updateLocalTimestamp();
9395
}
9496

9597
float getSaturation() {
@@ -98,6 +100,7 @@ class CloudColoredLight : public CloudColor {
98100

99101
void setSaturation(float const sat) {
100102
_value.sat = sat;
103+
updateLocalTimestamp();
101104
}
102105

103106
float getBrightness() {
@@ -106,6 +109,7 @@ class CloudColoredLight : public CloudColor {
106109

107110
void setBrightness(float const bri) {
108111
_value.bri = bri;
112+
updateLocalTimestamp();
109113
}
110114

111115
virtual void fromCloudToLocal() {

0 commit comments

Comments
 (0)