AMoo-Miki / homebridge-tuya-lan

Homebridge plugin for IoT devices that use Tuya Smart's platform
MIT License
202 stars 51 forks source link

Odd message from <name> with command 8 - assistance please! #193

Closed craigmurdo closed 4 years ago

craigmurdo commented 4 years ago

Hello!

I have recently purchased this thermostat (https://www.amazon.co.uk/gp/product/B07PKQ75DG/) to power some underfloor heating. I've connected via the TuyaSmart app, and it works as expected.

I've been following the various online guides to get this connected to homekit, but have now run into an issue. Here's what I've done:

I've got homebridge up and running, and connected to Apple home.

The setup instructions provided in the wiki here did not work for me - I encountered a great deal of errors when the app tried to communicate with the server, and didn't see the ID or Key appear.

As a work around I followed the instructions here (https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md) and after following the recommended setup, managed to obtain my ID and Key.

Jumping back to the setup guide, I have added the following to the config:

 "platform": "TuyaLan",
            "devices": [
                {
                    "name": "Underfloor heating",
                    "type": "SimpleHeater",
                    "manufacturer": "Moes",
                    "model": "HBThermo",
                    "id": "****",
                    "key": "****",
                    "ip": "192.168.1.109",
                    "dpActive": 1,
                    "dpDesiredTemperature": 2,
                    "dpCurrentTemperature": 3,
                    "minTemperature": 10,
                    "maxTemperatures": 45
                }a
            ]

As a result, I can see the accessory in HB, but it doesn't seem to interact in any way, and the. When I look at the log, there seems to be a number of different errors happening including the following:

[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '\ny\n\u001bþh<8\u0003P<®\u0005q' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '6¢þÚ²
                                                                                          3z\u000eF°³\rÅm' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '\u001esáïï©÷n\u0016.ã°Cd\u0019Oó\u0011\u001e)\u001b' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'Ï\rÏö¨j\n¬¾ú\u0002\u001c¨ú' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'Z±áòØÝ\u0019 ªT®>ä-' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'b±w;åý\u001cíÅË]¨³R' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ª\u0014¶ÚõG·ÔÄï> W' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '\nádÔ¨' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '\u0015\fÿ\u001fN\u0015[F.4\u0017Zñ' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ý.!1áñ¹«ô׫é^*\u0003\u001a' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '~\rìE-QïjvÒ²\u0012
)Æ' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '0g|F=ñßÖ*Ã3µ\u001f' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ñÚQK¢üªÈ»' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ð\u0006H!ïUíþ°@s½\fÕ\u0000' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '
                                                                                     º7ò4A]÷\u000f\u001d8ª8à' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'txg¹3ËsÁ\u0006UÑ\u001aAº\u001ew­Gó>nl¿É\u0003' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'Æå,Êvhºê' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '\u0010\u001dò\u000bæa2tD<\u0015GòÞnì' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: "»'¦\t­\u001cxߪM®p\u0017¬" }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '3áB¡iÃco)ØÇ\u000e²\u001a' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '´ÙØÞ x\u0011ì7å4' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'tóYe\u0002%_\t\u001cqÔ' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '3ÁÏù\u0016sÒAg¸s¸z' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'y]\u0016\u0013©&³²È¨7¡þ`t' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '¥§û
                                                                                        d92TYH拫' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'á»\u0002X\u0002È\u000eÃ\tÀÀÚ#ÑBH`' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ï\u0013zh°ÐÕ\f\u0002 =¹W­û' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: "y{%i\\\\\u0004\u0013g\u0010ß's" }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ûJ\bYX©K&é$a¶øó©' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'Y(JR³ÓÏ.·zùïs\u001b.%' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '¨^ëh%¼\u0001å¨
çÏ©Ú
' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'üª³ôa¢çPÞQj¦kY' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ϱH\u0005-ëRªà\u001f\u0002¾tÅå' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: '>{\u0010z\u001aËk!bGÃÁ1' }
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'R)Ö¯®ôi¨\u001bÉêÓ' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)
[TuyaAccessory] Closed connection with Underfloor heating
[TuyaAccessory] Odd message from Underfloor heating with command 8: { cmd: 8, data: 'ÔIÿ\u0007°ØöpÕãàè©Îæ\u0014·\u0012ÓIÃ' }
[TuyaAccessory] Socket had a problem and will reconnect to Underfloor heating (Error: ERR_PING_TIMED_OUT)

I'm not sure if anybody has seen similar or knows how to fix this. Any help would be amazing

Thanks @AMoo-Miki !!!