mawinkler / astroweather

Asynchronous Astro Weather Forecast for Home Assistant
GNU General Public License v3.0
78 stars 9 forks source link

Template requires quotes for the time #45

Closed mikewagnercmp closed 10 months ago

mikewagnercmp commented 1 year ago

Hello, My image was not always updating, I did a little googling, and other template examples I saw had quotes around the time frame like shown below - I am not sure either way as I am not a HA expert, but, when i did this, my image started reliably updating, rather than only when i reloaded HA.

template:
  - trigger:
    - platform: time_pattern
      # This will update every ten minutes
      minutes: "/10"
  - image:
    - name: UpTonight
      url: http://192.168.1.16:8123/local/uptonight-plot.png
mawinkler commented 12 months ago

Actually not. Even Home Assistant itself doesn't use quotes in this case.

In general, you don't need quotes.

/ is not a special character.

Example of a generated automation by Home Assistant:

- id: '1701330965636'
  alias: huhu
  description: ''
  trigger:
  - platform: time_pattern
    minutes: /10
  condition: []
  action:
  - service: notify.telegram
    data:
      message: huhu
  mode: single
mawinkler commented 10 months ago

closing