bertbert72 / HomeAssistant_VirginTivo

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

Ref Issue 109: 4-digit Channel IDs #119

Open pjrish opened 9 months ago

pjrish commented 9 months ago

Good morning,

For thos of us in the USA, many providers use 4-digit channel codes. Changing line 108 to the following fixes the configuration and compatibility issues:

CHANNEL_IDS = vol.All(vol.Coerce(int), vol.Range(min=1, max=9999))

Thank you!

almoney commented 3 months ago

This is old, but I started looking at Home Assistant TiVo integration. @pjrish, are you using Virgin Tivo in the US?

pjrish commented 3 months ago

This is old, but I started looking at Home Assistant TiVo integration. @pjrish, are you using Virgin Tivo in the US?

Yes, Comcast / XFinity.

almoney commented 3 months ago

@pjrish Nice. Would you mind sharing your configuration?

pjrish commented 3 months ago

@almoney here is what I have been using. Also remember I had to change a line in the source code, as mentioned above. This has been working for about 2 years +/-. Hope this helps!

config.yaml:

` media_player:

TIVO

almoney commented 3 months ago

I have too many TiVos so I also increased the number of TIVO_IDS to 50 on line 105:

TIVO_IDS = vol.All(vol.Coerce(int), vol.Range(min=1, max=50))