{
  "format": "thendoo-template/v1",
  "id": "sleep-wind-down-routine",
  "name": "Sleep wind-down routine",
  "locale": "en",
  "templates": [],
  "habits": [
    {
      "key": "lights-down",
      "name": "Dim the lights in the room I'm in",
      "action_text": "Switch off the big light and turn on one lamp.",
      "cue": "When it's 9:30 pm",
      "trigger": {
        "type": "time",
        "at_min": 1290
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 1
      },
      "color": null,
      "icon": null
    },
    {
      "key": "tomorrow-ready",
      "name": "Set out what I need for tomorrow morning",
      "action_text": "Put my keys and bag by the door.",
      "cue": "After the lights go down",
      "trigger": {
        "type": "after_habit",
        "habit": "lights-down"
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 1
      },
      "color": null,
      "icon": null
    },
    {
      "key": "phone-away",
      "name": "Put my phone on the charger outside the bedroom",
      "action_text": "Plug it in, face down.",
      "cue": "After tomorrow's things are ready",
      "trigger": {
        "type": "after_habit",
        "habit": "tomorrow-ready"
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 1
      },
      "color": null,
      "icon": null
    },
    {
      "key": "wash-up",
      "name": "Wash my face and brush my teeth",
      "action_text": "Turn on the bathroom faucet.",
      "cue": "Once my phone is charging",
      "trigger": {
        "type": "after_habit",
        "habit": "phone-away"
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 1
      },
      "color": null,
      "icon": null
    },
    {
      "key": "read-paper",
      "name": "Read something on paper in bed",
      "action_text": "Open the book to where the bookmark is.",
      "cue": "After I've washed up",
      "trigger": {
        "type": "after_habit",
        "habit": "wash-up"
      },
      "schedule": {
        "kind": "daily"
      },
      "streak_rule": {
        "misses_per_week": 1
      },
      "color": null,
      "icon": null
    }
  ],
  "categories": []
}
