Hi All,
I’m a new Home Assistant user so be gentle with me! I do have some experience of programming and Home Automation in general (having a Vera Edge and Amazon Echo & Dot).
I tried:
echo SETCH 144 | telnet 192.168.0.XXX 31339
from a command prompt on Windows 10 and couldn’t get it to work so I looked for alternatives.
Has anyone figured out how to use this on a mac yet? I’m tearing my hair our just trying to change channels with 'echo SETCH 163 | telnet 192.168.0.6 31339. It’s something to do with the I think but I cannot find a way of making it work.
Since 0.54 (September 17), you can use the telnet switch natively without having to resort to calling the command line echo. Here’s an example from my configuration.yaml, where TIVO-CF0010123456789 is the DNS name of the Tivo box.
have you managed to report state at all? I’d really like to know if it the box is on off not to make my automations a little better. I have a TCP sensor which tells me what channel its on, but takes a while to update and i cant seem to automate using the state.
Hi! Thats great news.
How would one go about installing this component in hass.io because I dont see that file structure exposed in samba. I guess right now its only possible in hassbian?
I’m happy to help where i can as long as i can figure out how to get this installed
@milosch01 never mind the last message… I’ve installed this and running into issues. I’ve opened an issue at github. I’m happy to help on this once I can get it going and have a basic understanding. I’m a coder, but not python but im sure once i get it going I can dive in
Iv managed to report the state in an automation (the trick was to create another sensor which reported the state of the initial one) so thought i’d let you know
Take a look here:
sensor:
- platform: tcp
host: 192.168.0.10
port: 31339
payload: "IRCODE PAUSE\n"
- platform: template
sensors:
virgin_status:
friendly_name: 'Virgin status'
value_template: '{{ states("sensor.tcp_sensor") }}'
automation tv lights on:
alias: TV on - TV lights /Virgin on
trigger:
platform: state
entity_id: media_player.sony_tv
from: 'off'
to: 'on'
action:
- service: homeassistant.turn_on
entity_id: light.tv_lights
- service: homeassistant.turn_on
data_template:
entity_id: >-
{% if is_state('sensor.virgin_status', 'COMMAND_TIMEOUT') %}
switch.virgin_power
{% else %}
# do nothing
{% endif %}
So now my box wont turn on when i try to turn a group off, and vice verca.
Would have been far easier if the there was a separate button/call to turn the box on and off, rather than a single one which toggles.
I’ve pulled together a Tivo custom component specifically for Virgin Media boxes in the UK. I doubt if it’ll be much use to any non VM Tivo users unfortunately since it is very tied to the VM functionality.
Full details are on the GitHub repository, but in addition to the usual change channel, pause/play, turn off/on, it hooks into the VM What’s On guide in order to provide programme info. It has all the benefits and limitations of that guide, e.g. limited number of channels, but good info and the ability to show a screen grab of the currently playing programme. In addition it can automatically switch to the HD version of a channel and flick to the +1 version if available.
Let me know how you get on. On mine I’ve set scan_interval to 1. Means everything is pretty quick. Probably some better way to do that but works for me