Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "1d6e6711.45a469",
- "type": "tab",
- "label": "Flow 2",
- "disabled": false,
- "info": ""
- },
- {
- "id": "fae8530f.a74e",
- "type": "light-scheduler",
- "z": "1d6e6711.45a469",
- "settings": "3c59b52c.740f9a",
- "events": "[{\"start\":{\"dow\":1,\"mod\":420},\"end\":{\"dow\":1,\"mod\":1320}},{\"start\":{\"dow\":2,\"mod\":420},\"end\":{\"dow\":2,\"mod\":1320}},{\"start\":{\"dow\":3,\"mod\":420},\"end\":{\"dow\":3,\"mod\":1320}},{\"start\":{\"dow\":4,\"mod\":420},\"end\":{\"dow\":4,\"mod\":1320}},{\"start\":{\"dow\":5,\"mod\":420},\"end\":{\"dow\":5,\"mod\":1320}},{\"start\":{\"dow\":6,\"mod\":420},\"end\":{\"dow\":6,\"mod\":1320}},{\"start\":{\"dow\":0,\"mod\":420},\"end\":{\"dow\":0,\"mod\":1320}}]",
- "topic": "",
- "name": "Sleeptime",
- "onPayload": "on",
- "onPayloadType": "str",
- "offPayload": "off",
- "offPayloadType": "str",
- "onlyWhenDark": false,
- "scheduleRndMax": "",
- "sunElevationThreshold": 6,
- "sunShowElevationInStatus": false,
- "outputfreq": "output.statechange",
- "x": 140,
- "y": 160,
- "wires": [
- [
- "890d8e73.f3fab"
- ]
- ]
- },
- {
- "id": "890d8e73.f3fab",
- "type": "switch",
- "z": "1d6e6711.45a469",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "on",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "off",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 265,
- "y": 160,
- "wires": [
- [
- "e51929bd.353388"
- ],
- [
- "77cff2c6.5ff56c"
- ]
- ],
- "l": false
- },
- {
- "id": "cba92170.cde29",
- "type": "comment",
- "z": "1d6e6711.45a469",
- "name": "Установка принятых периодов сна и бодрствования",
- "info": "",
- "x": 260,
- "y": 80,
- "wires": []
- },
- {
- "id": "f03d3365.433cd",
- "type": "api-call-service",
- "z": "1d6e6711.45a469",
- "name": "HA",
- "server": "b9490f48.586ed",
- "version": 3,
- "debugenabled": false,
- "service_domain": "",
- "service": "",
- "entityId": "",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "mustacheAltTags": false,
- "outputProperties": [
- {
- "property": "payload",
- "propertyType": "msg",
- "value": "",
- "valueType": "data"
- }
- ],
- "queue": "none",
- "x": 515,
- "y": 160,
- "wires": [
- []
- ],
- "l": false
- },
- {
- "id": "e51929bd.353388",
- "type": "template",
- "z": "1d6e6711.45a469",
- "name": "Daytime",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{\n \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.house_mode\",\n \"option\": \"Daytime\"\n }\n}",
- "output": "str",
- "x": 400,
- "y": 140,
- "wires": [
- [
- "f03d3365.433cd"
- ]
- ]
- },
- {
- "id": "77cff2c6.5ff56c",
- "type": "template",
- "z": "1d6e6711.45a469",
- "name": "Sleeping",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{\n \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.house_mode\",\n \"option\": \"Sleeping\"\n }\n}",
- "output": "str",
- "x": 400,
- "y": 180,
- "wires": [
- [
- "f03d3365.433cd"
- ]
- ]
- },
- {
- "id": "706faac6.dd4fa4",
- "type": "api-current-state",
- "z": "1d6e6711.45a469",
- "name": "Режим дня",
- "server": "b9490f48.586ed",
- "version": 2,
- "outputs": 2,
- "halt_if": "Daytime",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "entity_id": "input_select.house_mode",
- "state_type": "str",
- "blockInputOverrides": false,
- "outputProperties": [
- {
- "property": "payload",
- "propertyType": "msg",
- "value": "",
- "valueType": "entityState"
- },
- {
- "property": "data",
- "propertyType": "msg",
- "value": "",
- "valueType": "entity"
- }
- ],
- "x": 310,
- "y": 380,
- "wires": [
- [
- "29925994.930c96"
- ],
- [
- "52b60c4c.dc7334"
- ]
- ],
- "outputLabels": [
- "Daytime",
- "Sleeping"
- ],
- "icon": "node-red-contrib-eztimer/datetime.png"
- },
- {
- "id": "bd7f9dfd.4643a",
- "type": "inject",
- "z": "1d6e6711.45a469",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 140,
- "y": 380,
- "wires": [
- [
- "706faac6.dd4fa4"
- ]
- ]
- },
- {
- "id": "29925994.930c96",
- "type": "debug",
- "z": "1d6e6711.45a469",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 490,
- "y": 360,
- "wires": []
- },
- {
- "id": "52b60c4c.dc7334",
- "type": "debug",
- "z": "1d6e6711.45a469",
- "name": "",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "false",
- "statusVal": "",
- "statusType": "auto",
- "x": 490,
- "y": 400,
- "wires": []
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement