Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "ba7fdad2.1f14b8",
- "type": "server-state-changed",
- "z": "74bde181.c781",
- "name": "Motion in Office",
- "server": "ad7854a1.e84738",
- "entityidfilter": "binary_sensor.office_motion",
- "entityidfiltertype": "substring",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 1,
- "x": 110,
- "y": 210,
- "wires": [
- [
- "94f7c3f6.33217"
- ]
- ]
- },
- {
- "id": "8efff11b.00bcc",
- "type": "api-call-service",
- "z": "74bde181.c781",
- "name": "Turn on @ 100%",
- "server": "ad7854a1.e84738",
- "service_domain": "light",
- "service": "turn_on",
- "data": "{\"entity_id\":\"light.desk_light\",\"transition\":\"10\",\"brightness_pct\":\"100\",\"color_temp\":\"300\"}",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "x": 1000,
- "y": 130,
- "wires": [
- []
- ]
- },
- {
- "id": "94f7c3f6.33217",
- "type": "switch",
- "z": "74bde181.c781",
- "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": 310,
- "y": 210,
- "wires": [
- [
- "49a596e0.011158",
- "8a164df1.83812"
- ],
- [
- "fdf0e749.f5d058"
- ]
- ]
- },
- {
- "id": "a197150.b9ea2e8",
- "type": "time-range-switch",
- "z": "74bde181.c781",
- "name": "Determine brightness",
- "lat": "40.07562",
- "lon": "-82.86322",
- "startTime": "09:00",
- "endTime": "20:00",
- "startOffset": "",
- "endOffset": "",
- "x": 710,
- "y": 80,
- "wires": [
- [
- "8efff11b.00bcc"
- ],
- [
- "4992fd03.1aaf14"
- ]
- ]
- },
- {
- "id": "4992fd03.1aaf14",
- "type": "api-call-service",
- "z": "74bde181.c781",
- "name": "Turn on @ 5%",
- "server": "ad7854a1.e84738",
- "service_domain": "light",
- "service": "turn_on",
- "data": "{\"entity_id\":\"light.desk_light\",\"transition\":\"10\",\"brightness_pct\":\"5\",\"color_temp\":\"300\"}",
- "mergecontext": "",
- "output_location": "payload",
- "output_location_type": "msg",
- "x": 1000,
- "y": 180,
- "wires": [
- []
- ]
- },
- {
- "id": "49a596e0.011158",
- "type": "api-current-state",
- "z": "74bde181.c781",
- "name": "Already on?",
- "server": "ad7854a1.e84738",
- "outputs": 2,
- "halt_if": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": true,
- "entity_id": "light.desk_light",
- "state_type": "str",
- "override_payload": true,
- "override_data": true,
- "x": 470,
- "y": 150,
- "wires": [
- [
- "cc0f0a84.a885c8"
- ],
- []
- ]
- },
- {
- "id": "8a164df1.83812",
- "type": "change",
- "z": "74bde181.c781",
- "name": "Stop",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "stop",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 460,
- "y": 210,
- "wires": [
- [
- "fdf0e749.f5d058"
- ]
- ]
- },
- {
- "id": "cc0f0a84.a885c8",
- "type": "api-current-state",
- "z": "74bde181.c781",
- "name": "Disable automation check",
- "server": "ad7854a1.e84738",
- "outputs": 2,
- "halt_if": "off",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "input_boolean.office",
- "state_type": "str",
- "override_payload": false,
- "override_data": false,
- "x": 700,
- "y": 150,
- "wires": [
- [
- "a197150.b9ea2e8"
- ],
- []
- ]
- },
- {
- "id": "ad7854a1.e84738",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "legacy": false,
- "hassio": false,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open"
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement