GithubHelp home page GithubHelp logo

Comments (3)

pawelka avatar pawelka commented on September 27, 2024

I successfully force router to permit join by using raw command service, but I face another problem while adding device. Device was added, but ieee address wasn't know at that time, but few second later, which cause a problem to update old entity in home assistant. The new entity was create and two entities for the same ieee exists :-/

Logs from adding:

2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Received response 0x8102: b'00e1500100000005004200126c756d692e73656e736f725f6d61676e6574'
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] RESPONSE 0x8102 - Individual Attribute Report : sequence:0, addr:e150, endpoint:1, cluster:0, attribute:5, status:0, data_type:66, size:18, data:lumi.sensor_magnet, lqi:189
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Received response 0x8102: b'01e1500100000001002000010a'
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] RESPONSE 0x8102 - Individual Attribute Report : sequence:1, addr:e150, endpoint:1, cluster:0, attribute:1, status:0, data_type:32, size:1, data:10, lqi:189
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [custom_components.zigate] Add device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) None
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Received response 0x8102: b'02e150010000ff0200420013100021a90b21a80124000000000021c11d2057'
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] RESPONSE 0x8102 - Individual Attribute Report : sequence:2, addr:e150, endpoint:1, cluster:0, attribute:65282, status:0, data_type:66, size:19, data:100021a90b21a80124000000000021c11d2057, lqi:189
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 ERROR (MainThread) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [custom_components.zigate] Update device Device (e150) None
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] discover_device e150
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Msg to send b'01000010a102e15001010000000000000200040005'
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Received response 0x004d: b'e15000158d000200d57180'
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Encoded Msg to send b'0102110210021010a10212e150021102110210021002100210021002100212021002140210021503'
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] RESPONSE 0x004D - Device announce : addr:e150, ieee:00158d000200d571, mac_capability:10000000, lqi:189
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Device Announce RESPONSE 0x004D - Device announce : addr:e150, ieee:00158d000200d571, mac_capability:10000000, lqi:189
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [custom_components.zigate] Update device Device (e150) None
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Acquire Lock on device Device (e150) None
2020-05-08 16:53:25 ERROR (ZiGate-Decode data) [zigate] IEEE is missing for e150, please pair it again !
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [zigate] Release Lock on device Device (e150) 00158d000200d571
2020-05-08 16:53:25 DEBUG (ZiGate-Decode data) [custom_components.zigate] Update device Device (e150) 00158d000200d571

After restart Home Assistant the entity new one with addr only disappeared and only old one left, which is desynchronized and mark as unavaliable.

from zigate.

pawelka avatar pawelka commented on September 27, 2024

It looks like I restart HA before autosave was trigger, that's the reason of disappearing entity.

from zigate.

pawelka avatar pawelka commented on September 27, 2024

Workaround: In case of paring/reparing device with specific router. HA show duplicated entities, but after waiting 5min after paring (to be sure that autosave happened) and restarting HA duplicates entity disappear and everything looks normal.

from zigate.

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.