wiggertdehaan/open_epaper_link_homey

Tag discovery incomplete - Not using "continu"

Opened this issue · 8 comments

I have this strange behavior with my gateway setup in Homey now. Not sure how to diagnose if it is related to the OpenEpaperLink app for Homey or if it is related to the firmware in the gateway itself. The problem is that only a subset of the tags are recognized by homey when adding the tag devices. I don't know how Homey retrieves the device data so I am not able to verify. In the gateway, all tags are recognized properly but if there is another API for the integration that shows some other reality? Each time I open the "add device" dialogue, I can get a varying number of devices showing up. Normally 6-7 out of a total of 8 M2 tags.

I am running gateway firmware 2.5-beta3.

What the homey App does is read the http://ap-ip/get_db command. If you do that with your AP, you will see a list of tags. Can you verify if that varies in length? if that is the case, its the AP that is not returning all of its tags. Otherwise, I'll see if i can add some debugging to see what it could be!

Right now the the count seems stable. The problem is that there is a diff between /get_db and the GUI in the gw.
I have highlighted this to the team. This probably means this ticket can be closed.
Thanks for informing me about /get_db

Ah, that is really good to know. Will try to fix that in the next days!

Seems like it is done by adding a ?pos= on the query string and specifying the continu prop from the initial/previous call.

Never mind, i've read the code from the ap, and it should be passed as a value in the JSON.
@MagTer could you send me an example on how it looks like?

{"tags":[{"mac":"0000CCF2560CDADC","hash":"00000000000000000000000000000000","lastseen":1709755993,"nextupdate":3216153600,"nextcheckin":1709757793,"pending":0,"alias":"Internal GW Screen","contentMode":21,"LQI":0,"RSSI":-52,"temperature":0,"batteryMv":0,"hwType":225,"wakeupReason":0,"capabilities":0,"modecfgjson":"{}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":0,"ver":0},{"mac":"000004C39D8AB29D","hash":"8f8b7d432de9a9e020626c6f5c6f0540","lastseen":1709755824,"nextupdate":1709758824,"nextcheckin":1709757737,"pending":0,"alias":"M3 Tag 1","contentMode":8,"LQI":255,"RSSI":-28,"temperature":25,"batteryMv":3022,"hwType":51,"wakeupReason":0,"capabilities":225,"modecfgjson":"{"location":"Sandviken","units":"0","#lat":"60.61667","#lon":"16.76667","#tz":"Europe/Stockholm"}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":0,"ver":38},{"mac":"0000780090E03B11","hash":"3b862588dcb1ffd1000000005c6f0540","lastseen":1709755992,"nextupdate":3216153600,"nextcheckin":1709756052,"pending":0,"alias":"M2 Tag 8","contentMode":19,"LQI":75,"RSSI":-24,"temperature":20,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{"filename":"/current/0000780090E03B11.json","interval":"0"}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39},{"mac":"0000021C10A33B1E","hash":"3c8316ec39d21f85000000005c6f0540","lastseen":1709756002,"nextupdate":3216153600,"nextcheckin":1709756062,"pending":0,"alias":"M2 Tag 7","contentMode":19,"LQI":55,"RSSI":-16,"temperature":23,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{"filename":"/current/0000021C10A33B1E.json","interval":"0"}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39},{"mac":"0000021876FE3B12","hash":"355799e6a1f93710000000005c6f0540","lastseen":1709755982,"nextupdate":3216153600,"nextcheckin":1709757782,"pending":0,"alias":"M2 Tag 6","contentMode":19,"LQI":70,"RSSI":-23,"temperature":24,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{"filename":"/current/0000021876FE3B12.json","interval":"0"}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39},{"mac":"0000021ECB613B14","hash":"f0f6a14e43dfadbc000000005c6f0540","lastseen":1709755964,"nextupdate":1709766000,"nextcheckin":1709756024,"pending":0,"alias":"M2 Tag 5","contentMode":1,"LQI":44,"RSSI":-28,"temperature":21,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39},{"mac":"0000021F1C683B16","hash":"5e1af02c4f18519e20626c6f5c6f0540","lastseen":1709755970,"nextupdate":1709757042,"nextcheckin":1709756030,"pending":0,"alias":"M2 Tag 4","contentMode":4,"LQI":63,"RSSI":-41,"temperature":24,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{"location":"Sandviken","units":"0","#lat":"60.61667","#lon":"16.76667","#tz":"Europe/Stockholm"}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39},{"mac":"0000021FB78B3B1A","hash":"092f5b66ef238bcb000000005c6f0540","lastseen":1709755984,"nextupdate":1709758800,"nextcheckin":1709757784,"pending":0,"alias":"M2 Tag 3","contentMode":27,"LQI":73,"RSSI":-45,"temperature":23,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{"country":"SE3","tariffkwh":"","tarifftax":""}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39},{"mac":"0000021E6A7B3B14","hash":"5e1af02c4f18519e000000005c6f0540","lastseen":1709755919,"nextupdate":1709757037,"nextcheckin":1709755979,"pending":0,"alias":"M2 Tag 2","contentMode":4,"LQI":73,"RSSI":-68,"temperature":24,"batteryMv":2600,"hwType":1,"wakeupReason":0,"capabilities":4,"modecfgjson":"{"location":"Sandviken","units":"0","#lat":"60.61667","#lon":"16.76667","#tz":"Europe/Stockholm"}","isexternal":false,"apip":"0.0.0.0","rotate":0,"lut":0,"invert":0,"ch":11,"ver":39}],"continu":9}

Any update on adding ?pos=<continu> when doing /get_db?