macinjosh

meds 2

Nov 7th, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 32.25 KB | None | 0 0
  1. {
  2.   "trace": {
  3.     "last_step": "action/1/repeat/sequence/4/choose/0/sequence/1",
  4.     "run_id": "99861c431c697795f08f4af7e8dd5801",
  5.     "state": "stopped",
  6.     "script_execution": "finished",
  7.     "timestamp": {
  8.       "start": "2021-11-07T11:00:00.005167+00:00",
  9.       "finish": "2021-11-07T11:39:23.668438+00:00"
  10.     },
  11.     "domain": "automation",
  12.     "item_id": "1630075207317",
  13.     "trigger": "time",
  14.     "trace": {
  15.       "trigger/0": [
  16.         {
  17.           "path": "trigger/0",
  18.           "timestamp": "2021-11-07T11:00:00.005554+00:00",
  19.           "changed_variables": {
  20.             "this": {
  21.               "entity_id": "automation.morning_meds",
  22.               "state": "on",
  23.               "attributes": {
  24.                 "last_triggered": "2021-11-06T10:00:00.010295+00:00",
  25.                 "mode": "restart",
  26.                 "current": 0,
  27.                 "id": "1630075207317",
  28.                 "friendly_name": "Morning meds"
  29.               },
  30.               "last_changed": "2021-11-07T07:01:49.208096+00:00",
  31.               "last_updated": "2021-11-07T07:01:49.208096+00:00",
  32.               "context": {
  33.                 "id": "e823505c1448d12a860166bd1774b543",
  34.                 "parent_id": null,
  35.                 "user_id": null
  36.               }
  37.             },
  38.             "trigger": {
  39.               "id": "0",
  40.               "idx": "0",
  41.               "platform": "time",
  42.               "now": "2021-11-07T06:00:00.000843-05:00",
  43.               "description": "time",
  44.               "entity_id": null
  45.             }
  46.           }
  47.         }
  48.       ],
  49.       "action/0": [
  50.         {
  51.           "path": "action/0",
  52.           "timestamp": "2021-11-07T11:00:00.020824+00:00",
  53.           "changed_variables": {
  54.             "context": {
  55.               "id": "486095fa633116238a092fd4df3461de",
  56.               "parent_id": null,
  57.               "user_id": null
  58.             }
  59.           },
  60.           "result": {
  61.             "params": {
  62.               "domain": "input_boolean",
  63.               "service": "turn_off",
  64.               "service_data": {},
  65.               "target": {
  66.                 "entity_id": [
  67.                   "input_boolean.morning_med_taken"
  68.                 ]
  69.               }
  70.             },
  71.             "running_script": false,
  72.             "limit": 10
  73.           }
  74.         }
  75.       ],
  76.       "action/1": [
  77.         {
  78.           "path": "action/1",
  79.           "timestamp": "2021-11-07T11:00:00.107587+00:00"
  80.         }
  81.       ],
  82.       "action/1/repeat": [
  83.         {
  84.           "path": "action/1/repeat",
  85.           "timestamp": "2021-11-07T11:00:00.148504+00:00",
  86.           "changed_variables": {
  87.             "repeat": {
  88.               "first": true,
  89.               "index": 1
  90.             }
  91.           },
  92.           "result": {
  93.             "result": true
  94.           }
  95.         },
  96.         {
  97.           "path": "action/1/repeat",
  98.           "timestamp": "2021-11-07T11:10:03.520843+00:00",
  99.           "changed_variables": {
  100.             "repeat": {
  101.               "first": false,
  102.               "index": 2
  103.             },
  104.             "wait": {
  105.               "remaining": 0,
  106.               "trigger": null
  107.             }
  108.           },
  109.           "result": {
  110.             "result": true
  111.           }
  112.         },
  113.         {
  114.           "path": "action/1/repeat",
  115.           "timestamp": "2021-11-07T11:20:04.360913+00:00",
  116.           "changed_variables": {
  117.             "repeat": {
  118.               "first": false,
  119.               "index": 3
  120.             }
  121.           },
  122.           "result": {
  123.             "result": true
  124.           }
  125.         },
  126.         {
  127.           "path": "action/1/repeat",
  128.           "timestamp": "2021-11-07T11:30:05.209393+00:00",
  129.           "changed_variables": {
  130.             "repeat": {
  131.               "first": false,
  132.               "index": 4
  133.             }
  134.           },
  135.           "result": {
  136.             "result": true
  137.           }
  138.         },
  139.         {
  140.           "path": "action/1/repeat",
  141.           "timestamp": "2021-11-07T11:39:23.635075+00:00",
  142.           "changed_variables": {
  143.             "repeat": {
  144.               "first": false,
  145.               "index": 5
  146.             },
  147.             "wait": {
  148.               "remaining": 42.217437234998215,
  149.               "trigger": {
  150.                 "id": "0",
  151.                 "idx": "0",
  152.                 "platform": "event",
  153.                 "event": {
  154.                   "event_type": "mobile_app_notification_action",
  155.                   "data": {
  156.                     "action": "taken"
  157.                   },
  158.                   "origin": "REMOTE",
  159.                   "time_fired": "2021-11-07T11:39:23.366077+00:00",
  160.                   "context": {
  161.                     "id": "4f733a8a15c1a57f819872948c525fec",
  162.                     "parent_id": null,
  163.                     "user_id": "a909738b89c24d89b6e489b4d44fb8a7"
  164.                   }
  165.                 },
  166.                 "description": "event 'mobile_app_notification_action'"
  167.               }
  168.             }
  169.           },
  170.           "result": {
  171.             "result": false
  172.           }
  173.         }
  174.       ],
  175.       "action/1/repeat/while/0": [
  176.         {
  177.           "path": "action/1/repeat/while/0",
  178.           "timestamp": "2021-11-07T11:00:00.148783+00:00",
  179.           "result": {
  180.             "result": true
  181.           }
  182.         },
  183.         {
  184.           "path": "action/1/repeat/while/0",
  185.           "timestamp": "2021-11-07T11:10:03.521154+00:00",
  186.           "result": {
  187.             "result": true
  188.           }
  189.         },
  190.         {
  191.           "path": "action/1/repeat/while/0",
  192.           "timestamp": "2021-11-07T11:20:04.361222+00:00",
  193.           "result": {
  194.             "result": true
  195.           }
  196.         },
  197.         {
  198.           "path": "action/1/repeat/while/0",
  199.           "timestamp": "2021-11-07T11:30:05.209653+00:00",
  200.           "result": {
  201.             "result": true
  202.           }
  203.         },
  204.         {
  205.           "path": "action/1/repeat/while/0",
  206.           "timestamp": "2021-11-07T11:39:23.635620+00:00",
  207.           "result": {
  208.             "result": false
  209.           }
  210.         }
  211.       ],
  212.       "action/1/repeat/while/0/entity_id/0": [
  213.         {
  214.           "path": "action/1/repeat/while/0/entity_id/0",
  215.           "timestamp": "2021-11-07T11:00:00.148935+00:00",
  216.           "result": {
  217.             "result": true,
  218.             "state": "off",
  219.             "wanted_state": "off"
  220.           }
  221.         },
  222.         {
  223.           "path": "action/1/repeat/while/0/entity_id/0",
  224.           "timestamp": "2021-11-07T11:10:03.521376+00:00",
  225.           "result": {
  226.             "result": true,
  227.             "state": "off",
  228.             "wanted_state": "off"
  229.           }
  230.         },
  231.         {
  232.           "path": "action/1/repeat/while/0/entity_id/0",
  233.           "timestamp": "2021-11-07T11:20:04.361452+00:00",
  234.           "result": {
  235.             "result": true,
  236.             "state": "off",
  237.             "wanted_state": "off"
  238.           }
  239.         },
  240.         {
  241.           "path": "action/1/repeat/while/0/entity_id/0",
  242.           "timestamp": "2021-11-07T11:30:05.209838+00:00",
  243.           "result": {
  244.             "result": true,
  245.             "state": "off",
  246.             "wanted_state": "off"
  247.           }
  248.         },
  249.         {
  250.           "path": "action/1/repeat/while/0/entity_id/0",
  251.           "timestamp": "2021-11-07T11:39:23.635893+00:00",
  252.           "result": {
  253.             "result": false,
  254.             "state": "on",
  255.             "wanted_state": "off"
  256.           }
  257.         }
  258.       ],
  259.       "action/1/repeat/sequence/0": [
  260.         {
  261.           "path": "action/1/repeat/sequence/0",
  262.           "timestamp": "2021-11-07T11:00:00.161390+00:00",
  263.           "result": {
  264.             "params": {
  265.               "domain": "logbook",
  266.               "service": "log",
  267.               "service_data": {
  268.                 "name": "Morning pills",
  269.                 "message": "Reminder sent",
  270.                 "entity_id": "input_boolean.morning_med_taken"
  271.               },
  272.               "target": {}
  273.             },
  274.             "running_script": false,
  275.             "limit": 10
  276.           }
  277.         },
  278.         {
  279.           "path": "action/1/repeat/sequence/0",
  280.           "timestamp": "2021-11-07T11:10:03.532181+00:00",
  281.           "result": {
  282.             "params": {
  283.               "domain": "logbook",
  284.               "service": "log",
  285.               "service_data": {
  286.                 "name": "Morning pills",
  287.                 "message": "Reminder sent",
  288.                 "entity_id": "input_boolean.morning_med_taken"
  289.               },
  290.               "target": {}
  291.             },
  292.             "running_script": false,
  293.             "limit": 10
  294.           }
  295.         },
  296.         {
  297.           "path": "action/1/repeat/sequence/0",
  298.           "timestamp": "2021-11-07T11:20:04.371197+00:00",
  299.           "result": {
  300.             "params": {
  301.               "domain": "logbook",
  302.               "service": "log",
  303.               "service_data": {
  304.                 "name": "Morning pills",
  305.                 "message": "Reminder sent",
  306.                 "entity_id": "input_boolean.morning_med_taken"
  307.               },
  308.               "target": {}
  309.             },
  310.             "running_script": false,
  311.             "limit": 10
  312.           }
  313.         },
  314.         {
  315.           "path": "action/1/repeat/sequence/0",
  316.           "timestamp": "2021-11-07T11:30:05.213255+00:00",
  317.           "result": {
  318.             "params": {
  319.               "domain": "logbook",
  320.               "service": "log",
  321.               "service_data": {
  322.                 "name": "Morning pills",
  323.                 "message": "Reminder sent",
  324.                 "entity_id": "input_boolean.morning_med_taken"
  325.               },
  326.               "target": {}
  327.             },
  328.             "running_script": false,
  329.             "limit": 10
  330.           }
  331.         }
  332.       ],
  333.       "action/1/repeat/sequence/1": [
  334.         {
  335.           "path": "action/1/repeat/sequence/1",
  336.           "timestamp": "2021-11-07T11:00:00.179736+00:00",
  337.           "result": {
  338.             "choice": 0
  339.           }
  340.         },
  341.         {
  342.           "path": "action/1/repeat/sequence/1",
  343.           "timestamp": "2021-11-07T11:10:03.548361+00:00",
  344.           "result": {
  345.             "choice": 0
  346.           }
  347.         },
  348.         {
  349.           "path": "action/1/repeat/sequence/1",
  350.           "timestamp": "2021-11-07T11:20:04.396503+00:00",
  351.           "result": {
  352.             "choice": 0
  353.           }
  354.         },
  355.         {
  356.           "path": "action/1/repeat/sequence/1",
  357.           "timestamp": "2021-11-07T11:30:05.220351+00:00",
  358.           "result": {
  359.             "choice": 0
  360.           }
  361.         }
  362.       ],
  363.       "action/1/repeat/sequence/1/choose/0": [
  364.         {
  365.           "path": "action/1/repeat/sequence/1/choose/0",
  366.           "timestamp": "2021-11-07T11:00:00.180664+00:00",
  367.           "result": {
  368.             "result": true
  369.           }
  370.         },
  371.         {
  372.           "path": "action/1/repeat/sequence/1/choose/0",
  373.           "timestamp": "2021-11-07T11:10:03.548854+00:00",
  374.           "result": {
  375.             "result": true
  376.           }
  377.         },
  378.         {
  379.           "path": "action/1/repeat/sequence/1/choose/0",
  380.           "timestamp": "2021-11-07T11:20:04.397008+00:00",
  381.           "result": {
  382.             "result": true
  383.           }
  384.         },
  385.         {
  386.           "path": "action/1/repeat/sequence/1/choose/0",
  387.           "timestamp": "2021-11-07T11:30:05.220793+00:00",
  388.           "result": {
  389.             "result": true
  390.           }
  391.         }
  392.       ],
  393.       "action/1/repeat/sequence/1/choose/0/conditions/0": [
  394.         {
  395.           "path": "action/1/repeat/sequence/1/choose/0/conditions/0",
  396.           "timestamp": "2021-11-07T11:00:00.180897+00:00",
  397.           "result": {
  398.             "result": true,
  399.             "entities": []
  400.           }
  401.         },
  402.         {
  403.           "path": "action/1/repeat/sequence/1/choose/0/conditions/0",
  404.           "timestamp": "2021-11-07T11:10:03.549107+00:00",
  405.           "result": {
  406.             "result": true,
  407.             "entities": []
  408.           }
  409.         },
  410.         {
  411.           "path": "action/1/repeat/sequence/1/choose/0/conditions/0",
  412.           "timestamp": "2021-11-07T11:20:04.397244+00:00",
  413.           "result": {
  414.             "result": true,
  415.             "entities": []
  416.           }
  417.         },
  418.         {
  419.           "path": "action/1/repeat/sequence/1/choose/0/conditions/0",
  420.           "timestamp": "2021-11-07T11:30:05.220976+00:00",
  421.           "result": {
  422.             "result": true,
  423.             "entities": []
  424.           }
  425.         }
  426.       ],
  427.       "action/1/repeat/sequence/2": [
  428.         {
  429.           "path": "action/1/repeat/sequence/2",
  430.           "timestamp": "2021-11-07T11:00:00.200077+00:00"
  431.         },
  432.         {
  433.           "path": "action/1/repeat/sequence/2",
  434.           "timestamp": "2021-11-07T11:10:03.555908+00:00"
  435.         },
  436.         {
  437.           "path": "action/1/repeat/sequence/2",
  438.           "timestamp": "2021-11-07T11:20:04.406400+00:00"
  439.         },
  440.         {
  441.           "path": "action/1/repeat/sequence/2",
  442.           "timestamp": "2021-11-07T11:30:05.225244+00:00"
  443.         }
  444.       ],
  445.       "action/1/repeat/sequence/3": [
  446.         {
  447.           "path": "action/1/repeat/sequence/3",
  448.           "timestamp": "2021-11-07T11:00:03.009291+00:00",
  449.           "result": {
  450.             "wait": {
  451.               "remaining": 0,
  452.               "trigger": null
  453.             }
  454.           }
  455.         },
  456.         {
  457.           "path": "action/1/repeat/sequence/3",
  458.           "timestamp": "2021-11-07T11:10:03.914865+00:00",
  459.           "result": {
  460.             "wait": {
  461.               "remaining": 0,
  462.               "trigger": null
  463.             }
  464.           }
  465.         },
  466.         {
  467.           "path": "action/1/repeat/sequence/3",
  468.           "timestamp": "2021-11-07T11:20:04.771764+00:00",
  469.           "result": {
  470.             "wait": {
  471.               "remaining": 0,
  472.               "trigger": null
  473.             }
  474.           }
  475.         },
  476.         {
  477.           "path": "action/1/repeat/sequence/3",
  478.           "timestamp": "2021-11-07T11:30:05.584171+00:00",
  479.           "result": {
  480.             "wait": {
  481.               "remaining": 42.217437234998215,
  482.               "trigger": {
  483.                 "id": "0",
  484.                 "idx": "0",
  485.                 "platform": "event",
  486.                 "event": {
  487.                   "event_type": "mobile_app_notification_action",
  488.                   "data": {
  489.                     "action": "taken"
  490.                   },
  491.                   "origin": "REMOTE",
  492.                   "time_fired": "2021-11-07T11:39:23.366077+00:00",
  493.                   "context": {
  494.                     "id": "4f733a8a15c1a57f819872948c525fec",
  495.                     "parent_id": null,
  496.                     "user_id": "a909738b89c24d89b6e489b4d44fb8a7"
  497.                   }
  498.                 },
  499.                 "description": "event 'mobile_app_notification_action'"
  500.               }
  501.             }
  502.           }
  503.         }
  504.       ],
  505.       "action/1/repeat/sequence/4": [
  506.         {
  507.           "path": "action/1/repeat/sequence/4",
  508.           "timestamp": "2021-11-07T11:10:03.023504+00:00",
  509.           "changed_variables": {
  510.             "wait": {
  511.               "remaining": 0,
  512.               "trigger": null
  513.             }
  514.           },
  515.           "result": {
  516.             "choice": "default"
  517.           }
  518.         },
  519.         {
  520.           "path": "action/1/repeat/sequence/4",
  521.           "timestamp": "2021-11-07T11:20:03.925169+00:00",
  522.           "result": {
  523.             "choice": "default"
  524.           }
  525.         },
  526.         {
  527.           "path": "action/1/repeat/sequence/4",
  528.           "timestamp": "2021-11-07T11:30:04.797935+00:00",
  529.           "result": {
  530.             "choice": "default"
  531.           }
  532.         },
  533.         {
  534.           "path": "action/1/repeat/sequence/4",
  535.           "timestamp": "2021-11-07T11:39:23.384944+00:00",
  536.           "changed_variables": {
  537.             "wait": {
  538.               "remaining": 42.217437234998215,
  539.               "trigger": {
  540.                 "id": "0",
  541.                 "idx": "0",
  542.                 "platform": "event",
  543.                 "event": {
  544.                   "event_type": "mobile_app_notification_action",
  545.                   "data": {
  546.                     "action": "taken"
  547.                   },
  548.                   "origin": "REMOTE",
  549.                   "time_fired": "2021-11-07T11:39:23.366077+00:00",
  550.                   "context": {
  551.                     "id": "4f733a8a15c1a57f819872948c525fec",
  552.                     "parent_id": null,
  553.                     "user_id": "a909738b89c24d89b6e489b4d44fb8a7"
  554.                   }
  555.                 },
  556.                 "description": "event 'mobile_app_notification_action'"
  557.               }
  558.             }
  559.           },
  560.           "result": {
  561.             "choice": 0
  562.           }
  563.         }
  564.       ],
  565.       "action/1/repeat/sequence/4/choose/0": [
  566.         {
  567.           "path": "action/1/repeat/sequence/4/choose/0",
  568.           "timestamp": "2021-11-07T11:10:03.026719+00:00",
  569.           "result": {
  570.             "result": null
  571.           }
  572.         },
  573.         {
  574.           "path": "action/1/repeat/sequence/4/choose/0",
  575.           "timestamp": "2021-11-07T11:20:03.925746+00:00",
  576.           "result": {
  577.             "result": null
  578.           }
  579.         },
  580.         {
  581.           "path": "action/1/repeat/sequence/4/choose/0",
  582.           "timestamp": "2021-11-07T11:30:04.798580+00:00",
  583.           "result": {
  584.             "result": null
  585.           }
  586.         },
  587.         {
  588.           "path": "action/1/repeat/sequence/4/choose/0",
  589.           "timestamp": "2021-11-07T11:39:23.385627+00:00",
  590.           "result": {
  591.             "result": true
  592.           }
  593.         }
  594.       ],
  595.       "action/1/repeat/sequence/4/choose/0/conditions/0": [
  596.         {
  597.           "path": "action/1/repeat/sequence/4/choose/0/conditions/0",
  598.           "timestamp": "2021-11-07T11:10:03.027255+00:00",
  599.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  600.         },
  601.         {
  602.           "path": "action/1/repeat/sequence/4/choose/0/conditions/0",
  603.           "timestamp": "2021-11-07T11:20:03.925931+00:00",
  604.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  605.         },
  606.         {
  607.           "path": "action/1/repeat/sequence/4/choose/0/conditions/0",
  608.           "timestamp": "2021-11-07T11:30:04.798798+00:00",
  609.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  610.         },
  611.         {
  612.           "path": "action/1/repeat/sequence/4/choose/0/conditions/0",
  613.           "timestamp": "2021-11-07T11:39:23.385972+00:00",
  614.           "result": {
  615.             "result": true,
  616.             "entities": []
  617.           }
  618.         }
  619.       ],
  620.       "action/1/repeat/sequence/4/choose/1": [
  621.         {
  622.           "path": "action/1/repeat/sequence/4/choose/1",
  623.           "timestamp": "2021-11-07T11:10:03.033735+00:00",
  624.           "result": {
  625.             "result": null
  626.           }
  627.         },
  628.         {
  629.           "path": "action/1/repeat/sequence/4/choose/1",
  630.           "timestamp": "2021-11-07T11:20:03.940324+00:00",
  631.           "result": {
  632.             "result": null
  633.           }
  634.         },
  635.         {
  636.           "path": "action/1/repeat/sequence/4/choose/1",
  637.           "timestamp": "2021-11-07T11:30:04.811717+00:00",
  638.           "result": {
  639.             "result": null
  640.           }
  641.         }
  642.       ],
  643.       "action/1/repeat/sequence/4/choose/1/conditions/0": [
  644.         {
  645.           "path": "action/1/repeat/sequence/4/choose/1/conditions/0",
  646.           "timestamp": "2021-11-07T11:10:03.033988+00:00",
  647.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  648.         },
  649.         {
  650.           "path": "action/1/repeat/sequence/4/choose/1/conditions/0",
  651.           "timestamp": "2021-11-07T11:20:03.940661+00:00",
  652.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  653.         },
  654.         {
  655.           "path": "action/1/repeat/sequence/4/choose/1/conditions/0",
  656.           "timestamp": "2021-11-07T11:30:04.812039+00:00",
  657.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  658.         }
  659.       ],
  660.       "action/1/repeat/sequence/4/choose/2": [
  661.         {
  662.           "path": "action/1/repeat/sequence/4/choose/2",
  663.           "timestamp": "2021-11-07T11:10:03.048291+00:00",
  664.           "result": {
  665.             "result": null
  666.           }
  667.         },
  668.         {
  669.           "path": "action/1/repeat/sequence/4/choose/2",
  670.           "timestamp": "2021-11-07T11:20:03.947156+00:00",
  671.           "result": {
  672.             "result": null
  673.           }
  674.         },
  675.         {
  676.           "path": "action/1/repeat/sequence/4/choose/2",
  677.           "timestamp": "2021-11-07T11:30:04.819488+00:00",
  678.           "result": {
  679.             "result": null
  680.           }
  681.         }
  682.       ],
  683.       "action/1/repeat/sequence/4/choose/2/conditions/0": [
  684.         {
  685.           "path": "action/1/repeat/sequence/4/choose/2/conditions/0",
  686.           "timestamp": "2021-11-07T11:10:03.048570+00:00",
  687.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  688.         },
  689.         {
  690.           "path": "action/1/repeat/sequence/4/choose/2/conditions/0",
  691.           "timestamp": "2021-11-07T11:20:03.947535+00:00",
  692.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  693.         },
  694.         {
  695.           "path": "action/1/repeat/sequence/4/choose/2/conditions/0",
  696.           "timestamp": "2021-11-07T11:30:04.820142+00:00",
  697.           "error": "In 'template' condition: UndefinedError: 'None' has no attribute 'event'"
  698.         }
  699.       ],
  700.       "action/1/repeat/sequence/4/default/0": [
  701.         {
  702.           "path": "action/1/repeat/sequence/4/default/0",
  703.           "timestamp": "2021-11-07T11:10:03.082697+00:00"
  704.         },
  705.         {
  706.           "path": "action/1/repeat/sequence/4/default/0",
  707.           "timestamp": "2021-11-07T11:20:03.954946+00:00"
  708.         },
  709.         {
  710.           "path": "action/1/repeat/sequence/4/default/0",
  711.           "timestamp": "2021-11-07T11:30:04.830953+00:00"
  712.         }
  713.       ],
  714.       "action/1/repeat/sequence/4/default/1": [
  715.         {
  716.           "path": "action/1/repeat/sequence/4/default/1",
  717.           "timestamp": "2021-11-07T11:10:03.502389+00:00",
  718.           "result": {
  719.             "params": {
  720.               "domain": "logbook",
  721.               "service": "log",
  722.               "service_data": {
  723.                 "name": "Morning pills",
  724.                 "message": "No answer time out",
  725.                 "entity_id": "input_boolean.morning_med_taken"
  726.               },
  727.               "target": {}
  728.             },
  729.             "running_script": false,
  730.             "limit": 10
  731.           }
  732.         },
  733.         {
  734.           "path": "action/1/repeat/sequence/4/default/1",
  735.           "timestamp": "2021-11-07T11:20:04.340612+00:00",
  736.           "result": {
  737.             "params": {
  738.               "domain": "logbook",
  739.               "service": "log",
  740.               "service_data": {
  741.                 "name": "Morning pills",
  742.                 "message": "No answer time out",
  743.                 "entity_id": "input_boolean.morning_med_taken"
  744.               },
  745.               "target": {}
  746.             },
  747.             "running_script": false,
  748.             "limit": 10
  749.           }
  750.         },
  751.         {
  752.           "path": "action/1/repeat/sequence/4/default/1",
  753.           "timestamp": "2021-11-07T11:30:05.202373+00:00",
  754.           "result": {
  755.             "params": {
  756.               "domain": "logbook",
  757.               "service": "log",
  758.               "service_data": {
  759.                 "name": "Morning pills",
  760.                 "message": "No answer time out",
  761.                 "entity_id": "input_boolean.morning_med_taken"
  762.               },
  763.               "target": {}
  764.             },
  765.             "running_script": false,
  766.             "limit": 10
  767.           }
  768.         }
  769.       ],
  770.       "action/1/repeat/sequence/4/choose/0/sequence/0": [
  771.         {
  772.           "path": "action/1/repeat/sequence/4/choose/0/sequence/0",
  773.           "timestamp": "2021-11-07T11:39:23.427083+00:00",
  774.           "result": {
  775.             "params": {
  776.               "domain": "input_boolean",
  777.               "service": "turn_on",
  778.               "service_data": {},
  779.               "target": {
  780.                 "entity_id": [
  781.                   "input_boolean.morning_med_taken"
  782.                 ]
  783.               }
  784.             },
  785.             "running_script": false,
  786.             "limit": 10
  787.           }
  788.         }
  789.       ],
  790.       "action/1/repeat/sequence/4/choose/0/sequence/1": [
  791.         {
  792.           "path": "action/1/repeat/sequence/4/choose/0/sequence/1",
  793.           "timestamp": "2021-11-07T11:39:23.591120+00:00",
  794.           "result": {
  795.             "params": {
  796.               "domain": "logbook",
  797.               "service": "log",
  798.               "service_data": {
  799.                 "name": "Morning pills",
  800.                 "message": "Josh's morning med taken",
  801.                 "entity_id": "input_boolean.morning_med_taken"
  802.               },
  803.               "target": {}
  804.             },
  805.             "running_script": false,
  806.             "limit": 10
  807.           }
  808.         }
  809.       ]
  810.     },
  811.     "config": {
  812.       "trigger": [
  813.         {
  814.           "platform": "time",
  815.           "at": "6:00:00"
  816.         }
  817.       ],
  818.       "mode": "restart",
  819.       "action": [
  820.         {
  821.           "service": "input_boolean.turn_off",
  822.           "target": {
  823.             "entity_id": "input_boolean.morning_med_taken"
  824.           }
  825.         },
  826.         {
  827.           "alias": "Notify until the medication has been take",
  828.           "repeat": {
  829.             "while": [
  830.               {
  831.                 "condition": "state",
  832.                 "entity_id": "input_boolean.morning_med_taken",
  833.                 "state": "off"
  834.               }
  835.             ],
  836.             "sequence": [
  837.               {
  838.                 "service": "logbook.log",
  839.                 "data": {
  840.                   "name": "Morning pills",
  841.                   "message": "Reminder sent",
  842.                   "entity_id": "input_boolean.morning_med_taken"
  843.                 }
  844.               },
  845.               {
  846.                 "choose": [
  847.                   {
  848.                     "conditions": "{{ true }}",
  849.                     "sequence": []
  850.                   }
  851.                 ]
  852.               },
  853.               {
  854.                 "device_id": "1e527450809331d8790525f7af6b4c0a",
  855.                 "domain": "mobile_app",
  856.                 "type": "notify",
  857.                 "title": "Morning pills",
  858.                 "message": "It's time to take your medication",
  859.                 "data": {
  860.                   "actions": [
  861.                     {
  862.                       "title": "Taken",
  863.                       "action": "taken"
  864.                     },
  865.                     {
  866.                       "title": "Ask later",
  867.                       "action": "later"
  868.                     },
  869.                     {
  870.                       "title": "Skip",
  871.                       "action": "skip"
  872.                     }
  873.                   ],
  874.                   "tag": "input_boolean.morning_med_taken"
  875.                 }
  876.               },
  877.               {
  878.                 "wait_for_trigger": {
  879.                   "platform": "event",
  880.                   "event_type": "mobile_app_notification_action"
  881.                 },
  882.                 "timeout": {
  883.                   "minutes": 10
  884.                 }
  885.               },
  886.               {
  887.                 "choose": [
  888.                   {
  889.                     "conditions": "{{ wait.trigger.event.data.action == 'taken' }}",
  890.                     "sequence": [
  891.                       {
  892.                         "service": "input_boolean.turn_on",
  893.                         "target": {
  894.                           "entity_id": "input_boolean.morning_med_taken"
  895.                         }
  896.                       },
  897.                       {
  898.                         "service": "logbook.log",
  899.                         "data": {
  900.                           "name": "Morning pills",
  901.                           "message": "Josh's morning med taken",
  902.                           "entity_id": "input_boolean.morning_med_taken"
  903.                         }
  904.                       }
  905.                     ]
  906.                   },
  907.                   {
  908.                     "conditions": "{{ wait.trigger.event.data.action == 'later' }}",
  909.                     "sequence": [
  910.                       {
  911.                         "service": "logbook.log",
  912.                         "data": {
  913.                           "name": "Morning pills",
  914.                           "message": "Postpone reminder",
  915.                           "entity_id": "input_boolean.morning_med_taken"
  916.                         }
  917.                       },
  918.                       {
  919.                         "delay": {
  920.                           "minutes": 10
  921.                         }
  922.                       }
  923.                     ]
  924.                   },
  925.                   {
  926.                     "conditions": "{{ wait.trigger.event.data.action == 'skip' }}",
  927.                     "sequence": [
  928.                       {
  929.                         "service": "input_boolean.turn_on",
  930.                         "target": {
  931.                           "entity_id": "input_boolean.morning_med_taken"
  932.                         }
  933.                       },
  934.                       {
  935.                         "service": "logbook.log",
  936.                         "data": {
  937.                           "name": "Morning pills",
  938.                           "message": "Reminder skipped",
  939.                           "entity_id": "input_boolean.morning_med_taken"
  940.                         }
  941.                       }
  942.                     ]
  943.                   }
  944.                 ],
  945.                 "default": [
  946.                   {
  947.                     "device_id": "1e527450809331d8790525f7af6b4c0a",
  948.                     "domain": "mobile_app",
  949.                     "type": "notify",
  950.                     "message": "clear_notification",
  951.                     "data": {
  952.                       "tag": "input_boolean.morning_med_taken"
  953.                     }
  954.                   },
  955.                   {
  956.                     "service": "logbook.log",
  957.                     "data": {
  958.                       "name": "Morning pills",
  959.                       "message": "No answer time out",
  960.                       "entity_id": "input_boolean.morning_med_taken"
  961.                     }
  962.                   }
  963.                 ]
  964.               }
  965.             ]
  966.           }
  967.         }
  968.       ],
  969.       "id": "1630075207317",
  970.       "alias": "Morning meds",
  971.       "description": "josh's morning meds 💊"
  972.     },
  973.     "blueprint_inputs": {
  974.       "id": "1630075207317",
  975.       "alias": "Morning meds",
  976.       "description": "josh's morning meds 💊",
  977.       "use_blueprint": {
  978.         "path": "Aohzan/medication_reminder.yaml",
  979.         "input": {
  980.           "logbook_message_no_answer": "No answer time out",
  981.           "reminder_time": "6:00:00",
  982.           "notify_device": "1e527450809331d8790525f7af6b4c0a",
  983.           "input_boolean": "input_boolean.morning_med_taken",
  984.           "notification_title": "Morning pills",
  985.           "ask_later_wait_time": 10,
  986.           "logbook_message_taken": "Josh's morning med taken"
  987.         }
  988.       }
  989.     },
  990.     "context": {
  991.       "id": "486095fa633116238a092fd4df3461de",
  992.       "parent_id": null,
  993.       "user_id": null
  994.     }
  995.   },
  996.   "logbookEntries": [
  997.     {
  998.       "name": "Morning meds",
  999.       "message": "has been triggered by time",
  1000.       "source": "time",
  1001.       "entity_id": "automation.morning_meds",
  1002.       "context_id": "486095fa633116238a092fd4df3461de",
  1003.       "when": "2021-11-07T11:00:00.006919+00:00",
  1004.       "domain": "automation"
  1005.     },
  1006.     {
  1007.       "when": "2021-11-07T11:00:00.090759+00:00",
  1008.       "name": "Morning meds taken",
  1009.       "state": "off",
  1010.       "entity_id": "input_boolean.morning_med_taken",
  1011.       "icon": "mdi:pill",
  1012.       "context_entity_id": "automation.morning_meds",
  1013.       "context_entity_id_name": "Morning meds",
  1014.       "context_event_type": "automation_triggered",
  1015.       "context_domain": "automation",
  1016.       "context_name": "Morning meds",
  1017.       "message": "turned off"
  1018.     },
  1019.     {
  1020.       "when": "2021-11-07T11:39:23.561941+00:00",
  1021.       "name": "Morning meds taken",
  1022.       "state": "on",
  1023.       "entity_id": "input_boolean.morning_med_taken",
  1024.       "icon": "mdi:pill",
  1025.       "context_entity_id": "automation.morning_meds",
  1026.       "context_entity_id_name": "Morning meds",
  1027.       "context_event_type": "automation_triggered",
  1028.       "context_domain": "automation",
  1029.       "context_name": "Morning meds",
  1030.       "message": "turned on"
  1031.     }
  1032.   ]
  1033. }
Advertisement
Add Comment
Please, Sign In to add comment