Skip to content

v1.6.24

Choose a tag to compare

@yashijoe yashijoe released this 10 Jun 10:56

What's Changed

Fix: forecast sensors — sensor_0=yesterday, sensor_6=today+5

Problem: sensor.rainmachine_forecast_condition_0 displayed "Today" instead of "Yesterday", and sensor_6 was always "unknown" with the wrong label "Today".

Root cause: the device does not include yesterday in mixerData[0]["dailyValues"] — only today through today+5. Yesterday's data is available via a separate endpoint /api/4/mixer/{date}.

Fix:

  • Added get_forecast_yesterday() in api.py: fetches /api/4/mixer/{yesterday}mixerDataByDate[0]
  • In _get_forecast_day(): restored original filter yesterday <= day_date <= yesterday+6, prepends yesterday from the separate endpoint
  • Fixed name fallback: when no data is available, uses self._index as delta instead of 0 (prevents empty sensors from showing "Today")
  • Reverts the incorrect window change introduced in v1.6.23

Sensor mapping after this fix:

Sensor Day Label
forecast_condition_0 yesterday Yesterday
forecast_condition_1 today Today
forecast_condition_2 tomorrow Tomorrow
forecast_condition_3..6 +2..+5 weekday name