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

Devices are no longer detected after device upgrade (upgrade to mcu 1.0.5 and wifi 1.0.5) #32

Closed
Fritzi1 opened this issue Mar 17, 2019 · 18 comments
Labels
question Further information is requested

Comments

@Fritzi1
Copy link

Fritzi1 commented Mar 17, 2019

Debug protocoll
2019-03-15 11:58:53.251 - �[32minfo�[39m: tuya.0 Anyproxy ready to receive requests
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type 6mowdiydpq6sxur9. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"rw","code":"led_switch","name":"开关","property":{"type":"bool"},"iconname":"icon-dp_power","id":1,"type":"obj","desc":""},{"mode":"rw","code":"work_mode","name":"模式","property":{"range":["white","colour","scene","scene_1","scene_2","scene_3","scene_4"],"type":"enum"},"iconname":"icon-dp_box2","id":2,"type":"obj","desc":""},{"mode":"rw","code":"bright_value","name":"亮度值","property":{"unit":"","min":25,"max":255,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_light2","id":3,"type":"obj","desc":""},{"mode":"rw","code":"temp_value","name":"冷暖值","property":{"unit":"","min":0,"max":255,"scale":0,"step":1,"type":"value"},"iconname":"icon-a_mode_heat","id":4,"type":"obj","desc":""},{"mode":"rw","code":"colour_data","name":"彩光模式数","property":{"type":"string","maxlen":255},"iconname":"icon-dp_filter","id":5,"type":"obj","desc":""},{"mode":"rw","code":"scene_data","name":"情景模式数","property":{"type":"string","maxlen":255},"iconname":"icon-dp_list","id":6,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_1","name":"柔光模式","property":{"type":"string","maxlen":255},"iconname":"icon-FanSpeed","id":7,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_2","name":"缤纷模式","property":{"type":"string","maxlen":255},"iconname":"icon-yanse","id":8,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_3","name":"炫彩模式","property":{"type":"string","maxlen":255},"iconname":"icon-dp_flower","id":9,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_4","name":"斑斓模式","property":{"type":"string","maxlen":255},"iconname":"icon-a_mode_turbo","id":10,"type":"obj","desc":""}]","schemaExt":"[]"}
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type D7Hl3AxFbHDS98iO. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"rw","code":"switch_1","name":"开关","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj","desc":""},{"mode":"rw","code":"switch_2","name":"开关2","property":{"type":"bool"},"iconname":"icon-dp_power2","id":2,"type":"obj","desc":""},{"mode":"rw","code":"switch_3","name":"开关3","property":{"type":"bool"},"iconname":"icon-dp_power2","id":3,"type":"obj","desc":""},{"mode":"rw","code":"switch_4","name":"开关4","property":{"type":"bool"},"iconname":"icon-dp_power2","id":4,"type":"obj","desc":""},{"mode":"rw","code":"switch_usb1","name":"USB 1","property":{"type":"bool"},"iconname":"icon-dp_power","id":7,"type":"obj","desc":""},{"mode":"rw","code":"countdown1","name":"开关1倒计时","property":{"unit":"秒","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":101,"type":"obj","desc":""},{"mode":"rw","code":"countdown2","name":"开关2倒计时","property":{"unit":"秒","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":102,"type":"obj","desc":""},{"mode":"rw","code":"countdown3","name":"开关3倒计时","property":{"unit":"秒","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":103,"type":"obj","desc":""},{"mode":"rw","code":"countdown4","name":"开关4倒计时","property":{"unit":"秒","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":104,"type":"obj","desc":""},{"mode":"rw","code":"countdown_usb1","name":"USB倒计时","property":{"unit":"秒","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":105,"type":"obj","desc":""}]","schemaExt":"[{"id":101,"inputType":""},{"id":102,"inputType":""},{"id":103,"inputType":""},{"id":104,"inputType":""},{"id":105,"inputType":""}]"}
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type DEQevYCSHLnbDube. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"rw","code":"led_switch","name":"开关","property":{"type":"bool"},"id":1,"type":"obj","desc":""},{"mode":"rw","code":"work_mode","name":"模式","property":{"range":["white","colour","scene","scene_1","scene_2","scene_3","scene_4"],"type":"enum"},"id":2,"type":"obj","desc":""},{"mode":"rw","code":"bright_value","name":"亮度","property":{"unit":"","min":25,"max":255,"scale":0,"step":1,"type":"value"},"id":3,"type":"obj","desc":""},{"mode":"rw","code":"temp_value","name":"冷暖","property":{"unit":"","min":0,"max":255,"scale":0,"step":1,"type":"value"},"id":4,"type":"obj","desc":""},{"mode":"rw","code":"colour_data","name":"彩光模式数","property":{"type":"string","maxlen":14},"id":5,"type":"obj","desc":"rgbhsv"},{"mode":"rw","code":"scene_data","name":"情景模式数","property":{"type":"string","maxlen":14},"id":6,"type":"obj","desc":"rgbhsv"},{"mode":"rw","code":"flash_scene_1","name":"柔光模式","property":{"type":"string","maxlen":14},"id":7,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_2","name":"缤纷模式","property":{"type":"string","maxlen":44},"id":8,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_3","name":"炫彩模式","property":{"type":"string","maxlen":14},"id":9,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_4","name":"斑斓模式","property":{"type":"string","maxlen":44},"id":10,"type":"obj","desc":""},{"mode":"rw","code":"power","name":"power","property":{"type":"bool"},"id":101,"type":"obj","desc":"插座开关"},{"mode":"rw","code":"countdown","name":"延迟","property":{"unit":"S","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":102,"type":"obj","desc":""},{"mode":"ro","code":"add_ele","name":"电量","property":{"unit":"度","min":0,"max":500000,"scale":3,"step":100,"type":"value"},"id":103,"type":"obj","desc":"上报的为放大100倍之后的值,即上报56,实际值为0.56度"},{"mode":"ro","code":"cur_current","name":"电流","property":{"unit":"mA","min":0,"max":30000,"scale":0,"step":1,"type":"value"},"id":104,"type":"obj","desc":""},{"mode":"ro","code":"cur_power","name":"功率","property":{"unit":"W","min":0,"max":50000,"scale":0,"step":1,"type":"value"},"id":105,"type":"obj","desc":""},{"mode":"ro","code":"cur_voltage","name":"电压","property":{"unit":"V","min":0,"max":2500,"scale":0,"step":1,"type":"value"},"id":106,"type":"obj","desc":""}]","schemaExt":"[{"id":1,"inputType":" "},{"id":2,"inputType":" "},{"id":3,"inputType":" "},{"id":4,"inputType":" "},{"id":101,"inputType":" "},{"id":102,"inputType":" "},{"id":103,"inputType":""},{"id":104,"inputType":""},{"id":105,"inputType":""},{"id":106,"inputType":""}]"}
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type heeU2AWVxpxfqP6D. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"rw","code":"led_switch","name":"开关","property":{"type":"bool"},"iconname":"icon-dp_power","id":1,"type":"obj","desc":""},{"mode":"rw","code":"work_mode","name":"模式","property":{"range":["white","colour","scene","scene_1","scene_2","scene_3","scene_4"],"type":"enum"},"iconname":"icon-dp_box2","id":2,"type":"obj","desc":""},{"mode":"rw","code":"bright_value","name":"亮度值","property":{"unit":"","min":25,"max":255,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_light2","id":3,"type":"obj","desc":""},{"mode":"rw","code":"colour_data","name":"彩光模式数","property":{"type":"string","maxlen":255},"iconname":"icon-dp_filter","id":5,"type":"obj","desc":""},{"mode":"rw","code":"scene_data","name":"情景模式数","property":{"type":"string","maxlen":255},"iconname":"icon-dp_list","id":6,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_1","name":"柔光模式","property":{"type":"string","maxlen":255},"iconname":"icon-FanSpeed","id":7,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_2","name":"缤纷模式","property":{"type":"string","maxlen":255},"iconname":"icon-yanse","id":8,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_3","name":"炫彩模式","property":{"type":"string","maxlen":255},"iconname":"icon-dp_flower","id":9,"type":"obj","desc":""},{"mode":"rw","code":"flash_scene_4","name":"斑斓模式","property":{"type":"string","maxlen":255},"iconname":"icon-a_mode_turbo","id":10,"type":"obj","desc":""},{"mode":"rw","code":"flashscreen","name":"新场景","property":{"type":"string","maxlen":255},"iconname":"icon-dp_house","id":11,"type":"obj","desc":""}]","schemaExt":"[{"id":1,"inputType":"plain"},{"id":2,"inputType":"plain"},{"id":3,"inputType":"percent"}]"}
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type oSQljE9YDqwCwTUA. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"ro","code":"status","name":"开关状态","property":{"range":["open","closed"],"type":"enum"},"iconname":"icon-dp_direction","id":1,"type":"obj","desc":""},{"mode":"ro","code":"BatteryStatus","name":"电池电量","property":{"range":["0x00","0x01","0x02","0x03"],"type":"enum"},"id":101,"type":"obj","desc":""}]","schemaExt":"[]"}
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type qxJSyTLEtX5WrzA9. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"rw","code":"switch_on","name":"开关","property":{"type":"bool"},"iconname":"icon-dp_power3","id":1,"type":"obj","desc":""},{"mode":"rw","code":"countdown","name":"倒计时","property":{"unit":"秒","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"id":2,"type":"obj","passive":true,"desc":""},{"mode":"ro","code":"add_ele","name":"增加电量","property":{"unit":"度","min":0,"max":500000,"scale":3,"step":100,"type":"value"},"id":3,"type":"obj","desc":"上报的为放大100倍之后的值,即上报56,实际值为0.56度"},{"mode":"ro","code":"cur_current","name":"当前电流","property":{"unit":"mA","min":0,"max":30000,"scale":0,"step":1,"type":"value"},"id":4,"type":"obj","desc":""},{"mode":"ro","code":"cur_power","name":"当前功率","property":{"unit":"W","min":0,"max":50000,"scale":0,"step":1,"type":"value"},"id":5,"type":"obj","desc":""},{"mode":"ro","code":"cur_voltage","name":"电压","property":{"unit":"V","min":0,"max":3000,"scale":0,"step":1,"type":"value"},"id":6,"type":"obj","desc":""}]","schemaExt":"[]"}
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 new Shema added for product type Xg7AvNi7aeRqW3fD. Please send next line from logfile on disk to developer!
2019-03-15 11:59:04.537 - �[32minfo�[39m: tuya.0 {"schema":"[{"mode":"rw","code":"switch_1","name":"开关1","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj","desc":""},{"mode":"rw","code":"switch_2","name":"开关2","property":{"type":"bool"},"iconname":"icon-dp_power2","id":2,"type":"obj","desc":""},{"mode":"rw","code":"countdown_1","name":"开关1倒计时","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj","desc":""},{"mode":"rw","code":"countdown_2","name":"开关2倒计时","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":10,"type":"obj","desc":""},{"mode":"rw","code":"add_ele","name":"增加电量","property":{"unit":"","min":0,"max":50000,"scale":3,"step":100,"type":"value"},"iconname":"icon-battery","id":17,"type":"obj","desc":""},{"mode":"ro","code":"cur_current","name":"当前电流","property":{"unit":"mA","min":0,"max":30000,"scale":0,"step":1,"type":"value"},"iconname":"icon-Ele","id":18,"type":"obj","desc":""},{"mode":"ro","code":"cur_power","name":"当前功率","property":{"unit":"W","min":0,"max":50000,"scale":1,"step":1,"type":"value"},"iconname":"icon-dp_tool","id":19,"type":"obj","desc":""},{"mode":"ro","code":"cur_voltage","name":"当前电压","property":{"unit":"V","min":0,"max":5000,"scale":1,"step":1,"type":"value"},"iconname":"icon-a_function_turbo","id":20,"type":"obj","desc":""},{"mode":"ro","code":"test_bit","name":"产测结果位","property":{"unit":"","min":0,"max":5,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_direction","id":21,"type":"obj","desc":""},{"mode":"ro","code":"voltage_coe","name":"电压校准系数","property":{"unit":"","min":0,"max":1000000,"scale":0,"step":1,"type":"value"},"iconname":"icon-gaodiyin","id":22,"type":"obj","desc":""},{"mode":"ro","code":"electric_coe","name":"电流校准系数","property":{"unit":"","min":0,"max":1000000,"scale":0,"step":1,"type":"value"},"iconname":"icon-gaodiyin","id":23,"type":"obj","desc":""},{"mode":"ro","code":"power_coe","name":"功率校准系数","property":{"unit":"","min":0,"max":1000000,"scale":0,"step":1,"type":"value"},"iconname":"icon-gaodiyin","id":24,"type":"obj","desc":""},{"mode":"ro","code":"electricity_coe","name":"电量校准系数","property":{"unit":"","min":0,"max":1000000,"scale":0,"step":1,"type":"value"},"iconname":"icon-gaodiyin","id":25,"type":"obj","desc":""},{"mode":"ro","code":"fault","scope":"fault","name":"故障告警","property":{"label":["ov_cr"],"type":"bitmap","maxlen":1},"id":26,"type":"obj","desc":"ov_cr:过流保护"}]","schemaExt":"[{"id":1,"inputType":"plain"},{"id":2,"inputType":"plain"},{"id":9,"inputType":"plain"},{"id":10,"inputType":"plain"},{"id":17,"inputType":" "},{"id":18,"inputType":""},{"id":19,"inputType":""},{"id":20,"inputType":""},{"id":21,"inputType":""},{"id":22,"inputType":""},{"id":23,"inputType":""},{"id":24,"inputType":""},{"id":25,"inputType":""}]"}
2019-03-15 11:59:05.381 - �[32minfo�[39m: tuya.0 006672663c71bf23b2b2: Can not start because IP unknown
2019-03-15 11:59:05.427 - �[32minfo�[39m: tuya.0 23741057bcddc2819f58: Can not start because IP unknown
2019-03-15 11:59:05.459 - �[32minfo�[39m: tuya.0 22551008840d8e8c6884: Can not start because IP unknown
2019-03-15 11:59:05.459 - �[32minfo�[39m: tuya.0 05200020ecfabc9356e1: Can not start because IP unknown
2019-03-15 11:59:05.459 - �[32minfo�[39m: tuya.0 06114800dc4f2253f0d1: Can not start because IP unknown
2019-03-15 11:59:05.459 - �[32minfo�[39m: tuya.0 06114800840d8e8af07f: Can not start because IP unknown
2019-03-15 11:59:07.177 - �[32minfo�[39m: tuya.0 006672663c71bf23b2b2: Can not start because IP unknown
2019-03-15 11:59:07.177 - �[32minfo�[39m: tuya.0 23741057bcddc2819f58: Can not start because IP unknown
2019-03-15 11:59:07.224 - �[32minfo�[39m: tuya.0 22551008840d8e8c6884: Can not start because IP unknown
2019-03-15 11:59:07.224 - �[32minfo�[39m: tuya.0 05200020ecfabc9356e1: Can not start because IP unknown
2019-03-15 11:59:07.224 - �[32minfo�[39m: tuya.0 06114800840d8e8af07f: Can not start because IP unknown
2019-03-15 11:59:07.224 - �[32minfo�[39m: tuya.0 06114800dc4f2253f0d1: Can not start because IP unknown
2019-03-15 11:59:07.224 - �[32minfo�[39m: tuya.0 006672663c71bf23b2b2: Can not start because IP unknown
2019-03-15 11:59:07.239 - �[32minfo�[39m: tuya.0 23741057bcddc2819f58: Can not start because IP unknown
2019-03-15 11:59:07.286 - �[32minfo�[39m: tuya.0 22551008840d8e8c6884: Can not start because IP unknown
2019-03-15 11:59:07.286 - �[32minfo�[39m: tuya.0 05200020ecfabc9356e1: Can not start because IP unknown
2019-03-15 11:59:07.286 - �[32minfo�[39m: tuya.0 06114800840d8e8af07f: Can not start because IP unknown
2019-03-15 11:59:07.286 - �[32minfo�[39m: tuya.0 06114800dc4f2253f0d1: Can not start because IP unknown

@Apollon77
Copy link
Owner

answer see email

@Apollon77 Apollon77 added the question Further information is requested label Mar 18, 2019
@Fritzi1
Copy link
Author

Fritzi1 commented Mar 19, 2019

@Apollon77
thanks ;-)

@DerDom2010
Copy link

DerDom2010 commented Mar 24, 2019

@Apollon77
can you tell the solution to this promlem. Having the same problem here with a smart socket with firmware 1.0.5
Working perfect in Smartlife APP bit not working in IOBroker.
LOG Entry is: Can not start because IP unknown

@Apollon77
Copy link
Owner

If this is the error then then device is not sending out udp packages. Or iobroker is not receiving it.
You can edit the device object (objects -> pencil icon and there under raw there is a json. There should be an ip entry in native area in the json. Add ip there manually or (if not there) add the key.

@Fritzi1
Copy link
Author

Fritzi1 commented Mar 24, 2019 via email

@DerDom2010
Copy link

Adding the ip manually did not change the situation. Still not working.

Working for me: Adding TUYA Alexa Skill and switching the plug with ALEXA2 instance
(I know it is not the best solution but at the moment working for me)

@Fritzi1
Copy link
Author

Fritzi1 commented Mar 24, 2019

Hi DerDom2010,
but then it works on the TUYA APP.

@DerDom2010
Copy link

@Fritzi1
Yes but I dont want to use the Tuya App. I want to switch the socket with IOBroker and switch it based on a timetable. I already have 3 working plugs from another manufacturer and a led bulb that are working perfect with the tuya adapter in IOBroker. But this new plug is the first one that is making problems. As I needed it to work I searched for a workaround an the alexa2 adapter is temporary solution.

@Fritzi1
Copy link
Author

Fritzi1 commented Mar 24, 2019

@DerDom2010
i had 4 lamps, 3 I upgraded to 1.0.5, the 1 lamp with old firmware still works perfectly in iobroker. I have about 25 devices on wifi. only the updated ones have the problem

@wowik2018
Copy link

Ich habe auch das gleiche Problem, Lieber Apollon77 bitte helfen Sie uns.

@Apollon77
Copy link
Owner

Question is how I could help. If the Adapter is not knowing the IP then it seems that these devices are no longer sending out the UDP packages as earlier. The adapter received these UDP packages in network ( so make sure that devices are in same network and nothing blocks the UDP multicasts) and reads out data like product ID, type and the IP and then can connect.
If it do not get the IP he has no chance.

So adding the IP manually solved it in some cases (whyever above that many fields were added ... filling out the missing IP should be enough). BUT when the FW update also closed the internal network port of the device (could be verified by trying to do a connection (e.g. via telnet) to port 6668 of the device IP) then the adapter is out of the game because the adapter is using exactly this local interface of the devices. The adapter is not using cloud APIs at the moment because this is much harder to achieve and I did not managed it so far).

So
1.) Please try to add the IP manually and see if it works then
2.) try to connect to port 6668 and see if you get a connection (maybe compare not-updated devices and updated ones).
Then we know more

@Apollon77
Copy link
Owner

It seems to be as feared - the 1.0.5 Firmware of these devices are more closed. Tuyapi developers are already working on options ... we need to stay tuned here

@BigDi
Copy link

BigDi commented Apr 24, 2019

I don't know if the firmware version is comparable. My wall shutter switch has firmware version 1.0.5 and can be found by io.broker. I use the smart life app.

@Apollon77
Copy link
Owner

According to infos the FW version number is ore device specific ... so a 1.0.5 on one can work, on an othe rnot (depending what the FW really is about) ;-(

@Apollon77
Copy link
Owner

It seems that the tuyapi projext is close to decode the new protocol. To prepare to adopt the adapter I would need such a new device here with me or at least links that I could purchase one ... can someone provide me details or such a device?

@Apollon77
Copy link
Owner

It seems we are close. I think we could have support in 2-3 weeks after more testing. But I still do not have such a device :-( if one of you have such a device unused/
Spare and considers supporting the project please contact me at [email protected]

@Apollon77
Copy link
Owner

tests with Github version 2.0.0 starts ... see also https://forum.iobroker.net/topic/23431/aufruf-tuya-adapter-tests-verschl%C3%BCsselte-ger%C3%A4te

... limited by #56 #42 :-( any input helps

@Apollon77
Copy link
Owner

GitHub 2.0.1 should work now with encrypted devices

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

No branches or pull requests

5 participants