Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "96a9406d.5e047",
- "type": "server-state-changed",
- "z": "7419214.90ad1e",
- "name": "Pobierz wartość ",
- "server": "e0f8519.9002eb",
- "version": 1,
- "entityidfilter": "input_number.termostat",
- "entityidfiltertype": "exact",
- "outputinitially": true,
- "state_type": "num",
- "haltifstate": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 1,
- "output_only_on_state_change": true,
- "x": 760,
- "y": 1080,
- "wires": [
- [
- "3fc7ec2c.0a93a4"
- ]
- ]
- },
- {
- "id": "3fc7ec2c.0a93a4",
- "type": "function",
- "z": "7419214.90ad1e",
- "name": "set var target",
- "func": "flow.set('target', msg.payload); \nflow.set('cold_tolerance', 0.4); \nflow.set('hot_tolerance', 0.4); // to store a variable (YourVariable)\nvar x = flow.get('target'); //to retrieve a variable (YourVariable)\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 950,
- "y": 1080,
- "wires": [
- [
- "b40fcf6f.37b98"
- ]
- ]
- },
- {
- "id": "b40fcf6f.37b98",
- "type": "exec",
- "z": "7419214.90ad1e",
- "command": "echo 192.168.0.17 --rhset $target",
- "addpay": true,
- "append": "",
- "useSpawn": "false",
- "timer": "",
- "oldrc": false,
- "name": "",
- "x": 1180,
- "y": 1080,
- "wires": [
- [
- "31638b2.eb9fb74"
- ],
- [],
- []
- ]
- },
- {
- "id": "31638b2.eb9fb74",
- "type": "debug",
- "z": "7419214.90ad1e",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "x": 1450,
- "y": 1040,
- "wires": []
- },
- {
- "id": "e0f8519.9002eb",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "legacy": false,
- "hassio": false,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true,
- "cacheJson": true
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement