datech / node-red-contrib-amazon-echo

Alexa controlled Node-Red nodes supporting latest Amazon Echo devices. NO Alexa Skills required. NO cloud dependencies.
MIT License
140 stars 42 forks source link

Suddenly all the virtual devices from Node Red are not available anymore #199

Closed DarthSonic closed 6 months ago

DarthSonic commented 6 months ago
SUMMARY

Suddenly all the virtual devices from Node Red are not available anymore. Alexa app status is "not available". Devices were discovered months ago and worked until today without any issues. HA node red config was not changed since yesterday when it worked.

image

ECHO DEVICES

Echo Show 8 Echo Dot 5th Generation Fire HD 10th generation

MODULE VERSION
0.1.10
CONFIGURATION
[{"id":"10691127b34e3703","type":"tab","label":"Alexa Wohnzimmer","disabled":false,"info":"","env":[]},{"id":"6c0e58dda0c88e23","type":"amazon-echo-hub","z":"10691127b34e3703","port":"80","processinput":"0","discovery":true,"x":170,"y":580,"wires":[["2da7feb29e05c154","778d649abfde0b04","eff587ae9edb574e","ed95cab0aeaea31d","fe4473e1683f1f71","c91e294a3cf4a4dc","1e2c7a40aff270fa","986924014d7c962f","e50555212c115598","7629b2bc070f508d","c653f429959fd4d6","1928c1173d8676d4","4d44a3b9117baae3","4f6b9853c977daf2"]]},{"id":"2da7feb29e05c154","type":"amazon-echo-device","z":"10691127b34e3703","name":"Wohnzimmer-AV","topic":"","x":430,"y":600,"wires":[["a8953dc90fff2b5b"]]},{"id":"a8953dc90fff2b5b","type":"link out","z":"10691127b34e3703","name":"Wohnzimmer-AV-Out","mode":"link","links":["fc9d820543d7bfcf"],"x":665,"y":600,"wires":[]},{"id":"778d649abfde0b04","type":"amazon-echo-device","z":"10691127b34e3703","name":"Wohnzimmer-Anwesenheit","topic":"","x":460,"y":660,"wires":[["5b3b5f9bee5ced73"]]},{"id":"5b3b5f9bee5ced73","type":"link out","z":"10691127b34e3703","name":"Echo Dot Anwesenheit - Out","mode":"link","links":["e57fa449f0eb88f8"],"x":665,"y":660,"wires":[]},{"id":"eff587ae9edb574e","type":"amazon-echo-device","z":"10691127b34e3703","name":"Netflix","topic":"Netflix","x":390,"y":540,"wires":[["3722a64637a31836"]]},{"id":"3722a64637a31836","type":"link out","z":"10691127b34e3703","name":"Fire TV","mode":"link","links":["805024dc2ec17ca1"],"x":665,"y":440,"wires":[]},{"id":"ed95cab0aeaea31d","type":"amazon-echo-device","z":"10691127b34e3703","name":"Disney plus","topic":"Disney plus","x":410,"y":500,"wires":[["3722a64637a31836"]]},{"id":"fe4473e1683f1f71","type":"amazon-echo-device","z":"10691127b34e3703","name":"Apple TV","topic":"Apple TV","x":400,"y":460,"wires":[["3722a64637a31836"]]},{"id":"c91e294a3cf4a4dc","type":"amazon-echo-device","z":"10691127b34e3703","name":"Paramount plus","topic":"Paramount plus","x":420,"y":420,"wires":[["3722a64637a31836"]]},{"id":"1e2c7a40aff270fa","type":"amazon-echo-device","z":"10691127b34e3703","name":"Joyn","topic":"Joyn","x":390,"y":380,"wires":[["3722a64637a31836"]]},{"id":"986924014d7c962f","type":"amazon-echo-device","z":"10691127b34e3703","name":"Prime Video","topic":"Prime Video","x":410,"y":340,"wires":[["3722a64637a31836"]]},{"id":"e50555212c115598","type":"amazon-echo-device","z":"10691127b34e3703","name":"Ventilator","topic":"","x":400,"y":720,"wires":[["a31e1fd05b1a37ec"]]},{"id":"a31e1fd05b1a37ec","type":"link out","z":"10691127b34e3703","name":"Ventilator","mode":"link","links":["1a1debd201d21ce6"],"x":665,"y":720,"wires":[]},{"id":"7629b2bc070f508d","type":"amazon-echo-device","z":"10691127b34e3703","name":"Standort Yvonne","topic":"","x":420,"y":840,"wires":[["3a10d104f96f5699"]]},{"id":"3a10d104f96f5699","type":"api-current-state","z":"10691127b34e3703","name":"Standort Yvonne","server":"de3b951a.460dd8","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.s23_von_yvonne_geocoded_location","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"location","propertyType":"flow","value":"","valueType":"entityState"},{"property":"entity","propertyType":"flow","value":"person.yvonne_wiegand","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":620,"y":840,"wires":[["831376c5667ac18f"]]},{"id":"c653f429959fd4d6","type":"amazon-echo-device","z":"10691127b34e3703","name":"Standort Sven","topic":"","x":420,"y":780,"wires":[["0f077a62bb88a666"]]},{"id":"0f077a62bb88a666","type":"api-current-state","z":"10691127b34e3703","name":"Standort Sven","server":"de3b951a.460dd8","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.s23_von_sven_geocoded_location","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"location","propertyType":"flow","value":"","valueType":"entityState"},{"property":"entity","propertyType":"flow","value":"person.sven_moderow","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":620,"y":780,"wires":[["32b8f97ce77d5d96"]]},{"id":"32b8f97ce77d5d96","type":"api-call-service","z":"10691127b34e3703","name":"Update Travel Time Sven Auto","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"homeassistant","service":"update_entity","areaId":[],"deviceId":[],"entityId":["sensor.waze_travel_time_sven"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":890,"y":780,"wires":[["d50a7747d3e9a43f"]]},{"id":"831376c5667ac18f","type":"api-call-service","z":"10691127b34e3703","name":"Update Travel Time Yvonne ÖPNV","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"homeassistant","service":"update_entity","areaId":[],"deviceId":[],"entityId":["sensor.yvonne_opnv_nach_hause"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":900,"y":840,"wires":[["d6fb6985f5ab56f4"]]},{"id":"5c777fb807c4b196","type":"api-call-service","z":"10691127b34e3703","name":"Alexa Notification Success","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"notify","service":"alexa_media","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Letzter Standort war {{ flow.location }}. Aktuelle Reisezeit mit {{ flow.transport }} beträgt {{ flow.traveltime }} Minuten.\",\"data\":{\"type\":\"tts\"},\"target\":\"media_player.echo_dot_wohnzimmer\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1900,"y":780,"wires":[[]]},{"id":"d50a7747d3e9a43f","type":"api-current-state","z":"10691127b34e3703","name":"Travel Time Sven Auto","server":"de3b951a.460dd8","version":3,"outputs":2,"halt_if":"unavailable","halt_if_type":"str","halt_if_compare":"is_not","entity_id":"sensor.waze_travel_time_sven","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"traveltime","propertyType":"flow","value":"","valueType":"entityState"},{"property":"transport","propertyType":"flow","value":"Auto","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1200,"y":780,"wires":[["c24f4d87b7aabb09"],["9ca615e6af5d9fdd"]]},{"id":"d6fb6985f5ab56f4","type":"api-current-state","z":"10691127b34e3703","name":"Travel Time Yvonne ÖPNV","server":"de3b951a.460dd8","version":3,"outputs":2,"halt_if":"unavailable","halt_if_type":"str","halt_if_compare":"is_not","entity_id":"sensor.yvonne_opnv_nach_hause","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"traveltime","propertyType":"flow","value":"","valueType":"entityState"},{"property":"transport","propertyType":"flow","value":"ÖPNV","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1220,"y":840,"wires":[["c24f4d87b7aabb09"],["804adaeac6475912"]]},{"id":"68e59dfe7f3b143f","type":"api-call-service","z":"10691127b34e3703","name":"Home Office PC einschalten","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"script","service":"home_office_pc_einschalten","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":880,"y":960,"wires":[[]]},{"id":"1928c1173d8676d4","type":"amazon-echo-device","z":"10691127b34e3703","name":"Home Office PC","topic":"","x":420,"y":960,"wires":[["96be35db787b236d"]]},{"id":"96be35db787b236d","type":"switch","z":"10691127b34e3703","name":"Ein/Aus","property":"on","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":600,"y":960,"wires":[["68e59dfe7f3b143f"],[]]},{"id":"4d44a3b9117baae3","type":"amazon-echo-device","z":"10691127b34e3703","name":"Sky","topic":"","x":390,"y":220,"wires":[["edb2cb1315b1f551"]]},{"id":"28965dda16eec0a3","type":"api-current-state","z":"10691127b34e3703","name":"Sky Q eingeschaltet","server":"de3b951a.460dd8","version":3,"outputs":2,"halt_if":"playing","halt_if_type":"str","halt_if_compare":"is","entity_id":"media_player.sky_q","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":860,"y":220,"wires":[["c7d40ca2f4c1a510","d876b791bc20eb6d"],["2dbe34b5e261d3b3"]]},{"id":"2dbe34b5e261d3b3","type":"api-call-service","z":"10691127b34e3703","name":"Sky Q einschalten","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"script","service":"skyq_umschalten","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":220,"wires":[["c7d40ca2f4c1a510","d876b791bc20eb6d"]]},{"id":"d876b791bc20eb6d","type":"link out","z":"10691127b34e3703","name":"Denon AVR einschalten (Sky)","mode":"link","links":["4f9efe0c1af40803"],"x":1115,"y":100,"wires":[]},{"id":"c7d40ca2f4c1a510","type":"api-call-service","z":"10691127b34e3703","name":"Hue Sync starten","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"huesyncbox","service":"set_sync_state","areaId":[],"deviceId":["486650cb6005c6b0e76303d994e8a996"],"entityId":[],"data":"{\t   \"power\":true,\t   \"sync\":true,\t   \"brightness\":66,\t   \"intensity\":\"moderate\",\t   \"mode\":\"video\",\t   \"input\":\"input4\",\t   \"entertainment_area\":\"TV Bereich\"\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":160,"wires":[[]]},{"id":"4f6b9853c977daf2","type":"amazon-echo-device","z":"10691127b34e3703","name":"Filmabend","topic":"","x":410,"y":280,"wires":[["0d4de73fcbecf04e"]]},{"id":"2667096ee30dce87","type":"api-call-service","z":"10691127b34e3703","name":"Denon AVR: Quick Select 4 (Fire TV)","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"script","service":"denon_avr_quick_select_4_firetv","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":910,"y":280,"wires":[["cd6b984f1efe112c"]]},{"id":"cd6b984f1efe112c","type":"api-call-service","z":"10691127b34e3703","name":"FireTV Startseite","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"androidtv","service":"adb_command","areaId":[],"deviceId":[],"entityId":["media_player.firetv_adb"],"data":"{\"command\":\"HOME\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":280,"wires":[["a36017acd7a8e5b6"]]},{"id":"a36017acd7a8e5b6","type":"api-call-service","z":"10691127b34e3703","name":"Hue Sync starten","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"huesyncbox","service":"set_sync_state","areaId":[],"deviceId":["486650cb6005c6b0e76303d994e8a996"],"entityId":[],"data":"{\t   \"power\":true,\t   \"sync\":true,\t   \"input\":\"input4\",\t   \"entertainment_area\":\"TV Bereich\"\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1410,"y":280,"wires":[[]]},{"id":"edb2cb1315b1f551","type":"switch","z":"10691127b34e3703","name":"Ein/Aus","property":"on","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":600,"y":220,"wires":[["28965dda16eec0a3"],[]]},{"id":"0d4de73fcbecf04e","type":"switch","z":"10691127b34e3703","name":"Ein/Aus","property":"on","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"false","repair":false,"outputs":2,"x":600,"y":280,"wires":[["2667096ee30dce87"],[]]},{"id":"c24f4d87b7aabb09","type":"ha-wait-until","z":"10691127b34e3703","name":"Wait for Notification Standby","server":"de3b951a.460dd8","version":2,"outputs":2,"entityId":"media_player.echo_dot_wohnzimmer","entityIdFilterType":"exact","property":"state","comparator":"is","value":"standby","valueType":"str","timeout":"12","timeoutType":"num","timeoutUnits":"seconds","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[],"entityLocation":"data","entityLocationType":"none","x":1600,"y":780,"wires":[["5c777fb807c4b196"],["5c777fb807c4b196"]]},{"id":"68d9f1524f3561c9","type":"api-call-service","z":"10691127b34e3703","name":"Alexa Notification Failed","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"notify","service":"alexa_media","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Letzter Standort war {{ flow.location }}. Aktuelle Reisezeit konnte nicht ermittelt werden.\",\"data\":{\"type\":\"tts\"},\"target\":\"media_player.echo_dot_wohnzimmer\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1890,"y":860,"wires":[[]]},{"id":"9ca615e6af5d9fdd","type":"ha-wait-until","z":"10691127b34e3703","name":"Wait for Notification Standby","server":"de3b951a.460dd8","version":2,"outputs":2,"entityId":"media_player.echo_dot_wohnzimmer","entityIdFilterType":"exact","property":"state","comparator":"is","value":"standby","valueType":"str","timeout":"12","timeoutType":"num","timeoutUnits":"seconds","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[],"entityLocation":"data","entityLocationType":"none","x":1600,"y":860,"wires":[["68d9f1524f3561c9"],["68d9f1524f3561c9"]]},{"id":"804adaeac6475912","type":"api-call-service","z":"10691127b34e3703","name":"Update Travel Time Yvonne Auto","server":"de3b951a.460dd8","version":5,"debugenabled":false,"domain":"homeassistant","service":"update_entity","areaId":[],"deviceId":[],"entityId":["sensor.waze_travel_time_yvonne"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":900,"y":900,"wires":[["fb213b89db1af255"]]},{"id":"fb213b89db1af255","type":"api-current-state","z":"10691127b34e3703","name":"Travel Time Yvonne Auto","server":"de3b951a.460dd8","version":3,"outputs":2,"halt_if":"unavailable","halt_if_type":"str","halt_if_compare":"is_not","entity_id":"sensor.waze_travel_time_yvonne","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"traveltime","propertyType":"flow","value":"","valueType":"entityState"},{"property":"transport","propertyType":"flow","value":"Auto","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1210,"y":900,"wires":[["c24f4d87b7aabb09"],["9ca615e6af5d9fdd"]]},{"id":"de3b951a.460dd8","type":"server","name":"Home Assistant","addon":true}]
CONSOLE OUTPUT
nothing
STEPS TO REPRODUCE

Say "Alexa, turn on Wohnzimmer-AV"

EXPECTED RESULTS

Flow should start

ACTUAL RESULTS

Flow does not start. Routine does not trigger the device as it "not available".

datech commented 6 months ago

Looks unusual, so there might have been a change that triggered this issue, or it could be an Alexa problem.

Here are some troubleshooting steps you may want to try:

  1. Check the network connection between Echo devices and Node-RED. Ensure that Node-RED and Echo devices use the same SSID for WiFi and are on the same network.
  2. Try adding a new device and run the discovery procedure again.
  3. Some users have reported that resetting their Echo resolved similar issues.
DarthSonic commented 6 months ago

Thanks for the help. Fortunately the issue resolved itself. I don't know what happened as every other device was working normally and network was stable.