[{ "id": "d7f2baf39c2db909", "type": "server-state-changed", "z": "505b96f2f0accced", "name": "洗衣機啟動", "server": "91a78be.0d63e78", "version": 4, "exposeToHomeAssistant": false, "haConfig": [{ "property": "name", "value": "" }, { "property": "icon", "value": "" }], "entityidfilter": "sensor.xi_yi_ji_dian_yuan_power", "entityidfiltertype": "exact", "outputinitially": false, "state_type": "str", "haltifstate": "10", "halt_if_type": "num", "halt_if_compare": "gt", "outputs": 2, "output_only_on_state_change": false, "for": 0, "forType": "num", "forUnits": "minutes", "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": 100, "y": 100, "wires": [ ["6a5388607397479e"], [] ] }, { "id": "6a5388607397479e", "type": "ha-wait-until", "z": "505b96f2f0accced", "name": "0W", "server": "91a78be.0d63e78", "version": 2, "outputs": 1, "entityId": "sensor.xi_yi_ji_dian_yuan_power", "entityIdFilterType": "exact", "property": "state", "comparator": "lte", "value": "0", "valueType": "num", "timeout": "0", "timeoutType": "num", "timeoutUnits": "minutes", "checkCurrentState": true, "blockInputOverrides": true, "outputProperties": [], "x": 270, "y": 100, "wires": [ ["b4fb502207678c7d"] ] }, { "id": "7f949cfa19f21555", "type": "api-current-state", "z": "505b96f2f0accced", "name": "0W", "server": "91a78be.0d63e78", "version": 3, "outputs": 2, "halt_if": "0", "halt_if_type": "num", "halt_if_compare": "lte", "entity_id": "sensor.xi_yi_ji_dian_yuan_power", "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": 110, "y": 180, "wires": [ ["da0102049454a198"], [] ] }, { "id": "da0102049454a198", "type": "line-notify", "z": "505b96f2f0accced", "name": "洗衣機", "message": "衣服洗好了!", "contentType": "sticker", "imageThumbnail": "", "imageUrl": "", "sticker": "default", "stickerPackageId": "8525", "stickerId": "16581290", "silent": false, "creds": "283cfad4.bd0936", "x": 250, "y": 180, "wires": [ ["267a667642724a63", "8d537b8e20f46ce7"] ] }, { "id": "267a667642724a63", "type": "api-current-state", "z": "505b96f2f0accced", "name": "確認Amanda在家", "server": "91a78be.0d63e78", "version": 3, "outputs": 2, "halt_if": "home", "halt_if_type": "str", "halt_if_compare": "is", "entity_id": "person.amanda", "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": 450, "y": 180, "wires": [ ["f5de6daece054cee"], [] ] }, { "id": "f5de6daece054cee", "type": "api-call-service", "z": "505b96f2f0accced", "name": "音量70%", "server": "91a78be.0d63e78", "version": 5, "debugenabled": false, "domain": "media_player", "service": "volume_set", "areaId": [], "deviceId": [], "entityId": ["media_player.ke_ting_2"], "data": "{\"volume_level\": \"0.7\"}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", "x": 640, "y": 180, "wires": [ ["38a70e484203ea9f"] ] }, { "id": "38a70e484203ea9f", "type": "api-call-service", "z": "505b96f2f0accced", "name": "衣服洗好", "server": "91a78be.0d63e78", "version": 5, "debugenabled": false, "domain": "tts", "service": "azure_cognitive_speech_say", "areaId": [], "deviceId": [], "entityId": ["media_player.ke_ting_2"], "data": "{\"message\": \"衣服洗好了\"}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", "x": 640, "y": 100, "wires": [ [] ] }, { "id": "b4fb502207678c7d", "type": "stoptimer2", "z": "505b96f2f0accced", "duration": "5", "durationType": "num", "units": "Second", "payloadtype": "num", "payloadval": "0", "name": "5S", "x": 410, "y": 100, "wires": [ ["7f949cfa19f21555"], [] ] }, { "id": "8d537b8e20f46ce7", "type": "api-current-state", "z": "505b96f2f0accced", "name": "確認Chris在家", "server": "91a78be.0d63e78", "version": 3, "outputs": 2, "halt_if": "home", "halt_if_type": "str", "halt_if_compare": "is", "entity_id": "person.sweethome", "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": 440, "y": 240, "wires": [ ["f5de6daece054cee"], [] ] }, { "id": "91a78be.0d63e78", "type": "server", "name": "Home Assistant", "version": 5, "addon": true, "rejectUnauthorizedCerts": true, "ha_boolean": "y|yes|true|on|home|open", "connectionDelay": true, "cacheJson": true, "heartbeat": false, "heartbeatInterval": "30", "areaSelector": "friendlyName", "deviceSelector": "friendlyName", "entitySelector": "friendlyName", "statusSeparator": "at: ", "statusYear": "hidden", "statusMonth": "short", "statusDay": "numeric", "statusHourCycle": "h23", "statusTimeFormat": "h:m", "enableGlobalContextStore": true }, { "id": "283cfad4.bd0936", "type": "linetoken", "name": "wash machine" }]