Skip to content

1.1.0

Choose a tag to compare

@peternijssen peternijssen released this 17 May 20:47

What's new

  • Rich prize attributes — the prize sensor now exposes three new attributes:
    • prize_description — plain-text description of the prize, extracted from the Postcodeloterij website.
    • prize_more_info_url — link to the prize detail page on the Postcodeloterij FAQ.
    • prize_img_url — image of the prize, useful for rich push notifications.

Example automation

Use the new attributes in a notification:

action: notify.all_devices
data:
  title: "Postcodeloterij uitslag"
  message: "{{ state_attr('sensor.postcodeloterij_1234ab', 'prize_description') }}"
  data:
    clickAction: "{{ state_attr('sensor.postcodeloterij_1234ab', 'prize_more_info_url') }}"
    image: "{{ state_attr('sensor.postcodeloterij_1234ab', 'prize_img_url') }}"
    ttl: 0
    priority: high