diff --git a/Somfy.cpp b/Somfy.cpp index 5aca6c9..2678dbd 100644 --- a/Somfy.cpp +++ b/Somfy.cpp @@ -1112,6 +1112,15 @@ void SomfyShade::processFrame(somfy_frame_t &frame, bool internal) { break; case somfy_commands::SunFlag: this->flags |= static_cast(somfy_flags_t::SunFlag); + + if (!(this->flags & static_cast(somfy_flags_t::Windy))) + { + if (this->flags & static_cast(somfy_flags_t::Sunny)) + this->target = 100.0f; + else + this->target = 0.0f; + } + this->emitState(); break; case somfy_commands::Up: