Skip to content

Weather sensor changes

Choose a tag to compare

@Pythm Pythm released this 30 Mar 14:26
0da1239

Release Notes

What's Changed

Notification System Enhancements

  • Improved Notifications: The application now sends messages using the following format:
    self.notify_app.send_notification(
        message=f"No Window near {self.ADapi.get_state(self.heater, attribute='friendly_name', namespace=self.namespace)} is open and it is getting hot inside! {in_temp}°",
        message_title="Window closed",
        message_recipient=self.recipients,
        also_if_not_home=False
    )

Breaking change:

  • Recipient List Update: Notifications now send recipients as a list to optimize by making only one call to send_notification. Note: This change may affect custom notification apps.

Weather Data Integration

  • Removed Automatic Weather Sensor Detection: Users can no longer rely on automatic weather sensor detection.
  • Integration with ad-Weather App: Utilize the ad-Weather app for weather data. It offers additional features like dual outside temperature sensors and cloud coverage information.
  • Custom Weather App Support: Alternatively, create a custom app to send weather data. The app should trigger an event as follows:
    self.ADapi.fire_event('WEATHER_CHANGE',
        temp=self.out_temp,
        rain=self.rain_amount,
        wind=self.wind_amount,
        lux=self.out_lux,
        cloud_cover=self.cloud_cover
    )
  • Cloud Cover Feature: The weather app now includes cloud cover data to prevent screens from closing if cloud coverage exceeds 70%.

Temperature Sensor Improvements

  • Backup Indoor Sensor Temperature: A backup temperature sensor (backup_indoor_sensor_temp) is added for use when the main indoor sensor is unavailable or stale.
  • Sensor Staleness Handling: If the indoor temperature sensor remains stale for more than two hours, the application will automatically reload the configuration entry for the sensor.

General Improvements

  • Various optimizations and enhancements have been made to improve overall performance and user experience.