Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "7b9cfb80.c9e8e4",
- "type": "api-call-service",
- "z": "d95d410b.da89f",
- "name": "Heater On",
- "server": "b55184c9.017a48",
- "version": 1,
- "debugenabled": false,
- "service_domain": "switch",
- "service": "turn_on",
- "entityId": "switch.d1_relay_signal",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 672,
- "y": 375,
- "wires": [
- []
- ]
- },
- {
- "id": "d546ce1c.1ed72",
- "type": "server-state-changed",
- "z": "d95d410b.da89f",
- "name": "Timer-start",
- "server": "b55184c9.017a48",
- "version": 1,
- "exposeToHomeAssistant": false,
- "haConfig": [
- {
- "property": "name",
- "value": ""
- },
- {
- "property": "icon",
- "value": ""
- }
- ],
- "entityidfilter": "input_boolean.heater_timer",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 2,
- "output_only_on_state_change": true,
- "x": 125,
- "y": 370,
- "wires": [
- [
- "68a7bcde.a04c34",
- "9e256f54.f7d9e"
- ],
- []
- ]
- },
- {
- "id": "68a7bcde.a04c34",
- "type": "api-current-state",
- "z": "d95d410b.da89f",
- "name": "how long?",
- "server": "b55184c9.017a48",
- "version": 1,
- "outputs": 1,
- "halt_if": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": true,
- "entity_id": "input_number.heat_timer",
- "state_type": "num",
- "state_location": "payload",
- "override_payload": "msg",
- "entity_location": "data",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 283,
- "y": 374,
- "wires": [
- [
- "7b9cfb80.c9e8e4",
- "2426d29d.f3c41e"
- ]
- ]
- },
- {
- "id": "9e256f54.f7d9e",
- "type": "delay",
- "z": "d95d410b.da89f",
- "name": "",
- "pauseType": "delay",
- "timeout": "5",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 292,
- "y": 300,
- "wires": [
- [
- "38996538.c7b06a"
- ]
- ]
- },
- {
- "id": "38996538.c7b06a",
- "type": "api-call-service",
- "z": "d95d410b.da89f",
- "name": "Timer - button reset",
- "server": "b55184c9.017a48",
- "version": 1,
- "debugenabled": false,
- "service_domain": "input_boolean",
- "service": "turn_off",
- "entityId": "input_boolean.heater_timer",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 477,
- "y": 300,
- "wires": [
- []
- ]
- },
- {
- "id": "c8b32ea4.22229",
- "type": "change",
- "z": "d95d410b.da89f",
- "name": "change",
- "rules": [
- {
- "t": "move",
- "p": "payload",
- "pt": "msg",
- "to": "timeout",
- "tot": "msg"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "on",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 300,
- "y": 496,
- "wires": [
- [
- "c486fdee.4b707"
- ]
- ]
- },
- {
- "id": "b5ad2918.a2b468",
- "type": "debug",
- "z": "d95d410b.da89f",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "x": 527,
- "y": 627,
- "wires": []
- },
- {
- "id": "c486fdee.4b707",
- "type": "mytimeout",
- "z": "d95d410b.da89f",
- "name": "timer - off",
- "outtopic": "",
- "outsafe": "1",
- "outwarning": "",
- "outunsafe": "0",
- "warning": "0",
- "timer": "0",
- "debug": false,
- "ndebug": false,
- "ignoreCase": false,
- "repeat": false,
- "again": false,
- "x": 359,
- "y": 552,
- "wires": [
- [],
- [
- "b5ad2918.a2b468",
- "81576d9.6879f9"
- ]
- ]
- },
- {
- "id": "2426d29d.f3c41e",
- "type": "function",
- "z": "d95d410b.da89f",
- "name": "min > sec",
- "func": "// Change from minutes to seconds\nmsg.payload = msg.payload * 60;\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 153,
- "y": 497,
- "wires": [
- [
- "c8b32ea4.22229"
- ]
- ]
- },
- {
- "id": "e241748f.69f218",
- "type": "api-call-service",
- "z": "d95d410b.da89f",
- "name": "Heater Off",
- "server": "b55184c9.017a48",
- "version": 1,
- "debugenabled": false,
- "service_domain": "switch",
- "service": "turn_off",
- "entityId": "switch.d1_relay_signal",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 672,
- "y": 553,
- "wires": [
- []
- ]
- },
- {
- "id": "81576d9.6879f9",
- "type": "switch",
- "z": "d95d410b.da89f",
- "name": "off",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "0",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 504,
- "y": 553,
- "wires": [
- [
- "e241748f.69f218"
- ]
- ]
- },
- {
- "id": "b55184c9.017a48",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "legacy": false,
- "addon": true,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true,
- "cacheJson": true
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement