Use remote_values instead of saved_light_values_
This commit is contained in:
@@ -50,7 +50,8 @@ void AppStatus::publish_status_(uint8_t status) {
|
|||||||
call.perform();
|
call.perform();
|
||||||
} else if (this->last_status_ != 0 && status == 0) {
|
} else if (this->last_status_ != 0 && status == 0) {
|
||||||
auto call = this->light_->make_call();
|
auto call = this->light_->make_call();
|
||||||
call.from_light_color_values(this->saved_light_values_);
|
//call.from_light_color_values(this->saved_light_values_);
|
||||||
|
call.from_light_color_values(this->light_->remote_values);
|
||||||
call.set_transition_length(0);
|
call.set_transition_length(0);
|
||||||
call.set_publish(false);
|
call.set_publish(false);
|
||||||
call.perform();
|
call.perform();
|
||||||
|
|||||||
Reference in New Issue
Block a user