Advertisement
dykandDK

HA - NR - Ventilation Reminder Automation Example

Dec 26th, 2020
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.62 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "969d7186.bd19f",
  4.         "type": "tab",
  5.         "label": "Udluftning",
  6.         "disabled": false,
  7.         "info": "# **Flow til påmindelse om udluftning**\n**Af Anders Lukic**\n\n---\n## **Funktionalitet**\nSend besked, hvis der skal luftes ud på børneværelse inden sengetid, når:\n\n - Temperatur indendørs er > 23 grader\n - Vinduet er lukket\n - Mindst én person er hjemme\n - Ventilatoren er slukket\n\n## **Forsætninger**\nAutomatiseringen forudsætter følgende konfiguration:\n\n - Der er oprettet en gruppe med personer, hvoraf mindst én skal være hjemme\n - Der er oprettet en IOS push category \"ventilation\" med de ønskede actions"
  8.     },
  9.     {
  10.         "id": "a3c5c5c7.7967d8",
  11.         "type": "inject",
  12.         "z": "969d7186.bd19f",
  13.         "name": "Kl. 18.45",
  14.         "props": [],
  15.         "repeat": "",
  16.         "crontab": "45 18 * * *",
  17.         "once": false,
  18.         "onceDelay": 0.1,
  19.         "topic": "",
  20.         "payloadType": "str",
  21.         "x": 120,
  22.         "y": 100,
  23.         "wires": [
  24.             [
  25.                 "a537f473.611e28"
  26.             ]
  27.         ]
  28.     },
  29.     {
  30.         "id": "7b6ea66.d4d2558",
  31.         "type": "comment",
  32.         "z": "969d7186.bd19f",
  33.         "name": "Send besked, hvis der skal luftes ud på børneværelse inden sengetid",
  34.         "info": "",
  35.         "x": 280,
  36.         "y": 40,
  37.         "wires": []
  38.     },
  39.     {
  40.         "id": "a6071405.42cc18",
  41.         "type": "api-current-state",
  42.         "z": "969d7186.bd19f",
  43.         "name": "Vindue er lukket",
  44.         "server": "3bebce79.1e0962",
  45.         "version": 1,
  46.         "outputs": 2,
  47.         "halt_if": "on",
  48.         "halt_if_type": "str",
  49.         "halt_if_compare": "is_not",
  50.         "override_topic": false,
  51.         "entity_id": "binary_sensor.openclose_14",
  52.         "state_type": "str",
  53.         "state_location": "window",
  54.         "override_payload": "msg",
  55.         "entity_location": "data",
  56.         "override_data": "msg",
  57.         "blockInputOverrides": false,
  58.         "x": 780,
  59.         "y": 100,
  60.         "wires": [
  61.             [
  62.                 "72033963.f81eb8"
  63.             ],
  64.             []
  65.         ]
  66.     },
  67.     {
  68.         "id": "a537f473.611e28",
  69.         "type": "api-current-state",
  70.         "z": "969d7186.bd19f",
  71.         "name": "Temp. > 23",
  72.         "server": "3bebce79.1e0962",
  73.         "version": 1,
  74.         "outputs": 2,
  75.         "halt_if": "22.5",
  76.         "halt_if_type": "num",
  77.         "halt_if_compare": "gte",
  78.         "override_topic": false,
  79.         "entity_id": "sensor.bornevaerelse_sensor_temperature",
  80.         "state_type": "num",
  81.         "state_location": "temp",
  82.         "override_payload": "msg",
  83.         "entity_location": "data",
  84.         "override_data": "msg",
  85.         "blockInputOverrides": false,
  86.         "x": 290,
  87.         "y": 100,
  88.         "wires": [
  89.             [
  90.                 "57b19fdd.fa06a"
  91.             ],
  92.             []
  93.         ]
  94.     },
  95.     {
  96.         "id": "1c2eeb08.397c65",
  97.         "type": "api-call-service",
  98.         "z": "969d7186.bd19f",
  99.         "name": "Send notifikation",
  100.         "server": "3bebce79.1e0962",
  101.         "version": 1,
  102.         "debugenabled": false,
  103.         "service_domain": "notify",
  104.         "service": "notify",
  105.         "entityId": "",
  106.         "data": "{\"message\":\"Det er snart sengetid og det er {{temp}}°C i børneværelset, mens det er {{ude}}°C udenfor.\",\"title\":\"Udluftning i børneværelse\",\"data\":{\"push\":{\"category\":\"ventilation\"}}}",
  107.         "dataType": "json",
  108.         "mergecontext": "",
  109.         "output_location": "",
  110.         "output_location_type": "none",
  111.         "mustacheAltTags": false,
  112.         "x": 1160,
  113.         "y": 100,
  114.         "wires": [
  115.             []
  116.         ]
  117.     },
  118.     {
  119.         "id": "57b19fdd.fa06a",
  120.         "type": "api-current-state",
  121.         "z": "969d7186.bd19f",
  122.         "name": "Nogen hjemme?",
  123.         "server": "3bebce79.1e0962",
  124.         "version": 1,
  125.         "outputs": 2,
  126.         "halt_if": "home",
  127.         "halt_if_type": "str",
  128.         "halt_if_compare": "is",
  129.         "override_topic": false,
  130.         "entity_id": "group.alle_personer",
  131.         "state_type": "str",
  132.         "state_location": "payload",
  133.         "override_payload": "msg",
  134.         "entity_location": "data",
  135.         "override_data": "msg",
  136.         "blockInputOverrides": false,
  137.         "x": 460,
  138.         "y": 100,
  139.         "wires": [
  140.             [
  141.                 "e0b61138.6f03"
  142.             ],
  143.             []
  144.         ]
  145.     },
  146.     {
  147.         "id": "38146328.d6eedc",
  148.         "type": "inject",
  149.         "z": "969d7186.bd19f",
  150.         "name": "Kl. 19.00",
  151.         "props": [],
  152.         "repeat": "",
  153.         "crontab": "00 19 * * *",
  154.         "once": false,
  155.         "onceDelay": 0.1,
  156.         "topic": "",
  157.         "x": 120,
  158.         "y": 140,
  159.         "wires": [
  160.             [
  161.                 "a537f473.611e28"
  162.             ]
  163.         ]
  164.     },
  165.     {
  166.         "id": "72033963.f81eb8",
  167.         "type": "api-current-state",
  168.         "z": "969d7186.bd19f",
  169.         "name": "Blæser er slukket",
  170.         "server": "3bebce79.1e0962",
  171.         "version": 1,
  172.         "outputs": 2,
  173.         "halt_if": "on",
  174.         "halt_if_type": "str",
  175.         "halt_if_compare": "is_not",
  176.         "override_topic": false,
  177.         "entity_id": "switch.on_off_plug_in_unit_5",
  178.         "state_type": "str",
  179.         "state_location": "fan",
  180.         "override_payload": "msg",
  181.         "entity_location": "data",
  182.         "override_data": "msg",
  183.         "blockInputOverrides": false,
  184.         "x": 970,
  185.         "y": 100,
  186.         "wires": [
  187.             [
  188.                 "1c2eeb08.397c65"
  189.             ],
  190.             []
  191.         ]
  192.     },
  193.     {
  194.         "id": "e0b61138.6f03",
  195.         "type": "api-current-state",
  196.         "z": "969d7186.bd19f",
  197.         "name": "Ude temp",
  198.         "server": "3bebce79.1e0962",
  199.         "version": 1,
  200.         "outputs": 1,
  201.         "halt_if": "",
  202.         "halt_if_type": "str",
  203.         "halt_if_compare": "is_not",
  204.         "override_topic": false,
  205.         "entity_id": "sensor.netatmo_weather_home_ude_temperature",
  206.         "state_type": "num",
  207.         "state_location": "ude",
  208.         "override_payload": "msg",
  209.         "entity_location": "data",
  210.         "override_data": "msg",
  211.         "blockInputOverrides": false,
  212.         "x": 620,
  213.         "y": 100,
  214.         "wires": [
  215.             [
  216.                 "a6071405.42cc18"
  217.             ]
  218.         ]
  219.     },
  220.     {
  221.         "id": "c9c5fdd9.8e339",
  222.         "type": "server-events",
  223.         "z": "969d7186.bd19f",
  224.         "name": "IOS Action?",
  225.         "server": "3bebce79.1e0962",
  226.         "event_type": "ios.notification_action_fired",
  227.         "exposeToHomeAssistant": false,
  228.         "haConfig": [
  229.             {
  230.                 "property": "name",
  231.                 "value": ""
  232.             },
  233.             {
  234.                 "property": "icon",
  235.                 "value": ""
  236.             }
  237.         ],
  238.         "x": 110,
  239.         "y": 260,
  240.         "wires": [
  241.             [
  242.                 "d986b859.a86b58"
  243.             ]
  244.         ]
  245.     },
  246.     {
  247.         "id": "d986b859.a86b58",
  248.         "type": "switch",
  249.         "z": "969d7186.bd19f",
  250.         "name": "Start blæser?",
  251.         "property": "payload.event.actionName",
  252.         "propertyType": "msg",
  253.         "rules": [
  254.             {
  255.                 "t": "eq",
  256.                 "v": "VENT_FAN",
  257.                 "vt": "str"
  258.             }
  259.         ],
  260.         "checkall": "false",
  261.         "repair": false,
  262.         "outputs": 1,
  263.         "x": 280,
  264.         "y": 260,
  265.         "wires": [
  266.             [
  267.                 "5d333a9b.83bad4"
  268.             ]
  269.         ]
  270.     },
  271.     {
  272.         "id": "5d333a9b.83bad4",
  273.         "type": "api-call-service",
  274.         "z": "969d7186.bd19f",
  275.         "name": "Tænd blæser",
  276.         "server": "3bebce79.1e0962",
  277.         "version": 1,
  278.         "debugenabled": false,
  279.         "service_domain": "switch",
  280.         "service": "turn_on",
  281.         "entityId": "switch.on_off_plug_in_unit_5",
  282.         "data": "",
  283.         "dataType": "json",
  284.         "mergecontext": "",
  285.         "output_location": "",
  286.         "output_location_type": "none",
  287.         "mustacheAltTags": false,
  288.         "x": 450,
  289.         "y": 260,
  290.         "wires": [
  291.             []
  292.         ]
  293.     },
  294.     {
  295.         "id": "78fe8430.5702cc",
  296.         "type": "comment",
  297.         "z": "969d7186.bd19f",
  298.         "name": "Reager på svar på actionable notifikation",
  299.         "info": "",
  300.         "x": 200,
  301.         "y": 200,
  302.         "wires": []
  303.     },
  304.     {
  305.         "id": "3bebce79.1e0962",
  306.         "type": "server",
  307.         "name": "Home Assistant",
  308.         "addon": true
  309.     }
  310. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement