diff --git a/src/data/flows/automation_mechanical_ventilation_toilet.json b/src/data/flows/automation_mechanical_ventilation_toilet.json new file mode 100644 index 0000000..e3f3e3d --- /dev/null +++ b/src/data/flows/automation_mechanical_ventilation_toilet.json @@ -0,0 +1,230 @@ +[ + { + "id": "3d30857f5165e137", + "type": "tab", + "label": "automation_mechanical_ventilation_toilet", + "disabled": true, + "info": "", + "env": [] + }, + { + "id": "effdb4f47bd11771", + "type": "comment", + "z": "3d30857f5165e137", + "name": "turn on toilet fan", + "info": "notify when a message appears in pfsense", + "x": 100, + "y": 20, + "wires": [] + }, + { + "id": "a752563ecc453fd5", + "type": "server-state-changed", + "z": "3d30857f5165e137", + "name": "toilet light turned on", + "server": "4ba92433.2478cc", + "version": 5, + "outputs": 2, + "exposeAsEntityConfig": "", + "entityId": "light.shelly1_hallway", + "entityIdType": "exact", + "outputInitially": false, + "stateType": "str", + "ifState": "on", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": "", + "forType": "num", + "forUnits": "seconds", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": false, + "ignorePrevStateUnavailable": false, + "ignoreCurrentStateUnknown": false, + "ignoreCurrentStateUnavailable": false, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "eventData" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + } + ], + "x": 110, + "y": 60, + "wires": [ + [ + "684f758427ddfc3e" + ], + [ + "6433045b1f3b4f8e" + ] + ] + }, + { + "id": "25d79c8787fd1812", + "type": "api-call-service", + "z": "3d30857f5165e137", + "name": "turn on toilet fan", + "server": "4ba92433.2478cc", + "version": 5, + "debugenabled": false, + "domain": "", + "service": "", + "areaId": [], + "deviceId": [], + "entityId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 660, + "y": 60, + "wires": [ + [] + ] + }, + { + "id": "6433045b1f3b4f8e", + "type": "stoptimer", + "z": "3d30857f5165e137", + "duration": "20", + "units": "Minute", + "payloadtype": "num", + "payloadval": "0", + "name": "", + "x": 300, + "y": 120, + "wires": [ + [ + "59e4a09ae6f431cd" + ], + [] + ] + }, + { + "id": "59e4a09ae6f431cd", + "type": "api-call-service", + "z": "3d30857f5165e137", + "name": "turn off toilet fan", + "server": "4ba92433.2478cc", + "version": 5, + "debugenabled": false, + "domain": "", + "service": "", + "areaId": [], + "deviceId": [], + "entityId": [], + "data": "", + "dataType": "jsonata", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 480, + "y": 120, + "wires": [ + [] + ] + }, + { + "id": "684f758427ddfc3e", + "type": "stoptimer", + "z": "3d30857f5165e137", + "duration": "5", + "units": "Second", + "payloadtype": "num", + "payloadval": "0", + "name": "", + "x": 300, + "y": 60, + "wires": [ + [ + "364ff62a9a133ead" + ], + [] + ] + }, + { + "id": "364ff62a9a133ead", + "type": "api-current-state", + "z": "3d30857f5165e137", + "name": "toilet light still on", + "server": "4ba92433.2478cc", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "light.shelly1_hallway", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "entity" + } + ], + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 480, + "y": 60, + "wires": [ + [ + "25d79c8787fd1812" + ], + [] + ] + }, + { + "id": "4ba92433.2478cc", + "type": "server", + "name": "Home Assistant", + "version": 5, + "addon": false, + "rejectUnauthorizedCerts": false, + "ha_boolean": "y|yes|true|on|home|open", + "connectionDelay": true, + "cacheJson": true, + "heartbeat": true, + "heartbeatInterval": "30", + "areaSelector": "id", + "deviceSelector": "id", + "entitySelector": "id", + "statusSeparator": "at: ", + "statusYear": "hidden", + "statusMonth": "short", + "statusDay": "numeric", + "statusHourCycle": "h23", + "statusTimeFormat": "h:m", + "enableGlobalContextStore": true + } +] \ No newline at end of file