My Duty rota feed

This is your own personal feed. My Duty sends your rota here after each sync, and your widgets and Home Assistant read it from here. Your DAS-Web ID and password are never sent.

1. Put it in My Duty

In My Duty open Settings, then Rota feed (advanced). Enter this feed address and your write key, then Save.

2. Fill in your read key

Typed here only to fill in the examples below. It is not sent anywhere.

Home Assistant (checks once a day at 6am)

Add the key to secrets.yaml as rota_feed_key. Then in configuration.yaml:


And an automation that refreshes the sensor at 6am:

automation:
  - alias: Refresh rota feed
    trigger:
      - platform: time
        at: "06:00:00"
    action:
      - service: homeassistant.update_entity
        target:
          entity_id: sensor.rota_today

Use states('sensor.rota_today') for today and the text attribute for the whole week.

Android home screen widget

Use a widget app that can read a web address, such as KWGT, and point it at:

Useful fields: today.text, tomorrow.text, text (the whole week). Steps differ by app and version.

iPhone home screen widget

Install the free Scriptable app, create a new script with this, then add a Scriptable widget to the home screen and choose the script:


Calendar

You can subscribe to in a calendar app. Calendar apps only refresh subscriptions every few hours, sometimes about once a day, so a widget is better for the current week.

Keep it private

Anyone with the read key can see when you are working. Keep it out of screenshots, and if it leaks, change READ_KEY in the Cloudflare project settings.