mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
fix: move only the tilt of a tilt-only shade for sun and wind
The three places that act on the sun and wind each set different targets for a tilt-only shade: the sun timer moved its lift, the no-sun and wind timers moved tilt and lift, a group's sun flag moved its lift and only a remote's sun flag moved its tilt. They now share sensorTargets(): a tilt-only shade moves its tilt to the favorite tilt (or fully) and back to 0, and every other shade its lift, as Up and Down already do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8276c1c3cd
commit
5f26340d06
5 changed files with 83 additions and 37 deletions
|
|
@ -134,6 +134,8 @@ class SomfyShade : public SomfyRemote {
|
|||
// Repeats for a tilt command, more for a separate tilt motor.
|
||||
uint8_t tiltRepeats() const;
|
||||
void runToLimit(int8_t dir, bool tilt, uint32_t since);
|
||||
// Sets the targets the sun or wind sends the shade to.
|
||||
void applySensorMove(SensorMove move);
|
||||
public:
|
||||
uint8_t roomId = 0;
|
||||
int8_t sortOrder = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue