Skip to content

v0.5.0-experimental

Pre-release
Pre-release
Compare
Choose a tag to compare
@wernerhp wernerhp released this 15 Jul 22:36
· 62 commits to master since this release

This release is experimental. Things could break if new stage schedules come out. If that happens, I recommend you roll back to v0.4.1.

  • Updated to latest version of load-shedding
  • Add next_stage, next_start, next_end and forecast attributes to stage sensor
Code
type: markdown
content: >
  {% set stage_forecast = state_attr("sensor.load_shedding_stage", "forecast") %}

  <table width="100%"  border=0>
    <tbody>
    <tr>
      <td width="10%"><ha-icon icon="mdi:calendar"></ha-icon></td>
      <td align="left" colspan=2>Stage Forecast</td>
    </tr>
    {% for f in stage_forecast[:3] %}
    <tr>
      <td></td>
      <td align="left">{{ as_timestamp(f.start_time) | timestamp_custom("%-d %B", True) }}</td>
      <td align="left">{{ as_timestamp(f.start_time) | timestamp_custom("%H:%M", True) }} - {{ as_timestamp(f.end_time) | timestamp_custom("%H:%M", True) }}</td>
      <td align="right">{{ f.stage }}</td>
    </tr>

    {% endfor %}
    </tbody>
  </table>

image

If you find this integration useful, please consider buying me a coffee or sending me some Bitcoin.

Buy Me A Coffee

image
Bitcoin: 3EGnQKKbF6AijqW9unyBuW8YeEscY5wMSE

ℹ️ NOTE:
If something doesn't work, please uninstall the integration, remove it from HACS reboot Home Assistant, then reinstall from HACS and setup the integration.

Full Changelog: v0.4.1...v0.5.0