bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 199 forks source link

Alexa says 'Sorry {device} appears to be malfunctioning' but it works? #1347

Open dinkybluebug opened 2 years ago

dinkybluebug commented 2 years ago

Ive updated to 5.4.1RC1 and my light that is controlled by UDP packets now is causing a problem. It works..... but alexa says "Sorry {device} appears to be malfunctioning" ..... Ive simplified the off command for testing to just one entry, but Alexa still says its malfunctioning - any ideas why?

Heres the details of the device - "id": "103", "uniqueid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "name": "Bedroom test", "mapId": "-copy", "offUrl": "[{\"item\":\"udp://192.168.1.10:8899/0x460055\",\"type\":\"udpDevice\",\"count\":\"10\"}]", "dimUrl": "[{\"item\":\"udp://192.168.1.10:8899/0x450055\",\"type\":\"udpDevice\",\"delay\":\"100\",\"count\":\"10\"},{\"item\":\"udp://192.168.1.10:8899/0x4e0555\",\"type\":\"udpDevice\",\"delay\":\"100\",\"count\":\"10\"}]", "onUrl": "[{\"item\":\"udp://192.168.1.10:8899/0x450055\",\"type\":\"udpDevice\",\"delay\":\"0\",\"count\":\"10\"},{\"item\":\"udp://192.168.1.10:8899/0x4E1B55\",\"type\":\"udpDevice\",\"delay\":\"100\",\"count\":\"10\"},{\"item\":\"udp://192.168.1.10:8899/0x4B0055\",\"type\":\"udpDevice\",\"delay\":\"100\",\"count\":\"10\"},{\"item\":\"udp://192.168.1.10:8899/0x4E1355\",\"type\":\"udpDevice\",\"delay\":\"100\",\"count\":\"10\"}]", "inactive": false, "noState": true, "offState": false, "deviceState": {}, "onFirstDim": false, "onWhenDimPresent": false, "lockDeviceId": false, "dimNoOn": false, "dimOnColor": false

beandi commented 2 years ago

Try to set "noState" to false.

dinkybluebug commented 2 years ago

I tried that. It worked for about 3 days and now errors again. I don’t understand what is going on as Alexa won’t be measuring whether the UDP command has been received as it’s a one way UDP packet

bwssytems commented 2 years ago

It's due to Alexa thinking out due to how many delays you have. It's known that Alexa times out due receiving the ok from the bridge.

dinkybluebug commented 2 years ago

@bwssytems - thank you for the comment - I thought it could be that - but I’ve removed all the delays and changed them back to zero. It still errors

image