diff --git a/flows.json b/flows.json index c854fec..ac185bc 100644 --- a/flows.json +++ b/flows.json @@ -22442,5 +22442,158 @@ "type": "tab", "label": "presence", "id": "6dfa989bb120e6c6" + }, + { + "id": "pres001a2b3c4d5e", + "type": "server-state-changed", + "z": "6dfa989bb120e6c6", + "name": "Mischa presence", + "wires": [ + [ + "pres002a2b3c4d5e" + ] + ], + "server": "657c7463.48e1e4", + "version": 6, + "exposeAsEntityConfig": "", + "entities": { + "entity": [ + "person.mischa_gorinskat" + ], + "substring": [], + "regex": [] + }, + "outputInitially": false, + "stateType": "str", + "ifState": "", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": 0, + "forType": "num", + "forUnits": "minutes", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": false, + "ignorePrevStateUnavailable": false, + "ignoreCurrentStateUnknown": true, + "ignoreCurrentStateUnavailable": true, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "eventData" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + } + ], + "outputs": 1, + "x": 120, + "y": 100 + }, + { + "id": "pres002a2b3c4d5e", + "type": "switch", + "z": "6dfa989bb120e6c6", + "name": "Home or Away?", + "wires": [ + [ + "pres003a2b3c4d5e" + ], + [ + "pres004a2b3c4d5e" + ] + ], + "property": "payload", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "home", + "vt": "str" + }, + { + "t": "eq", + "v": "not_home", + "vt": "str" + } + ], + "checkall": "true", + "repair": false, + "outputs": 2, + "x": 360, + "y": 100 + }, + { + "id": "pres003a2b3c4d5e", + "type": "api-call-service", + "z": "6dfa989bb120e6c6", + "name": "Set Home", + "wires": [ + [] + ], + "server": "657c7463.48e1e4", + "version": 7, + "debugenabled": false, + "action": "input_select.select_option", + "domain": "input_select", + "service": "select_option", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "input_select.home_mode" + ], + "labelId": [], + "data": "{\"option\": \"Home\"}", + "dataType": "json", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "x": 580, + "y": 60 + }, + { + "id": "pres004a2b3c4d5e", + "type": "api-call-service", + "z": "6dfa989bb120e6c6", + "name": "Set Away", + "wires": [ + [] + ], + "server": "657c7463.48e1e4", + "version": 7, + "debugenabled": false, + "action": "input_select.select_option", + "domain": "input_select", + "service": "select_option", + "floorId": [], + "areaId": [], + "deviceId": [], + "entityId": [ + "input_select.home_mode" + ], + "labelId": [], + "data": "{\"option\": \"Away\"}", + "dataType": "json", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "blockInputOverrides": false, + "x": 580, + "y": 140 } ] \ No newline at end of file