Advertisement
-Teme-

rank-temp-price control

Oct 26th, 2023 (edited)
1,158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.68 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "24fec2df3f2e5521",
  4.         "type": "switch",
  5.         "z": "41157ceb102bfa41",
  6.         "name": "price",
  7.         "property": "price",
  8.         "propertyType": "msg",
  9.         "rules": [
  10.             {
  11.                 "t": "lt",
  12.                 "v": "0.05",
  13.                 "vt": "num"
  14.             },
  15.             {
  16.                 "t": "gte",
  17.                 "v": "0.05",
  18.                 "vt": "num"
  19.             }
  20.         ],
  21.         "checkall": "true",
  22.         "repair": false,
  23.         "outputs": 2,
  24.         "x": 490,
  25.         "y": 1840,
  26.         "wires": [
  27.             [
  28.                 "228fea079e17db6b"
  29.             ],
  30.             [
  31.                 "0a5af0b18b5f4106"
  32.             ]
  33.         ]
  34.     },
  35.     {
  36.         "id": "4e7f024adbd82d95",
  37.         "type": "switch",
  38.         "z": "41157ceb102bfa41",
  39.         "name": "price",
  40.         "property": "price",
  41.         "propertyType": "msg",
  42.         "rules": [
  43.             {
  44.                 "t": "lt",
  45.                 "v": "0.05",
  46.                 "vt": "num"
  47.             },
  48.             {
  49.                 "t": "gte",
  50.                 "v": "0.05",
  51.                 "vt": "num"
  52.             }
  53.         ],
  54.         "checkall": "true",
  55.         "repair": false,
  56.         "outputs": 2,
  57.         "x": 480,
  58.         "y": 1910,
  59.         "wires": [
  60.             [
  61.                 "228fea079e17db6b"
  62.             ],
  63.             [
  64.                 "6076893a651af80e"
  65.             ]
  66.         ]
  67.     },
  68.     {
  69.         "id": "0a5af0b18b5f4106",
  70.         "type": "switch",
  71.         "z": "41157ceb102bfa41",
  72.         "name": "rank ≤5",
  73.         "property": "payload",
  74.         "propertyType": "msg",
  75.         "rules": [
  76.             {
  77.                 "t": "lte",
  78.                 "v": "5",
  79.                 "vt": "num"
  80.             },
  81.             {
  82.                 "t": "gt",
  83.                 "v": "5",
  84.                 "vt": "num"
  85.             }
  86.         ],
  87.         "checkall": "true",
  88.         "repair": false,
  89.         "outputs": 2,
  90.         "x": 810,
  91.         "y": 1850,
  92.         "wires": [
  93.             [
  94.                 "5e089a5af6c166b0"
  95.             ],
  96.             [
  97.                 "536bfc400d70f984"
  98.             ]
  99.         ]
  100.     },
  101.     {
  102.         "id": "8cf3a50ab10da9e5",
  103.         "type": "switch",
  104.         "z": "41157ceb102bfa41",
  105.         "name": "temp ≤6",
  106.         "property": "payload",
  107.         "propertyType": "msg",
  108.         "rules": [
  109.             {
  110.                 "t": "lt",
  111.                 "v": "6",
  112.                 "vt": "num"
  113.             },
  114.             {
  115.                 "t": "gte",
  116.                 "v": "6",
  117.                 "vt": "num"
  118.             }
  119.         ],
  120.         "checkall": "true",
  121.         "repair": false,
  122.         "outputs": 2,
  123.         "x": 810,
  124.         "y": 1910,
  125.         "wires": [
  126.             [
  127.                 "5e089a5af6c166b0"
  128.             ],
  129.             [
  130.                 "536bfc400d70f984"
  131.             ]
  132.         ]
  133.     },
  134.     {
  135.         "id": "aba4264a83cfcdcb",
  136.         "type": "server-state-changed",
  137.         "z": "41157ceb102bfa41",
  138.         "name": "rank",
  139.         "server": "ec62f897660298cb",
  140.         "version": 5,
  141.         "outputs": 1,
  142.         "exposeAsEntityConfig": "",
  143.         "entityId": "sensor.shf_rank_now",
  144.         "entityIdType": "exact",
  145.         "outputInitially": false,
  146.         "stateType": "num",
  147.         "ifState": "",
  148.         "ifStateType": "str",
  149.         "ifStateOperator": "is",
  150.         "outputOnlyOnStateChange": true,
  151.         "for": "0",
  152.         "forType": "num",
  153.         "forUnits": "minutes",
  154.         "ignorePrevStateNull": false,
  155.         "ignorePrevStateUnknown": false,
  156.         "ignorePrevStateUnavailable": false,
  157.         "ignoreCurrentStateUnknown": false,
  158.         "ignoreCurrentStateUnavailable": false,
  159.         "outputProperties": [
  160.             {
  161.                 "property": "payload",
  162.                 "propertyType": "msg",
  163.                 "value": "",
  164.                 "valueType": "entityState"
  165.             },
  166.             {
  167.                 "property": "price",
  168.                 "propertyType": "msg",
  169.                 "value": "$number($entities(\"sensor.shf_electricity_price_now\").state)",
  170.                 "valueType": "jsonata"
  171.             }
  172.         ],
  173.         "x": 290,
  174.         "y": 1840,
  175.         "wires": [
  176.             [
  177.                 "24fec2df3f2e5521"
  178.             ]
  179.         ]
  180.     },
  181.     {
  182.         "id": "11ab9b4a0b11a25d",
  183.         "type": "server-state-changed",
  184.         "z": "41157ceb102bfa41",
  185.         "name": "Temperature",
  186.         "server": "ec62f897660298cb",
  187.         "version": 5,
  188.         "outputs": 1,
  189.         "exposeAsEntityConfig": "",
  190.         "entityId": "sensor.atc_6111_temperature",
  191.         "entityIdType": "exact",
  192.         "outputInitially": false,
  193.         "stateType": "num",
  194.         "ifState": "",
  195.         "ifStateType": "str",
  196.         "ifStateOperator": "is",
  197.         "outputOnlyOnStateChange": true,
  198.         "for": "0",
  199.         "forType": "num",
  200.         "forUnits": "minutes",
  201.         "ignorePrevStateNull": false,
  202.         "ignorePrevStateUnknown": false,
  203.         "ignorePrevStateUnavailable": false,
  204.         "ignoreCurrentStateUnknown": false,
  205.         "ignoreCurrentStateUnavailable": false,
  206.         "outputProperties": [
  207.             {
  208.                 "property": "payload",
  209.                 "propertyType": "msg",
  210.                 "value": "",
  211.                 "valueType": "entityState"
  212.             },
  213.             {
  214.                 "property": "price",
  215.                 "propertyType": "msg",
  216.                 "value": "$number($entities(\"sensor.shf_electricity_price_now\").state)",
  217.                 "valueType": "jsonata"
  218.             }
  219.         ],
  220.         "x": 310,
  221.         "y": 1910,
  222.         "wires": [
  223.             [
  224.                 "4e7f024adbd82d95"
  225.             ]
  226.         ]
  227.     },
  228.     {
  229.         "id": "6076893a651af80e",
  230.         "type": "rbe",
  231.         "z": "41157ceb102bfa41",
  232.         "name": "0.5",
  233.         "func": "deadband",
  234.         "gap": "0.5",
  235.         "start": "",
  236.         "inout": "out",
  237.         "septopics": true,
  238.         "property": "payload",
  239.         "topi": "topic",
  240.         "x": 660,
  241.         "y": 1910,
  242.         "wires": [
  243.             [
  244.                 "8cf3a50ab10da9e5"
  245.             ]
  246.         ]
  247.     },
  248.     {
  249.         "id": "228fea079e17db6b",
  250.         "type": "junction",
  251.         "z": "41157ceb102bfa41",
  252.         "x": 670,
  253.         "y": 1820,
  254.         "wires": [
  255.             [
  256.                 "5e089a5af6c166b0"
  257.             ]
  258.         ]
  259.     },
  260.     {
  261.         "id": "5e089a5af6c166b0",
  262.         "type": "junction",
  263.         "z": "41157ceb102bfa41",
  264.         "x": 970,
  265.         "y": 1820,
  266.         "wires": [
  267.             [
  268.                 "a45f72cf043b2140"
  269.             ]
  270.         ]
  271.     },
  272.     {
  273.         "id": "536bfc400d70f984",
  274.         "type": "junction",
  275.         "z": "41157ceb102bfa41",
  276.         "x": 970,
  277.         "y": 1910,
  278.         "wires": [
  279.             [
  280.                 "785e7b1f453bb836"
  281.             ]
  282.         ]
  283.     },
  284.     {
  285.         "id": "ec62f897660298cb",
  286.         "type": "server",
  287.         "name": "Home Assistant",
  288.         "version": 5,
  289.         "addon": false,
  290.         "rejectUnauthorizedCerts": true,
  291.         "ha_boolean": "y|yes|true|on|home|open",
  292.         "connectionDelay": true,
  293.         "cacheJson": true,
  294.         "heartbeat": false,
  295.         "heartbeatInterval": "30",
  296.         "areaSelector": "friendlyName",
  297.         "deviceSelector": "friendlyName",
  298.         "entitySelector": "friendlyName",
  299.         "statusSeparator": "at: ",
  300.         "statusYear": "hidden",
  301.         "statusMonth": "short",
  302.         "statusDay": "numeric",
  303.         "statusHourCycle": "h23",
  304.         "statusTimeFormat": "h:m",
  305.         "enableGlobalContextStore": true
  306.     }
  307. ]
Tags: node-red
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement