Giter Site home page Giter Site logo

Comments (9)

J-N-K avatar J-N-K commented on June 27, 2024

Can you show the the thing configuration?

from addons.

BigGeorgeTx avatar BigGeorgeTx commented on June 27, 2024

Sure:

`UID: tuya:tuyaDevice:83425554bcddc268d218
label: Smart Bulb 6 (Tuya)
thingTypeUID: tuya:tuyaDevice
configuration:
protocol: "3.3"
productId: fnxgcsysunpyxkou
deviceId: 83425554bcddc268d218
ip: 10.0.0.227
localKey: 07c7e1a1e453ad56
channels:

  • id: scene_data
    channelTypeUID: tuya:string
    label: scene_data
    description: null
    configuration:
    dp: 6
  • id: flash_scene_4
    channelTypeUID: tuya:string
    label: flash_scene_4
    description: null
    configuration:
    dp: 10
  • id: flash_scene_3
    channelTypeUID: tuya:string
    label: flash_scene_3
    description: null
    configuration:
    dp: 9
  • id: flash_scene_2
    channelTypeUID: tuya:string
    label: flash_scene_2
    description: null
    configuration:
    dp: 8
  • id: colour_data
    channelTypeUID: tuya:color
    label: colour_data
    description: null
    configuration:
    dp: 5
    dp2: 1
  • id: flash_scene_1
    channelTypeUID: tuya:string
    label: flash_scene_1
    description: null
    configuration:
    dp: 7
  • id: bright_value
    channelTypeUID: tuya:dimmer
    label: bright_value
    description: null
    configuration:
    min: 25
    dp: 3
    max: 255
    dp2: 1
  • id: temp_value
    channelTypeUID: tuya:dimmer
    label: temp_value
    description: null
    configuration:
    dp: 4
    max: 255
    min: 0
  • id: work_mode
    channelTypeUID: tuya:string
    label: work_mode
    description: null
    configuration:
    dp: 2
    range: white,colour,scene,scene_1,scene_2,scene_3,scene_4
    `

from addons.

BigGeorgeTx avatar BigGeorgeTx commented on June 27, 2024

Thanks. Will you update the development binding, or should I download it from somewhere else to test it?

from addons.

J-N-K avatar J-N-K commented on June 27, 2024

Yes, it's fixed in develop.

from addons.

BigGeorgeTx avatar BigGeorgeTx commented on June 27, 2024

I removed and reinstalled the Tuya develop binding. I'm seeing the following. Also, I find that when I remove and reinstall the Tuya binding, the amazonechocontrol binding stops working and the Tuya binding doesn't work until I restart openHAB.

Here is the TRACE log filtered by the device ID:
2022-02-26 13:01:40.521 [WARN ] [rnal.local.handlers.UserEventHandler] - 83425554bcddc268d218/10.0.0.227:6668: class java.lang.IllegalArgumentException caught, closing the channel 2022-02-26 13:01:40.542 [DEBUG] [al.local.handlers.TuyaMessageHandler] - 83425554bcddc268d218/10.0.0.227:6668: Connection terminated. 2022-02-26 13:01:40.459 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:83425554bcddc268d218' changed from OFFLINE to ONLINE 2022-02-26 13:01:40.546 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:83425554bcddc268d218' changed from ONLINE to OFFLINE 2022-02-26 13:01:44.678 [TRACE] [.internal.local.handlers.TuyaDecoder] - udpListener/: Decoded raw payload: {"ip":"10.0.0.227","gwId":"83425554bcddc268d218","active":2,"ability":0,"mode":0,"encrypt":true,"productKey":"key4fv3xs8twchhy","version":"3.3"} 2022-02-26 13:01:44.680 [DEBUG] [.internal.local.handlers.TuyaDecoder] - udpListener/: Received MessageWrapper{commandType=UDP_NEW, content='DiscoveryMessage{ip='10.0.0.227', deviceId='83425554bcddc268d218', active=2, ability=0, mode=0, encrypt=true, productKey='key4fv3xs8twchhy', version='3.3'}'} 2022-02-26 13:01:45.569 [DEBUG] [.internal.local.handlers.TuyaEncoder] - 83425554bcddc268d218/10.0.0.227:6668: Sending DP_QUERY, payload {devId=83425554bcddc268d218, uid=83425554bcddc268d218, t=1645905705, dps=null, gwId=83425554bcddc268d218} 2022-02-26 13:01:45.570 [TRACE] [.internal.local.handlers.TuyaEncoder] - 83425554bcddc268d218/10.0.0.227:6668: Sending encoded '000055AA000000010000000A000000885C9D15E783D537D6CEEB50EDD56B4EF3378F1D5E3778071AA9440EB88908856960C5AA71368D757CC64E7697A3DA0FE0D37699CC5C465EB80316B87A5900910D1AEC9E14E7EFF96632FC9A06B02386E2792FF8FC721F591A93DB8E42FF640C79C41E338A06381BAA0E556012D7F2547C7791FE3CB8ABD01DAB951F1FD69A993D90367AD00000AA55' 2022-02-26 13:01:45.571 [DEBUG] [al.local.handlers.TuyaMessageHandler] - 83425554bcddc268d218/10.0.0.227:6668: Connection established. 2022-02-26 13:01:45.618 [TRACE] [.internal.local.handlers.TuyaDecoder] - 83425554bcddc268d218/10.0.0.227:6668: Received encoded '000055AA000000010000000A0000011C000000005C9D15E783D537D6CEEB50EDD56B4EF3378F1D5E3778071AA9440EB889088569D46E9F44464BAAB7CE53D1E3282452C9A01256A2074CE63F2798C1BDEA3D9264B2817B93D3C198ADAABDD367A8496A6AC50D82243B26F6975D3B7E44907D63E5A40A96561185004F8730676D1A1F1868CE3C796BAB4327DBFC8A811553A9C95A5902EFECDFCA3D12B8CB7A1A5DAF6A682A3AFD355E259911EA540EB5EB498BFC65019B819AB91E5C5471FE67BDD0ABF95643DDDEFF7C24ADC5978150AD58270933939F8AF53B3CF96BFBD75E49FF961A0645E42C751C6C784C7CCF2591EED770418674F2F3F5615F5A48181CB65A2F52CC3DB7758D7317A9BCFF7166DD9AF04D999EE3D2957CADB8080F8D73B67D02CC507B08AB0000AA55' 2022-02-26 13:01:45.619 [TRACE] [.internal.local.handlers.TuyaDecoder] - 83425554bcddc268d218//10.0.0.227:6668: Decoded raw payload: {"devId":"83425554bcddc268d218","dps":{"1":true,"2":"colour","3":139,"4":56,"5":"00008000f0ff8b","6":"bd76000168ffff","7":"ffff500100ff00","8":"ffff8003ff000000ff000000ff000000000000000000","9":"ffff5001ff0000","10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"}} 2022-02-26 13:01:45.573 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:83425554bcddc268d218' changed from OFFLINE to ONLINE 2022-02-26 13:01:45.622 [DEBUG] [.internal.local.handlers.TuyaDecoder] - 83425554bcddc268d218//10.0.0.227:6668: Received MessageWrapper{commandType=DP_QUERY, content='{1=true, 2=colour, 3=139.0, 4=56.0, 5=00008000f0ff8b, 6=bd76000168ffff, 7=ffff500100ff00, 8=ffff8003ff000000ff000000ff000000000000000000, 9=ffff5001ff0000, 10=ffff0505ff000000ff00ffff00ff00ff0000ff000000}'} 2022-02-26 13:01:45.623 [TRACE] [a.internal.handler.TuyaDeviceHandler] - 'tuya:tuyaDevice:83425554bcddc268d218' received status message '{1=true, 2=colour, 3=139.0, 4=56.0, 5=00008000f0ff8b, 6=bd76000168ffff, 7=ffff500100ff00, 8=ffff8003ff000000ff000000ff000000000000000000, 9=ffff5001ff0000, 10=ffff0505ff000000ff00ffff00ff00ff0000ff000000}' 2022-02-26 13:01:45.627 [WARN ] [rnal.local.handlers.UserEventHandler] - 83425554bcddc268d218/10.0.0.227:6668: class java.lang.IllegalArgumentException caught, closing the channel 2022-02-26 13:01:45.639 [DEBUG] [al.local.handlers.TuyaMessageHandler] - 83425554bcddc268d218/10.0.0.227:6668: Connection terminated. 2022-02-26 13:01:45.642 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:83425554bcddc268d218' changed from ONLINE to OFFLINE 2022-02-26 13:01:49.670 [TRACE] [.internal.local.handlers.TuyaDecoder] - udpListener/: Decoded raw payload: {"ip":"10.0.0.227","gwId":"83425554bcddc268d218","active":2,"ability":0,"mode":0,"encrypt":true,"productKey":"key4fv3xs8twchhy","version":"3.3"} 2022-02-26 13:01:49.671 [DEBUG] [.internal.local.handlers.TuyaDecoder] - udpListener/: Received MessageWrapper{commandType=UDP_NEW, content='DiscoveryMessage{ip='10.0.0.227', deviceId='83425554bcddc268d218', active=2, ability=0, mode=0, encrypt=true, productKey='key4fv3xs8twchhy', version='3.3'}'} 2022-02-26 13:01:50.660 [DEBUG] [.internal.local.handlers.TuyaEncoder] - 83425554bcddc268d218/10.0.0.227:6668: Sending DP_QUERY, payload {devId=83425554bcddc268d218, uid=83425554bcddc268d218, t=1645905710, dps=null, gwId=83425554bcddc268d218} 2022-02-26 13:01:50.663 [TRACE] [.internal.local.handlers.TuyaEncoder] - 83425554bcddc268d218/10.0.0.227:6668: Sending encoded '000055AA000000010000000A000000885C9D15E783D537D6CEEB50EDD56B4EF3378F1D5E3778071AA9440EB88908856960C5AA71368D757CC64E7697A3DA0FE0D37699CC5C465EB80316B87A5900910D0C9FA82B60E79854B5DBF4CBED298608792FF8FC721F591A93DB8E42FF640C79C41E338A06381BAA0E556012D7F2547C7791FE3CB8ABD01DAB951F1FD69A993D78C9C26E0000AA55' 2022-02-26 13:01:50.665 [DEBUG] [al.local.handlers.TuyaMessageHandler] - 83425554bcddc268d218/10.0.0.227:6668: Connection established. 2022-02-26 13:01:50.712 [TRACE] [.internal.local.handlers.TuyaDecoder] - 83425554bcddc268d218/10.0.0.227:6668: Received encoded '000055AA000000010000000A0000011C000000005C9D15E783D537D6CEEB50EDD56B4EF3378F1D5E3778071AA9440EB889088569D46E9F44464BAAB7CE53D1E3282452C9A01256A2074CE63F2798C1BDEA3D9264B2817B93D3C198ADAABDD367A8496A6AC50D82243B26F6975D3B7E44907D63E5A40A96561185004F8730676D1A1F1868CE3C796BAB4327DBFC8A811553A9C95A5902EFECDFCA3D12B8CB7A1A5DAF6A682A3AFD355E259911EA540EB5EB498BFC65019B819AB91E5C5471FE67BDD0ABF95643DDDEFF7C24ADC5978150AD58270933939F8AF53B3CF96BFBD75E49FF961A0645E42C751C6C784C7CCF2591EED770418674F2F3F5615F5A48181CB65A2F52CC3DB7758D7317A9BCFF7166DD9AF04D999EE3D2957CADB8080F8D73B67D02CC507B08AB0000AA55' 2022-02-26 13:01:50.714 [TRACE] [.internal.local.handlers.TuyaDecoder] - 83425554bcddc268d218//10.0.0.227:6668: Decoded raw payload: {"devId":"83425554bcddc268d218","dps":{"1":true,"2":"colour","3":139,"4":56,"5":"00008000f0ff8b","6":"bd76000168ffff","7":"ffff500100ff00","8":"ffff8003ff000000ff000000ff000000000000000000","9":"ffff5001ff0000","10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"}} 2022-02-26 13:01:50.716 [DEBUG] [.internal.local.handlers.TuyaDecoder] - 83425554bcddc268d218//10.0.0.227:6668: Received MessageWrapper{commandType=DP_QUERY, content='{1=true, 2=colour, 3=139.0, 4=56.0, 5=00008000f0ff8b, 6=bd76000168ffff, 7=ffff500100ff00, 8=ffff8003ff000000ff000000ff000000000000000000, 9=ffff5001ff0000, 10=ffff0505ff000000ff00ffff00ff00ff0000ff000000}'} 2022-02-26 13:01:50.718 [TRACE] [a.internal.handler.TuyaDeviceHandler] - 'tuya:tuyaDevice:83425554bcddc268d218' received status message '{1=true, 2=colour, 3=139.0, 4=56.0, 5=00008000f0ff8b, 6=bd76000168ffff, 7=ffff500100ff00, 8=ffff8003ff000000ff000000ff000000000000000000, 9=ffff5001ff0000, 10=ffff0505ff000000ff00ffff00ff00ff0000ff000000}' 2022-02-26 13:01:50.725 [WARN ] [rnal.local.handlers.UserEventHandler] - 83425554bcddc268d218/10.0.0.227:6668: class java.lang.IllegalArgumentException caught, closing the channel 2022-02-26 13:01:50.742 [DEBUG] [al.local.handlers.TuyaMessageHandler] - 83425554bcddc268d218/10.0.0.227:6668: Connection terminated. 2022-02-26 13:01:50.669 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:83425554bcddc268d218' changed from OFFLINE to ONLINE 2022-02-26 13:01:50.744 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:tuyaDevice:83425554bcddc268d218' changed from ONLINE to OFFLINE

from addons.

J-N-K avatar J-N-K commented on June 27, 2024

It seems that the assumption that the difference is 3.1/3.3 is wrong. I overlooked that this is a 3.3 device (since we were talking about 3.1 devices before). I'll check what I can do.

from addons.

J-N-K avatar J-N-K commented on June 27, 2024

Can update again?

from addons.

BigGeorgeTx avatar BigGeorgeTx commented on June 27, 2024

I just updating the Tuya develop binding. I then enabled the 4 devices that weren't working before, and they all came on line. I will check out functionality and report back, but there are no errors in the log at this point. Thanks.

from addons.

BigGeorgeTx avatar BigGeorgeTx commented on June 27, 2024

After 12 hours, everything is staying online, so it looks like this issue has been resolved. Thanks.

from addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.