bertbert72 / HomeAssistant_VirginTivo

HomeAssistant component for control of Virgin Media Tivo boxes
GNU General Public License v3.0
27 stars 22 forks source link

Channel Guide is one hour out #39

Closed ashdwells closed 4 years ago

ashdwells commented 4 years ago

Hi

I am having an issue with the program being displayed. I am currently watching channel 4 after 9pm but it display the program that was on 8-9 and claims its on 9-10

Help please

richard-scott commented 4 years ago

What timezone is your HA Server using? Look in "Developer Tools" -> "Info" -> "System Health" -> "timezone"

ashdwells commented 4 years ago

Says GB

ashdwells commented 4 years ago

Only seems to happen with Channel 4 that i have noticed

bertbert72 commented 4 years ago

Sounds like it thinks you are on Channel 4+1 for some reason. ln the HomeAssistant UI, go to Developer Tools > States and filter for your box, e.g. Virgin and see what the attributes are. E.g.

media_content_type: tvshow
media_duration: 1800
media_position: 509
media_title: E4 HD
media_series_title: The Big Bang Theory S 7, Ep 6: The Romance Resonance 20:30 - 21:00
source: E4 HD
source_list: BBC One HD,BBC Two HD,ITV,Channel 4,Channel 5 HD,E4,Sky One,ITV2,ITV3,ITV4,Universal TV HD,Gold HD,Alibi,Dave,Comedy Central HD,Sky Crime HD,E! HD,More4,Film4,RTÉ One,RTÉ 2
prog_title: The Big Bang Theory
prog_description: Sheldon's latest scientific breakthrough leaves him feeling like a fraud.
prog_start_time: 2020-02-05T20:30:00
prog_end_time: 2020-02-05T21:00:00
prog_type: TV
prog_episode_title: The Romance Resonance
prog_episode_number: 6
prog_series_number: 7
base_channel_name: E4
friendly_name: Virgin V6
entity_picture: /api/media_player_proxy/media_player.virgin_v6?token=690b2d8287853bbf0d192930782074bdb263e8495e7f67b9bff7d5b19a1f1c51&cache=70faca363fba78bf
supported_features: 22961
ashdwells commented 4 years ago

Hi here’s what it says and again is an hour behind 7FB674B4-236A-4BF7-A054-DF35BE13E50C

bertbert72 commented 4 years ago

Could you show me your configuration,.yaml just the bit for the component? Also on your Tivo, what are the channel numbers for Channel 4, Channel 4 HD and Channel 4+1?

ashdwells commented 4 years ago

Channel 4 is 104 channel 4 HD is 141 channel 4 +1 is 142

bertbert72 commented 4 years ago

Ok, I think we'll need debug logging to try to work out what is going on. It looks like it must be somehow tagging Channel 4 HD as a +1 channel.. We can tell this for certain with the logging since it logs which channels it does the +1 offset for when creating the guide. We'll then just need to work out why...

To enable logging you need to change your configuration a bit:

logger:
  default: error
  logs:
    custom_components.media_player.virgintivo: debug

Then send me the log. One final question. Is it consistently an hour out, or just occasionally?

bertbert72 commented 4 years ago

If this is still an issue, please let me know otherwise I'll close it.