Nos machines à laver sont bien souvent au troisième sous-sol sans ascenseur et sans indication on ne sait pas trop lorsque la lessive est terminée.
Le but de ce flow node-red est donc de vous avertir lorsque votre lessive est terminée soit sur votre smartphone soit en TTS sur un appareil multiroom (Sonos par exemple)
Prérequis
Prise remontant la consommation (Fibaro Wall Plug par exemple mais attention à la puissance)
Smartphone enregistré pour recevoir le push ou alors Sonos pour du TTS
Et c’est tout.
[
{
"id": "ebf22ceb.01251",
"type": "tab",
"label": "Machine à laver",
"disabled": false,
"info": ""
},
{
"id": "213b7a33.1728c6",
"type": "server-state-changed",
"z": "ebf22ceb.01251",
"name": "",
"server": "67f7a3d5.cd302c",
"version": "1",
"entityidfilter": "sensor.consommation_lave_linge",
"entityidfiltertype": "substring",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": false,
"x": 190,
"y": 180,
"wires": [
[
"8d744757.163bc8"
]
]
},
{
"id": "8d744757.163bc8",
"type": "switch",
"z": "ebf22ceb.01251",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "1000",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 470,
"y": 140,
"wires": [
[
"707891b8.ff7d2"
]
]
},
{
"id": "707891b8.ff7d2",
"type": "api-current-state",
"z": "ebf22ceb.01251",
"name": "",
"server": "67f7a3d5.cd302c",
"version": "1",
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": true,
"entity_id": "sensor.consommation_lave_linge",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 570,
"y": 200,
"wires": [
[
"2622c5b7.36b8ba"
]
]
},
{
"id": "2622c5b7.36b8ba",
"type": "stoptimer",
"z": "ebf22ceb.01251",
"duration": "5",
"units": "Minute",
"payloadtype": "num",
"payloadval": "0",
"name": "5min",
"x": 810,
"y": 200,
"wires": [
[
"4fd4ce59.83ab3"
],
[]
]
},
{
"id": "459ffa28.456a14",
"type": "switch",
"z": "ebf22ceb.01251",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lt",
"v": "5",
"vt": "num"
},
{
"t": "gt",
"v": "5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 1190,
"y": 120,
"wires": [
[
"16fe6163.2907ef",
"e80affc4.9b921",
"f681d610.f3edb8"
],
[
"2622c5b7.36b8ba"
]
]
},
{
"id": "4fd4ce59.83ab3",
"type": "api-current-state",
"z": "ebf22ceb.01251",
"name": "",
"server": "67f7a3d5.cd302c",
"version": "1",
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": true,
"entity_id": "sensor.consommation_lave_linge",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 950,
"y": 120,
"wires": [
[
"459ffa28.456a14"
]
]
},
{
"id": "e80affc4.9b921",
"type": "api-call-service",
"z": "ebf22ceb.01251",
"name": "",
"server": "67f7a3d5.cd302c",
"service_domain": "tts",
"service": "google_say",
"data": "{\"entity_id\":\"media_player.cuisine\",\"message\":\"La lessive est terminée \"}",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"mustacheAltTags": false,
"x": 1400,
"y": 100,
"wires": [
[]
]
},
{
"id": "16fe6163.2907ef",
"type": "api-call-service",
"z": "ebf22ceb.01251",
"name": "",
"server": "67f7a3d5.cd302c",
"service_domain": "media_player",
"service": "volume_set",
"data": "{\"entity_id\":\"media_player.cuisine\",\"volume_level\":\"0.9\"}",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"x": 1430,
"y": 160,
"wires": [
[]
]
},
{
"id": "f681d610.f3edb8",
"type": "api-call-service",
"z": "ebf22ceb.01251",
"name": "",
"server": "67f7a3d5.cd302c",
"service_domain": "notify",
"service": "ios_iphone_philippe",
"data": "{\"message\":\"La lessive est terminée\"}",
"mergecontext": "",
"output_location": "payload",
"output_location_type": "msg",
"x": 1430,
"y": 220,
"wires": [
[]
]
},
{
"id": "67f7a3d5.cd302c",
"type": "server",
"z": "",
"name": "Home Assistant",
"legacy": false,
"hassio": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true
}
]