Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newly added echo device nodes say, "...not sure what went wrong", but still actually work. #81

Closed
elmigbot opened this issue Nov 14, 2019 · 7 comments

Comments

@elmigbot
Copy link

SUMMARY

I have 15 or so nodes that work fine. But if I add another it will respond as above when activated. No issues with discovery and the previous 15 still work fine. All devices on same subnet. Issue is independent of what is connected downstream in the flow.

ECHO DEVICES
MODULE VERSION
0.1.9
CONFIGURATION
[{"id":"b6a4638b.ecf67","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"StooP","topic":"light.stoop","x":330,"y":320,"wires":[["1ca3321a.bcdfce"]]},{"id":"8e29bfba.a923c","type":"amazon-echo-hub","z":"61b5e38c.b1291c","port":"80","x":110,"y":320,"wires":[["5793fd8a.daded4","24e66ae0.881b16","b6a4638b.ecf67","9e664422.7c08f8","404cd7a4.dce318","18acdddd.6f7842","e2353b75.c805b8","f9070407.4438a8","e815c3a9.8ff06","38877866.5710e8"]]},{"id":"1ca3321a.bcdfce","type":"function","z":"61b5e38c.b1291c","name":"light","func":"if (msg.on === false){\n    msg.payload = {\n        \"domain\": \"homeassistant\",\n        \"service\": \"turn_off\"\n    }\n}\nif (msg.on === true){\n    if (msg.topic.slice(0,6) == 'switch'){\n        msg.payload = {\n            \"domain\": \"homeassistant\",\n            \"service\": \"turn_on\"\n        }\n    } else {\n        msg.payload = {\n            \"domain\": \"homeassistant\",\n            \"service\": \"turn_on\",\n            \"data\": {\n                \"brightness\": msg.bri,\n                \"rgb_color\": msg.rgb\n            }\n        }\n    }\n}\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":320,"wires":[["d8ffa587.c22ef8","c0cf9fc2.ad8d7"]]},{"id":"5793fd8a.daded4","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"KitcheN","topic":"light.kitchen","x":340,"y":240,"wires":[["1ca3321a.bcdfce"]]},{"id":"24e66ae0.881b16","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"DininG","topic":"light.dining_room","x":330,"y":280,"wires":[["1ca3321a.bcdfce"]]},{"id":"9e664422.7c08f8","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"Wax Lamp","topic":"switch.wax_lamp","x":350,"y":360,"wires":[["1ca3321a.bcdfce"]]},{"id":"404cd7a4.dce318","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"BedrooM","topic":"light.bed_room","x":340,"y":400,"wires":[["1ca3321a.bcdfce"]]},{"id":"18acdddd.6f7842","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"BathrooM","topic":"light.master_bathroom,light.shower_light,light.master_toilet","x":340,"y":440,"wires":[["1ca3321a.bcdfce"]]},{"id":"e2353b75.c805b8","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"All Lights","topic":"group.all_lights,group.all_switches","x":340,"y":480,"wires":[["1ca3321a.bcdfce"]]},{"id":"f9070407.4438a8","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"Party Time","topic":"light.party_time","x":350,"y":200,"wires":[["1ca3321a.bcdfce"]]},{"id":"e815c3a9.8ff06","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"Fireplace","topic":"switch.fireplace","x":340,"y":160,"wires":[["1ca3321a.bcdfce"]]},{"id":"38877866.5710e8","type":"amazon-echo-device","z":"61b5e38c.b1291c","name":"TestbeD","topic":"light.cat_light","x":340,"y":120,"wires":[["1ca3321a.bcdfce"]]},{"id":"d8ffa587.c22ef8","type":"api-call-service","z":"61b5e38c.b1291c","name":"HASS","server":"afbf2e37.72a89","version":1,"service_domain":"","service":"","entityId":"{{topic}}","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":220,"wires":[[]]},{"id":"c0cf9fc2.ad8d7","type":"debug","z":"61b5e38c.b1291c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":320,"wires":[]},{"id":"8431a738.7ef0f8","type":"function","z":"61b5e38c.b1291c","name":"On","func":"msg.on = true\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":520,"wires":[["1ca3321a.bcdfce"]]},{"id":"6787886.064bc78","type":"inject","z":"61b5e38c.b1291c","name":"Topic Test Bed","topic":"switch.wax_lamp","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":520,"wires":[["8431a738.7ef0f8"]]},{"id":"afbf2e37.72a89","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open"}]
CONSOLE OUTPUT
The usual output is produced, except one property is different: meta.changes 
Fail:
{"on":true,"bri":254,"hue":0,"sat":254,"ct":199,"colormode":"ct","meta":{"insert":{"by":"alexa","details":{"ip":"::ffff:192.168.30.19","user_agent":"Dalvik/2.1.0 (Linux; U; Android 5.1.1; AEOBC Build/LVY48F)","date":"2019-11-14T12:42:29.979Z"}},"input":{"on":true},"changes":{}},"rgb":[255,0,0],"percentage":100,"payload":{"domain":"homeassistant","service":"turn_on","data":{"brightness":254,"rgb_color":[255,0,0]}},"deviceid":"388778665710e8","topic":"light.cat_light","_msgid":"6a30daa1.44b2e4"}

Success:
{"on":true,"bri":254,"hue":0,"sat":254,"ct":199,"colormode":"ct","meta":{"insert":{"by":"alexa","details":{"ip":"::ffff:192.168.30.19","user_agent":"Dalvik/2.1.0 (Linux; U; Android 5.1.1; AEOBC Build/LVY48F)","date":"2019-11-14T12:33:28.669Z"}},"input":{"on":true},"changes":{"on":false}},"rgb":[255,0,0],"percentage":100,"payload":{"domain":"homeassistant","service":"turn_on","data":{"brightness":254,"rgb_color":[255,0,0]}},"deviceid":"18acdddd6f7842","topic":"light.master_bathroom,light.shower_light,light.master_toilet","_msgid":"107c14a6.f0a09b"}

STEPS TO REPRODUCE

For me the testbed and fireplace echo device nodes are problematic.

EXPECTED RESULTS

They should reply with OK like the rest.

ACTUAL RESULTS

They say something like not sure what went wrong.

@Barabba11
Copy link

Try this: remove echo from your Alexa Amazon account, reset echo to default (checkin YouTube how for your echo), Alexa should tell that to does perform a reset, add again it to account, say Alexa to discover devices.
Chances are it's an echo bug with new firmwares

@katterfelto
Copy link

I am having the same problem with the 9th device I added. I don't understand the removing the echo from the Amazon account. I have 3 echo dots and the app on my iPad all 4 respond in the same way for the 9th device.

@Barabba11
Copy link

If you have all 3 dots with one account, one dot will be the master, the others just mirror. If the master has a problem all others will have. I suggest 3 different accounts. To reset you need first to delete echos from account, then do reset. How to do reset search depends on echo type

@elmigbot
Copy link
Author

elmigbot commented Dec 7, 2019

Hey, my issue resolved when I simply power cycled my Dot. It must have been the master. Try unplugging all your Alexa devices one by one till it resolves. Take note of the master for future reference.

@katterfelto
Copy link

Hey, my issue resolved when I simply power cycled my Dot. It must have been the master. Try unplugging all your Alexa devices one by one till it resolves. Take note of the master for future reference.

Thanks the support desk mantra 'have you tried turning it of and back on again' worked again.

@elmigbot elmigbot closed this as completed Dec 8, 2019
@tt2g89
Copy link

tt2g89 commented Jan 9, 2020

@datech please add this to your troubleshooting guide, too. Worked fine, after I tried several other things on my raspberry pi with node-red on docker.

Thanks a lot! 👍

@datech
Copy link
Owner

datech commented Mar 9, 2020

Thanks, @tt2g89

Troubleshooting page has been updated:

Alexa: "I am not quite sure what went wrong"

  • Check that your Node-Red instance is not running on multiple network interfaces from the same network. For example, your Node-Red may be listening on ethernet and WiFi interfaces. Issue #77
  • Restart your Alexa devices. Issue #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants