jsiegenthaler / homebridge-eosstb

A homebridge plugin for the EOS set-top box as used by Sunrise, Telenet, Ziggo, Virgin Media and maybe more in various countries on the Horizon Go (HGO) platform
https://github.com/jsiegenthaler/homebridge-eosstb
32 stars 4 forks source link

No channels with 1.1.1 #23

Closed meesjan closed 3 years ago

meesjan commented 3 years ago

You're too quick with fixing. ;-) The channels are still not shown in HomeKit.

Log: [28/03/2021, 18:55:14] [eosstb] Mediabox: Refreshing channel list... [28/03/2021, 18:55:14] [eosstb] Mediabox: No valid profile found in config. Selecting best-fitting profile [28/03/2021, 18:55:14] [eosstb] Mediabox: Using profile 0 'Shared Profile' [28/03/2021, 18:55:14] [eosstb] Mediabox: Profile 'Shared Profile' contains 0 channels [28/03/2021, 18:55:14] [eosstb] Mediabox: Refreshing channels 1 to 0 [28/03/2021, 18:55:14] [eosstb] Mediabox: Hiding channels 1 to 95 [28/03/2021, 18:55:14] [eosstb] Mediabox: Channel list refreshed from profile 'Shared Profile' with 0 channels

jsiegenthaler commented 3 years ago

Please set debugLevel to 3 and post the output.

meesjan commented 3 years ago

Deleted the log to be sure not having sensitive data posted here.

jsiegenthaler commented 3 years ago

Thanks, I see where the problem lies.... [28/03/2021, 20:52:20] [eosstb] Mediabox: No valid profile found in config. Selecting best-fitting profile [28/03/2021, 20:52:20] [eosstb] Mediabox: Looking for best fit profile channel list within 0 user profiles [28/03/2021, 20:52:20] [eosstb] Mediabox: Using profile 0 'Shared Profile' [28/03/2021, 20:52:20] [eosstb] Mediabox: Profile 'Shared Profile' contains 0 channels

I'll look at the code carefully

jsiegenthaler commented 3 years ago

Found the cause, working on a fix

jsiegenthaler commented 3 years ago

Please try 1.1.2-beta.1 and report back

meesjan commented 3 years ago

Now the channels are shown. However they are in random order. Neither ascending nor descending.

jsiegenthaler commented 3 years ago

Thanks for the feedback, it really helps. My goal is to have the channel order on the iOS device the same as on the TV, which in itself is neither ascending nor descending. It is determined by the TV provider.

I need to know your locationId - you should see it in the detailed log. If you do not, set debugLevel=3, then download the log file and search for locationId. It'll be a number, reflecting your current city or area.

Can you also please list the first 10 channels in your channel list? Use the order shown on your TV, from channel 1 to channel 10. Make sure it is the default order, and not a custom profile channel list. then I check the sorting algorithm and make sure it produces the same order.

Thanks

meesjan commented 3 years ago

locationId: '65535'

Order of channels:

  1. NPO 1
  2. NPO 2
  3. NPO 3
  4. RTL 4
  5. RTL 5
  6. SBS 6
  7. RTL 7
  8. Veronica / Disney XD
  9. NET 5
  10. RTL 8
  11. FOX
  12. RTL Z
  13. Ziggo TV
  14. Ziggo Sport
  15. ...
meesjan commented 3 years ago

Waiting for a fix, I went back to v1.0.2. Now the channels are in the right order. Please let me know when I can test a new (beta) release.

jsiegenthaler commented 3 years ago

Hi

I looked at my code last night and checked the sort order of the NL channels Everything looked good, so I am perplexed as to why they do not appear sorted for you.

I will do more investigations tonight. I need to be able to reproduce the issue to identify the root cause....

jsiegenthaler commented 3 years ago

Hi. I published 1.1.2-beta.2 tonight It contains extra debug code to show what channels are found and sorted.

Please run with debugLevel 2, and post the output here. I only need the part where the channels are being disocvered, sorted and loaded,

meesjan commented 3 years ago

Hopefully the log below will help. I believe I have deleted all sensitive data, but please let me know if you see any.

[redacted]

jsiegenthaler commented 3 years ago

Thanks, I can reproduce the problem now. I'm looking into it

jsiegenthaler commented 3 years ago

Hello @meesjan Problem found and fixed. Please install the latest beta and report back

meesjan commented 3 years ago

I have installed 1.1.2-beta7 and everything is working fine. The channel order is now according the Next box/Ziggo Go app. Great job! BTW, did you delete my log in the previous message? Now it shows [redacted]

jsiegenthaler commented 3 years ago

Hi @meesjan Yes, I deleted the log, just in case there was anything sensitive in it Thanks for reporting back, and sorry I took so long in fixing the stupid bug that I created :(

Closing this issue as now resolved.