Advertisement
Guest User

Untitled

a guest
Jun 16th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 28.66 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "a4a5e461.52af58",
  4.         "type": "tab",
  5.         "label": "Pool Controls",
  6.         "disabled": false,
  7.         "info": ""
  8.     },
  9.     {
  10.         "id": "4c9f207b.10958",
  11.         "type": "server-state-changed",
  12.         "z": "a4a5e461.52af58",
  13.         "name": "Quick Clean On",
  14.         "server": "ea672066.183ca",
  15.         "version": 1,
  16.         "exposeToHomeAssistant": false,
  17.         "haConfig": [
  18.             {
  19.                 "property": "name",
  20.                 "value": ""
  21.             },
  22.             {
  23.                 "property": "icon",
  24.                 "value": ""
  25.             }
  26.         ],
  27.         "entityidfilter": "switch.pool_quick_clean",
  28.         "entityidfiltertype": "exact",
  29.         "outputinitially": false,
  30.         "state_type": "str",
  31.         "haltifstate": "on",
  32.         "halt_if_type": "str",
  33.         "halt_if_compare": "is",
  34.         "outputs": 2,
  35.         "output_only_on_state_change": true,
  36.         "x": 100,
  37.         "y": 65,
  38.         "wires": [
  39.             [
  40.                 "479c56a7.a367c8"
  41.             ],
  42.             []
  43.         ]
  44.     },
  45.     {
  46.         "id": "dc8b672e.532b48",
  47.         "type": "server-state-changed",
  48.         "z": "a4a5e461.52af58",
  49.         "name": "Speed 1 On",
  50.         "server": "ea672066.183ca",
  51.         "version": 1,
  52.         "exposeToHomeAssistant": false,
  53.         "haConfig": [
  54.             {
  55.                 "property": "name",
  56.                 "value": ""
  57.             },
  58.             {
  59.                 "property": "icon",
  60.                 "value": ""
  61.             }
  62.         ],
  63.         "entityidfilter": "switch.pool_speed_1",
  64.         "entityidfiltertype": "exact",
  65.         "outputinitially": false,
  66.         "state_type": "str",
  67.         "haltifstate": "on",
  68.         "halt_if_type": "str",
  69.         "halt_if_compare": "is",
  70.         "outputs": 2,
  71.         "output_only_on_state_change": true,
  72.         "x": 90,
  73.         "y": 125,
  74.         "wires": [
  75.             [
  76.                 "d6a948e9.9053c8"
  77.             ],
  78.             []
  79.         ]
  80.     },
  81.     {
  82.         "id": "7112ba13.daa5c4",
  83.         "type": "server-state-changed",
  84.         "z": "a4a5e461.52af58",
  85.         "name": "Speed 2 On",
  86.         "server": "ea672066.183ca",
  87.         "version": 1,
  88.         "exposeToHomeAssistant": false,
  89.         "haConfig": [
  90.             {
  91.                 "property": "name",
  92.                 "value": ""
  93.             },
  94.             {
  95.                 "property": "icon",
  96.                 "value": ""
  97.             }
  98.         ],
  99.         "entityidfilter": "switch.pool_speed_2",
  100.         "entityidfiltertype": "exact",
  101.         "outputinitially": false,
  102.         "state_type": "str",
  103.         "haltifstate": "on",
  104.         "halt_if_type": "str",
  105.         "halt_if_compare": "is",
  106.         "outputs": 2,
  107.         "output_only_on_state_change": true,
  108.         "x": 90,
  109.         "y": 185,
  110.         "wires": [
  111.             [
  112.                 "e1af4093.72368"
  113.             ],
  114.             []
  115.         ]
  116.     },
  117.     {
  118.         "id": "24062b34.f366f4",
  119.         "type": "server-state-changed",
  120.         "z": "a4a5e461.52af58",
  121.         "name": "Speed 3 On",
  122.         "server": "ea672066.183ca",
  123.         "version": 1,
  124.         "exposeToHomeAssistant": false,
  125.         "haConfig": [
  126.             {
  127.                 "property": "name",
  128.                 "value": ""
  129.             },
  130.             {
  131.                 "property": "icon",
  132.                 "value": ""
  133.             }
  134.         ],
  135.         "entityidfilter": "switch.pool_speed_3",
  136.         "entityidfiltertype": "exact",
  137.         "outputinitially": false,
  138.         "state_type": "str",
  139.         "haltifstate": "on",
  140.         "halt_if_type": "str",
  141.         "halt_if_compare": "is",
  142.         "outputs": 2,
  143.         "output_only_on_state_change": true,
  144.         "x": 90,
  145.         "y": 245,
  146.         "wires": [
  147.             [
  148.                 "4fa93113.e3d03"
  149.             ],
  150.             []
  151.         ]
  152.     },
  153.     {
  154.         "id": "4fa93113.e3d03",
  155.         "type": "delay",
  156.         "z": "a4a5e461.52af58",
  157.         "name": "",
  158.         "pauseType": "delay",
  159.         "timeout": "1",
  160.         "timeoutUnits": "seconds",
  161.         "rate": "1",
  162.         "nbRateUnits": "1",
  163.         "rateUnits": "second",
  164.         "randomFirst": "1",
  165.         "randomLast": "5",
  166.         "randomUnits": "seconds",
  167.         "drop": false,
  168.         "x": 351,
  169.         "y": 245,
  170.         "wires": [
  171.             [
  172.                 "1664e7e2.5fbb48",
  173.                 "bc67cb11.762a08",
  174.                 "f5be4488.79f6b8",
  175.                 "272ad648.ed598a"
  176.             ]
  177.         ]
  178.     },
  179.     {
  180.         "id": "e1af4093.72368",
  181.         "type": "delay",
  182.         "z": "a4a5e461.52af58",
  183.         "name": "",
  184.         "pauseType": "delay",
  185.         "timeout": "1",
  186.         "timeoutUnits": "seconds",
  187.         "rate": "1",
  188.         "nbRateUnits": "1",
  189.         "rateUnits": "second",
  190.         "randomFirst": "1",
  191.         "randomLast": "5",
  192.         "randomUnits": "seconds",
  193.         "drop": false,
  194.         "x": 351,
  195.         "y": 185,
  196.         "wires": [
  197.             [
  198.                 "2c4346b8.a9a19a",
  199.                 "1664e7e2.5fbb48",
  200.                 "ef9fbeed.3ab54",
  201.                 "f5be4488.79f6b8"
  202.             ]
  203.         ]
  204.     },
  205.     {
  206.         "id": "d6a948e9.9053c8",
  207.         "type": "delay",
  208.         "z": "a4a5e461.52af58",
  209.         "name": "",
  210.         "pauseType": "delay",
  211.         "timeout": "1",
  212.         "timeoutUnits": "seconds",
  213.         "rate": "1",
  214.         "nbRateUnits": "1",
  215.         "rateUnits": "second",
  216.         "randomFirst": "1",
  217.         "randomLast": "5",
  218.         "randomUnits": "seconds",
  219.         "drop": false,
  220.         "x": 351,
  221.         "y": 125,
  222.         "wires": [
  223.             [
  224.                 "623c2c35.afd434",
  225.                 "bc67cb11.762a08",
  226.                 "ef9fbeed.3ab54",
  227.                 "f5be4488.79f6b8"
  228.             ]
  229.         ]
  230.     },
  231.     {
  232.         "id": "479c56a7.a367c8",
  233.         "type": "delay",
  234.         "z": "a4a5e461.52af58",
  235.         "name": "",
  236.         "pauseType": "delay",
  237.         "timeout": "1",
  238.         "timeoutUnits": "seconds",
  239.         "rate": "1",
  240.         "nbRateUnits": "1",
  241.         "rateUnits": "second",
  242.         "randomFirst": "1",
  243.         "randomLast": "5",
  244.         "randomUnits": "seconds",
  245.         "drop": false,
  246.         "x": 351,
  247.         "y": 65,
  248.         "wires": [
  249.             [
  250.                 "ca852cd2.41b8",
  251.                 "1664e7e2.5fbb48",
  252.                 "bc67cb11.762a08",
  253.                 "ef9fbeed.3ab54"
  254.             ]
  255.         ]
  256.     },
  257.     {
  258.         "id": "36b59396.676f3c",
  259.         "type": "api-call-service",
  260.         "z": "a4a5e461.52af58",
  261.         "name": "Speed 1 Off",
  262.         "server": "ea672066.183ca",
  263.         "version": 1,
  264.         "debugenabled": false,
  265.         "service_domain": "switch",
  266.         "service": "turn_off",
  267.         "entityId": "switch.pool_speed_1",
  268.         "data": "",
  269.         "dataType": "json",
  270.         "mergecontext": "",
  271.         "output_location": "",
  272.         "output_location_type": "none",
  273.         "mustacheAltTags": false,
  274.         "x": 957,
  275.         "y": 63,
  276.         "wires": [
  277.             []
  278.         ]
  279.     },
  280.     {
  281.         "id": "7ef6c11a.af1a6",
  282.         "type": "api-call-service",
  283.         "z": "a4a5e461.52af58",
  284.         "name": "Speed 2 Off",
  285.         "server": "ea672066.183ca",
  286.         "version": 1,
  287.         "debugenabled": false,
  288.         "service_domain": "switch",
  289.         "service": "turn_off",
  290.         "entityId": "switch.pool_speed_2",
  291.         "data": "",
  292.         "dataType": "json",
  293.         "mergecontext": "",
  294.         "output_location": "",
  295.         "output_location_type": "none",
  296.         "mustacheAltTags": false,
  297.         "x": 957,
  298.         "y": 183,
  299.         "wires": [
  300.             []
  301.         ]
  302.     },
  303.     {
  304.         "id": "23c0dc52.2e2044",
  305.         "type": "api-call-service",
  306.         "z": "a4a5e461.52af58",
  307.         "name": "Speed 3 Off",
  308.         "server": "ea672066.183ca",
  309.         "version": 1,
  310.         "debugenabled": false,
  311.         "service_domain": "switch",
  312.         "service": "turn_off",
  313.         "entityId": "switch.pool_speed_3",
  314.         "data": "",
  315.         "dataType": "json",
  316.         "mergecontext": "",
  317.         "output_location": "",
  318.         "output_location_type": "none",
  319.         "mustacheAltTags": false,
  320.         "x": 957,
  321.         "y": 303,
  322.         "wires": [
  323.             []
  324.         ]
  325.     },
  326.     {
  327.         "id": "60c4c26d.dd2eac",
  328.         "type": "api-call-service",
  329.         "z": "a4a5e461.52af58",
  330.         "name": "Quick Clean Off",
  331.         "server": "ea672066.183ca",
  332.         "version": 1,
  333.         "debugenabled": false,
  334.         "service_domain": "switch",
  335.         "service": "turn_off",
  336.         "entityId": "switch.pool_quick_clean",
  337.         "data": "",
  338.         "dataType": "json",
  339.         "mergecontext": "",
  340.         "output_location": "",
  341.         "output_location_type": "none",
  342.         "mustacheAltTags": false,
  343.         "x": 967,
  344.         "y": 443,
  345.         "wires": [
  346.             []
  347.         ]
  348.     },
  349.     {
  350.         "id": "ca852cd2.41b8",
  351.         "type": "api-call-service",
  352.         "z": "a4a5e461.52af58",
  353.         "name": "Set Input to Quick Clean",
  354.         "server": "ea672066.183ca",
  355.         "version": 1,
  356.         "debugenabled": false,
  357.         "service_domain": "input_select",
  358.         "service": "select_option",
  359.         "entityId": "input_select.pool_control",
  360.         "data": "{\"option\":\"Quick Clean\"}",
  361.         "dataType": "json",
  362.         "mergecontext": "",
  363.         "output_location": "",
  364.         "output_location_type": "none",
  365.         "mustacheAltTags": false,
  366.         "x": 997,
  367.         "y": 123,
  368.         "wires": [
  369.             []
  370.         ]
  371.     },
  372.     {
  373.         "id": "623c2c35.afd434",
  374.         "type": "api-call-service",
  375.         "z": "a4a5e461.52af58",
  376.         "name": "Set Input to Speed 1",
  377.         "server": "ea672066.183ca",
  378.         "version": 1,
  379.         "debugenabled": false,
  380.         "service_domain": "input_select",
  381.         "service": "select_option",
  382.         "entityId": "input_select.pool_control",
  383.         "data": "{\"option\":\"Speed 1\"}",
  384.         "dataType": "json",
  385.         "mergecontext": "",
  386.         "output_location": "",
  387.         "output_location_type": "none",
  388.         "mustacheAltTags": false,
  389.         "x": 987,
  390.         "y": 243,
  391.         "wires": [
  392.             []
  393.         ]
  394.     },
  395.     {
  396.         "id": "2c4346b8.a9a19a",
  397.         "type": "api-call-service",
  398.         "z": "a4a5e461.52af58",
  399.         "name": "Set Input to Speed 2",
  400.         "server": "ea672066.183ca",
  401.         "version": 1,
  402.         "debugenabled": false,
  403.         "service_domain": "input_select",
  404.         "service": "select_option",
  405.         "entityId": "input_select.pool_control",
  406.         "data": "{\"option\":\"Speed 2\"}",
  407.         "dataType": "json",
  408.         "mergecontext": "",
  409.         "output_location": "",
  410.         "output_location_type": "none",
  411.         "mustacheAltTags": false,
  412.         "x": 987,
  413.         "y": 383,
  414.         "wires": [
  415.             []
  416.         ]
  417.     },
  418.     {
  419.         "id": "272ad648.ed598a",
  420.         "type": "api-call-service",
  421.         "z": "a4a5e461.52af58",
  422.         "name": "Set Input to Speed 3",
  423.         "server": "ea672066.183ca",
  424.         "version": 1,
  425.         "debugenabled": false,
  426.         "service_domain": "input_select",
  427.         "service": "select_option",
  428.         "entityId": "input_select.pool_control",
  429.         "data": "{\"option\":\"Speed 3\"}",
  430.         "dataType": "json",
  431.         "mergecontext": "",
  432.         "output_location": "",
  433.         "output_location_type": "none",
  434.         "mustacheAltTags": false,
  435.         "x": 987,
  436.         "y": 523,
  437.         "wires": [
  438.             []
  439.         ]
  440.     },
  441.     {
  442.         "id": "184d0810.3bdf88",
  443.         "type": "server-state-changed",
  444.         "z": "a4a5e461.52af58",
  445.         "name": "Pool Select Changed",
  446.         "server": "ea672066.183ca",
  447.         "version": 1,
  448.         "exposeToHomeAssistant": false,
  449.         "haConfig": [
  450.             {
  451.                 "property": "name",
  452.                 "value": ""
  453.             },
  454.             {
  455.                 "property": "icon",
  456.                 "value": ""
  457.             }
  458.         ],
  459.         "entityidfilter": "input_select.pool_control",
  460.         "entityidfiltertype": "exact",
  461.         "outputinitially": false,
  462.         "state_type": "str",
  463.         "haltifstate": "",
  464.         "halt_if_type": "str",
  465.         "halt_if_compare": "is",
  466.         "outputs": 1,
  467.         "output_only_on_state_change": true,
  468.         "x": 120,
  469.         "y": 653,
  470.         "wires": [
  471.             [
  472.                 "3ea03c6e.a6cdf4"
  473.             ]
  474.         ]
  475.     },
  476.     {
  477.         "id": "3ea03c6e.a6cdf4",
  478.         "type": "switch",
  479.         "z": "a4a5e461.52af58",
  480.         "name": "Option Selected",
  481.         "property": "payload",
  482.         "propertyType": "msg",
  483.         "rules": [
  484.             {
  485.                 "t": "eq",
  486.                 "v": "Off",
  487.                 "vt": "str"
  488.             },
  489.             {
  490.                 "t": "eq",
  491.                 "v": "Quick Clean",
  492.                 "vt": "str"
  493.             },
  494.             {
  495.                 "t": "eq",
  496.                 "v": "Speed 1",
  497.                 "vt": "str"
  498.             },
  499.             {
  500.                 "t": "eq",
  501.                 "v": "Speed 2",
  502.                 "vt": "str"
  503.             },
  504.             {
  505.                 "t": "eq",
  506.                 "v": "Speed 3",
  507.                 "vt": "str"
  508.             }
  509.         ],
  510.         "checkall": "true",
  511.         "repair": false,
  512.         "outputs": 5,
  513.         "x": 360,
  514.         "y": 653,
  515.         "wires": [
  516.             [
  517.                 "e0684467.ecb828"
  518.             ],
  519.             [
  520.                 "cabc15d9.c91fd8"
  521.             ],
  522.             [
  523.                 "dcd299db.2e6468"
  524.             ],
  525.             [
  526.                 "31e216fa.c0945a"
  527.             ],
  528.             [
  529.                 "3b824f6c.90df3"
  530.             ]
  531.         ]
  532.     },
  533.     {
  534.         "id": "e0684467.ecb828",
  535.         "type": "api-current-state",
  536.         "z": "a4a5e461.52af58",
  537.         "name": "Check If Off",
  538.         "server": "ea672066.183ca",
  539.         "version": 1,
  540.         "outputs": 2,
  541.         "halt_if": "off",
  542.         "halt_if_type": "str",
  543.         "halt_if_compare": "is_not",
  544.         "override_topic": false,
  545.         "entity_id": "switch.pool_on",
  546.         "state_type": "str",
  547.         "state_location": "payload",
  548.         "override_payload": "msg",
  549.         "entity_location": "data",
  550.         "override_data": "msg",
  551.         "blockInputOverrides": false,
  552.         "x": 130,
  553.         "y": 759,
  554.         "wires": [
  555.             [
  556.                 "f0aeca16.ddcb08"
  557.             ],
  558.             []
  559.         ]
  560.     },
  561.     {
  562.         "id": "f0aeca16.ddcb08",
  563.         "type": "api-call-service",
  564.         "z": "a4a5e461.52af58",
  565.         "name": "Pool Off",
  566.         "server": "ea672066.183ca",
  567.         "version": 1,
  568.         "debugenabled": false,
  569.         "service_domain": "switch",
  570.         "service": "turn_off",
  571.         "entityId": "switch.pool_on",
  572.         "data": "",
  573.         "dataType": "json",
  574.         "mergecontext": "",
  575.         "output_location": "",
  576.         "output_location_type": "none",
  577.         "mustacheAltTags": false,
  578.         "x": 120,
  579.         "y": 819,
  580.         "wires": [
  581.             []
  582.         ]
  583.     },
  584.     {
  585.         "id": "cabc15d9.c91fd8",
  586.         "type": "api-current-state",
  587.         "z": "a4a5e461.52af58",
  588.         "name": "Check If Quick Clean",
  589.         "server": "ea672066.183ca",
  590.         "version": 1,
  591.         "outputs": 2,
  592.         "halt_if": "on",
  593.         "halt_if_type": "str",
  594.         "halt_if_compare": "is_not",
  595.         "override_topic": false,
  596.         "entity_id": "switch.pool_quick_clean",
  597.         "state_type": "str",
  598.         "state_location": "payload",
  599.         "override_payload": "msg",
  600.         "entity_location": "data",
  601.         "override_data": "msg",
  602.         "blockInputOverrides": false,
  603.         "x": 340,
  604.         "y": 759,
  605.         "wires": [
  606.             [
  607.                 "e5c98be8.591c78"
  608.             ],
  609.             []
  610.         ]
  611.     },
  612.     {
  613.         "id": "e5c98be8.591c78",
  614.         "type": "api-call-service",
  615.         "z": "a4a5e461.52af58",
  616.         "name": "Quick Clean",
  617.         "server": "ea672066.183ca",
  618.         "version": 1,
  619.         "debugenabled": false,
  620.         "service_domain": "switch",
  621.         "service": "turn_on",
  622.         "entityId": "switch.pool_quick_clean",
  623.         "data": "",
  624.         "dataType": "json",
  625.         "mergecontext": "",
  626.         "output_location": "",
  627.         "output_location_type": "none",
  628.         "mustacheAltTags": false,
  629.         "x": 310,
  630.         "y": 819,
  631.         "wires": [
  632.             []
  633.         ]
  634.     },
  635.     {
  636.         "id": "dcd299db.2e6468",
  637.         "type": "api-current-state",
  638.         "z": "a4a5e461.52af58",
  639.         "name": "Check If Speed 1",
  640.         "server": "ea672066.183ca",
  641.         "version": 1,
  642.         "outputs": 2,
  643.         "halt_if": "on",
  644.         "halt_if_type": "str",
  645.         "halt_if_compare": "is_not",
  646.         "override_topic": false,
  647.         "entity_id": "switch.pool_speed_1",
  648.         "state_type": "str",
  649.         "state_location": "payload",
  650.         "override_payload": "msg",
  651.         "entity_location": "data",
  652.         "override_data": "msg",
  653.         "blockInputOverrides": false,
  654.         "x": 570,
  655.         "y": 759,
  656.         "wires": [
  657.             [
  658.                 "c98bc8a0.496fc8"
  659.             ],
  660.             []
  661.         ]
  662.     },
  663.     {
  664.         "id": "c98bc8a0.496fc8",
  665.         "type": "api-call-service",
  666.         "z": "a4a5e461.52af58",
  667.         "name": "Speed 1",
  668.         "server": "ea672066.183ca",
  669.         "version": 1,
  670.         "debugenabled": false,
  671.         "service_domain": "switch",
  672.         "service": "turn_on",
  673.         "entityId": "switch.pool_speed_1",
  674.         "data": "",
  675.         "dataType": "json",
  676.         "mergecontext": "",
  677.         "output_location": "",
  678.         "output_location_type": "none",
  679.         "mustacheAltTags": false,
  680.         "x": 540,
  681.         "y": 819,
  682.         "wires": [
  683.             []
  684.         ]
  685.     },
  686.     {
  687.         "id": "31e216fa.c0945a",
  688.         "type": "api-current-state",
  689.         "z": "a4a5e461.52af58",
  690.         "name": "Check If Speed 2",
  691.         "server": "ea672066.183ca",
  692.         "version": 1,
  693.         "outputs": 2,
  694.         "halt_if": "on",
  695.         "halt_if_type": "str",
  696.         "halt_if_compare": "is_not",
  697.         "override_topic": false,
  698.         "entity_id": "switch.pool_speed_2",
  699.         "state_type": "str",
  700.         "state_location": "payload",
  701.         "override_payload": "msg",
  702.         "entity_location": "data",
  703.         "override_data": "msg",
  704.         "blockInputOverrides": false,
  705.         "x": 790,
  706.         "y": 758,
  707.         "wires": [
  708.             [
  709.                 "6eb1b2f.1e0fc4c"
  710.             ],
  711.             []
  712.         ]
  713.     },
  714.     {
  715.         "id": "6eb1b2f.1e0fc4c",
  716.         "type": "api-call-service",
  717.         "z": "a4a5e461.52af58",
  718.         "name": "Speed 2",
  719.         "server": "ea672066.183ca",
  720.         "version": 1,
  721.         "debugenabled": false,
  722.         "service_domain": "switch",
  723.         "service": "turn_on",
  724.         "entityId": "switch.pool_speed_2",
  725.         "data": "",
  726.         "dataType": "json",
  727.         "mergecontext": "",
  728.         "output_location": "",
  729.         "output_location_type": "none",
  730.         "mustacheAltTags": false,
  731.         "x": 760,
  732.         "y": 818,
  733.         "wires": [
  734.             []
  735.         ]
  736.     },
  737.     {
  738.         "id": "3b824f6c.90df3",
  739.         "type": "api-current-state",
  740.         "z": "a4a5e461.52af58",
  741.         "name": "Check If Speed 3",
  742.         "server": "ea672066.183ca",
  743.         "version": 1,
  744.         "outputs": 2,
  745.         "halt_if": "on",
  746.         "halt_if_type": "str",
  747.         "halt_if_compare": "is_not",
  748.         "override_topic": false,
  749.         "entity_id": "switch.pool_speed_3",
  750.         "state_type": "str",
  751.         "state_location": "payload",
  752.         "override_payload": "msg",
  753.         "entity_location": "data",
  754.         "override_data": "msg",
  755.         "blockInputOverrides": false,
  756.         "x": 1010,
  757.         "y": 758,
  758.         "wires": [
  759.             [
  760.                 "f86c6477.8fbcb8"
  761.             ],
  762.             []
  763.         ]
  764.     },
  765.     {
  766.         "id": "f86c6477.8fbcb8",
  767.         "type": "api-call-service",
  768.         "z": "a4a5e461.52af58",
  769.         "name": "Speed 3",
  770.         "server": "ea672066.183ca",
  771.         "version": 1,
  772.         "debugenabled": false,
  773.         "service_domain": "switch",
  774.         "service": "turn_on",
  775.         "entityId": "switch.pool_speed_3",
  776.         "data": "",
  777.         "dataType": "json",
  778.         "mergecontext": "",
  779.         "output_location": "",
  780.         "output_location_type": "none",
  781.         "mustacheAltTags": false,
  782.         "x": 980,
  783.         "y": 818,
  784.         "wires": [
  785.             []
  786.         ]
  787.     },
  788.     {
  789.         "id": "1664e7e2.5fbb48",
  790.         "type": "api-current-state",
  791.         "z": "a4a5e461.52af58",
  792.         "name": "Speed 1 On",
  793.         "server": "ea672066.183ca",
  794.         "version": 1,
  795.         "outputs": 2,
  796.         "halt_if": "on",
  797.         "halt_if_type": "str",
  798.         "halt_if_compare": "is",
  799.         "override_topic": false,
  800.         "entity_id": "switch.pool_speed_1",
  801.         "state_type": "str",
  802.         "state_location": "payload",
  803.         "override_payload": "msg",
  804.         "entity_location": "data",
  805.         "override_data": "msg",
  806.         "blockInputOverrides": false,
  807.         "x": 715,
  808.         "y": 68,
  809.         "wires": [
  810.             [
  811.                 "36b59396.676f3c"
  812.             ],
  813.             []
  814.         ]
  815.     },
  816.     {
  817.         "id": "bc67cb11.762a08",
  818.         "type": "api-current-state",
  819.         "z": "a4a5e461.52af58",
  820.         "name": "Speed 2 On",
  821.         "server": "ea672066.183ca",
  822.         "version": 1,
  823.         "outputs": 2,
  824.         "halt_if": "on",
  825.         "halt_if_type": "str",
  826.         "halt_if_compare": "is",
  827.         "override_topic": false,
  828.         "entity_id": "switch.pool_speed_2",
  829.         "state_type": "str",
  830.         "state_location": "payload",
  831.         "override_payload": "msg",
  832.         "entity_location": "data",
  833.         "override_data": "msg",
  834.         "blockInputOverrides": false,
  835.         "x": 715,
  836.         "y": 188,
  837.         "wires": [
  838.             [
  839.                 "7ef6c11a.af1a6"
  840.             ],
  841.             []
  842.         ]
  843.     },
  844.     {
  845.         "id": "ef9fbeed.3ab54",
  846.         "type": "api-current-state",
  847.         "z": "a4a5e461.52af58",
  848.         "name": "Speed 3 On",
  849.         "server": "ea672066.183ca",
  850.         "version": 1,
  851.         "outputs": 2,
  852.         "halt_if": "on",
  853.         "halt_if_type": "str",
  854.         "halt_if_compare": "is",
  855.         "override_topic": false,
  856.         "entity_id": "switch.pool_speed_3",
  857.         "state_type": "str",
  858.         "state_location": "payload",
  859.         "override_payload": "msg",
  860.         "entity_location": "data",
  861.         "override_data": "msg",
  862.         "blockInputOverrides": false,
  863.         "x": 715,
  864.         "y": 308,
  865.         "wires": [
  866.             [
  867.                 "23c0dc52.2e2044"
  868.             ],
  869.             []
  870.         ]
  871.     },
  872.     {
  873.         "id": "f5be4488.79f6b8",
  874.         "type": "api-current-state",
  875.         "z": "a4a5e461.52af58",
  876.         "name": "Quick Clean On",
  877.         "server": "ea672066.183ca",
  878.         "version": 1,
  879.         "outputs": 2,
  880.         "halt_if": "on",
  881.         "halt_if_type": "str",
  882.         "halt_if_compare": "is",
  883.         "override_topic": false,
  884.         "entity_id": "switch.pool_quick_clean",
  885.         "state_type": "str",
  886.         "state_location": "payload",
  887.         "override_payload": "msg",
  888.         "entity_location": "data",
  889.         "override_data": "msg",
  890.         "blockInputOverrides": false,
  891.         "x": 725,
  892.         "y": 448,
  893.         "wires": [
  894.             [
  895.                 "60c4c26d.dd2eac"
  896.             ],
  897.             []
  898.         ]
  899.     },
  900.     {
  901.         "id": "51a113a7.f153fc",
  902.         "type": "comment",
  903.         "z": "a4a5e461.52af58",
  904.         "name": "Pool Switch Automation",
  905.         "info": "",
  906.         "x": 120,
  907.         "y": 25,
  908.         "wires": []
  909.     },
  910.     {
  911.         "id": "60fdb83e.cb2cb8",
  912.         "type": "comment",
  913.         "z": "a4a5e461.52af58",
  914.         "name": "Pool Input Select Automation",
  915.         "info": "",
  916.         "x": 140,
  917.         "y": 613,
  918.         "wires": []
  919.     },
  920.     {
  921.         "id": "bee9c408.daf7f8",
  922.         "type": "server-state-changed",
  923.         "z": "a4a5e461.52af58",
  924.         "name": "Pool Off",
  925.         "server": "ea672066.183ca",
  926.         "version": 1,
  927.         "exposeToHomeAssistant": false,
  928.         "haConfig": [
  929.             {
  930.                 "property": "name",
  931.                 "value": ""
  932.             },
  933.             {
  934.                 "property": "icon",
  935.                 "value": ""
  936.             }
  937.         ],
  938.         "entityidfilter": "switch.pool_on",
  939.         "entityidfiltertype": "exact",
  940.         "outputinitially": false,
  941.         "state_type": "str",
  942.         "haltifstate": "off",
  943.         "halt_if_type": "str",
  944.         "halt_if_compare": "is",
  945.         "outputs": 2,
  946.         "output_only_on_state_change": true,
  947.         "x": 70,
  948.         "y": 392,
  949.         "wires": [
  950.             [
  951.                 "caf5de06.8050a"
  952.             ],
  953.             []
  954.         ]
  955.     },
  956.     {
  957.         "id": "9deb774e.4d41f8",
  958.         "type": "comment",
  959.         "z": "a4a5e461.52af58",
  960.         "name": "Pool Off Update",
  961.         "info": "",
  962.         "x": 100,
  963.         "y": 352,
  964.         "wires": []
  965.     },
  966.     {
  967.         "id": "caf5de06.8050a",
  968.         "type": "api-call-service",
  969.         "z": "a4a5e461.52af58",
  970.         "name": "Set Input to Off",
  971.         "server": "ea672066.183ca",
  972.         "version": 1,
  973.         "debugenabled": false,
  974.         "service_domain": "input_select",
  975.         "service": "select_option",
  976.         "entityId": "input_select.pool_control",
  977.         "data": "{\"option\":\"Off\"}",
  978.         "dataType": "json",
  979.         "mergecontext": "",
  980.         "output_location": "",
  981.         "output_location_type": "none",
  982.         "mustacheAltTags": false,
  983.         "x": 280,
  984.         "y": 392,
  985.         "wires": [
  986.             []
  987.         ]
  988.     },
  989.     {
  990.         "id": "59b08a34.c2d534",
  991.         "type": "server-state-changed",
  992.         "z": "a4a5e461.52af58",
  993.         "name": "Pool Schedule",
  994.         "server": "ea672066.183ca",
  995.         "version": 1,
  996.         "exposeToHomeAssistant": true,
  997.         "haConfig": [
  998.             {
  999.                 "property": "name",
  1000.                 "value": "Pool Schedule Enabled"
  1001.             },
  1002.             {
  1003.                 "property": "icon",
  1004.                 "value": "mdi:calendar"
  1005.             }
  1006.         ],
  1007.         "entityidfilter": "sensor.poolschedule",
  1008.         "entityidfiltertype": "exact",
  1009.         "outputinitially": true,
  1010.         "state_type": "str",
  1011.         "haltifstate": "",
  1012.         "halt_if_type": "str",
  1013.         "halt_if_compare": "is",
  1014.         "outputs": 1,
  1015.         "output_only_on_state_change": true,
  1016.         "x": 90,
  1017.         "y": 520,
  1018.         "wires": [
  1019.             [
  1020.                 "d8586ef9.ffb15"
  1021.             ]
  1022.         ]
  1023.     },
  1024.     {
  1025.         "id": "5f436624.574d38",
  1026.         "type": "comment",
  1027.         "z": "a4a5e461.52af58",
  1028.         "name": "Pool Schedule Change",
  1029.         "info": "",
  1030.         "x": 120,
  1031.         "y": 480,
  1032.         "wires": []
  1033.     },
  1034.     {
  1035.         "id": "b1fa176e.61f608",
  1036.         "type": "api-call-service",
  1037.         "z": "a4a5e461.52af58",
  1038.         "name": "Set Input to Current State",
  1039.         "server": "ea672066.183ca",
  1040.         "version": 1,
  1041.         "debugenabled": false,
  1042.         "service_domain": "input_select",
  1043.         "service": "select_option",
  1044.         "entityId": "input_select.pool_control",
  1045.         "data": "{\"option\":\"{{payload}}\"}",
  1046.         "dataType": "json",
  1047.         "mergecontext": "",
  1048.         "output_location": "",
  1049.         "output_location_type": "none",
  1050.         "mustacheAltTags": false,
  1051.         "x": 590,
  1052.         "y": 520,
  1053.         "wires": [
  1054.             [
  1055.                 "3ea03c6e.a6cdf4"
  1056.             ]
  1057.         ]
  1058.     },
  1059.     {
  1060.         "id": "d8586ef9.ffb15",
  1061.         "type": "api-current-state",
  1062.         "z": "a4a5e461.52af58",
  1063.         "name": "Get Current Schedule",
  1064.         "server": "ea672066.183ca",
  1065.         "version": 1,
  1066.         "outputs": 1,
  1067.         "halt_if": "",
  1068.         "halt_if_type": "str",
  1069.         "halt_if_compare": "is_not",
  1070.         "override_topic": false,
  1071.         "entity_id": "sensor.poolschedule",
  1072.         "state_type": "str",
  1073.         "state_location": "payload",
  1074.         "override_payload": "msg",
  1075.         "entity_location": "data",
  1076.         "override_data": "msg",
  1077.         "blockInputOverrides": false,
  1078.         "x": 320,
  1079.         "y": 520,
  1080.         "wires": [
  1081.             [
  1082.                 "b1fa176e.61f608"
  1083.             ]
  1084.         ]
  1085.     },
  1086.     {
  1087.         "id": "ea672066.183ca",
  1088.         "type": "server",
  1089.         "z": "",
  1090.         "name": "Home Assistant"
  1091.     }
  1092. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement