Using CATT

Thanks to some great help in here I have manged to have this running great for the past 6 months. After a home assistant restart today I am getting the following ( sorry for the image I can’t seem to copy from terminal ):

Anybody got any ideas?

Not sure what’s wrong. My first step would be to try
pip3 install catt

and if that does not help, perhaps
pip3 install catt --upgrade

Unfortunately that didn’t solve it. I don’t think it actually changed anything.


Requirement already up-to-date: catt in /usr/lib/python3.8/site-packages (0.12.0                                      )
Requirement already satisfied, skipping upgrade: Click>=7.1.2 in /usr/lib/python                                      3.8/site-packages (from catt) (7.1.2)
Requirement already satisfied, skipping upgrade: youtube-dl>=2020.9.20 in /usr/l                                      ib/python3.8/site-packages (from catt) (2021.2.22)
Requirement already satisfied, skipping upgrade: ifaddr>=0.1.7 in /usr/lib/pytho                                      n3.8/site-packages (from catt) (0.1.7)
Requirement already satisfied, skipping upgrade: PyChromecast>=7.5.0 in /usr/lib                                      /python3.8/site-packages (from catt) (9.0.0)
Requirement already satisfied, skipping upgrade: requests>=2.23.0 in /usr/lib/py                                      thon3.8/site-packages (from catt) (2.23.0)
Requirement already satisfied, skipping upgrade: casttube>=0.2.0 in /usr/lib/pyt                                      hon3.8/site-packages (from PyChromecast>=7.5.0->catt) (0.2.1)
Requirement already satisfied, skipping upgrade: zeroconf>=0.25.1 in /usr/lib/py                                      thon3.8/site-packages (from PyChromecast>=7.5.0->catt) (0.28.6)
Requirement already satisfied, skipping upgrade: protobuf>=3.0.0 in /usr/lib/pyt                                      hon3.8/site-packages (from PyChromecast>=7.5.0->catt) (3.15.3)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /usr/lib/p                                      ython3.8/site-packages (from requests>=2.23.0->catt) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /usr/lib/python                                      3.8/site-packages (from requests>=2.23.0->catt) (2.9)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,                                      >=1.21.1 in /usr/lib/python3.8/site-packages (from requests>=2.23.0->catt) (1.25                                      .9)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/                                      python3.8/site-packages (from requests>=2.23.0->catt) (2020.4.5.1)
Requirement already satisfied, skipping upgrade: six>=1.9 in /usr/lib/python3.8/                                      site-packages (from protobuf>=3.0.0->PyChromecast>=7.5.0->catt) (1.15.0)

Strangely when rolling back to catt v0.11.3 it works again, but as soon as I update to v.0.12.0 it throws the same error message.

strange indeed, I have no issues with 0.12.0.
I also don’t see any recent updates on https://github.com/skorokithakis/catt .

The only thing I can think of is that then something else in your config must have changed. Maybe someone who knows python a bit better can understand the error message that you posted.

I agree, I don’t think it’s an issue with 0.12.0 as until today I had been running it with no problems.

One thing I do see, is that your update message mentiones 9.0.0 for pychromecast, my message mentions 8.0.0. It does seem that Pychromecast was just updated 7 hours ago: https://github.com/home-assistant-libs/pychromecast/tree/master/pychromecast

Requirement already satisfied, skipping upgrade: PyChromecast>=7.5.0 in /usr/local/lib/python3.8/site-packages (from catt) (8.0.0)

Well spotted! I think I’ll leave catt on 0.11.3 and pychromecast v9.0.0 until cleverer people than me fix it :grinning:

1 Like

I seem to have had the same issue as you. Same story with newer pychromecast on my end too. Following your suggestion of downgrading CATT (pip3 install catt==0.11.3) and leaving pychromecast worked for me too. I had a automation that would ensure catt was installed on startup so I’ve just modified that to keep it on ver 0.11.3 too. Fingers crossed it’ll keep working :crossed_fingers:

I had the same issue as above, but downgrading to 0.11.3 worked as well.
But now I have a separate issue.

executing this from the terminal directly works fine:

catt -d "Living Room display" cast_site http://192.168.86.22:8123/lovelace/remote_view

Yet using the service call below in home assistant does nothing:

  - service: hassio.addon_stdin
    data:
      addon: a0d7b954-ssh
      input: 'catt -d "Living Room display" cast_site http://192.168.86.22:8123/lovelace/remote_view'

It worked fine a week or so ago, and unsure what update broke it.

Any ideas are appreciated!

What do your logs say?

Couldn’t figure out which logs to look at, but couldn’t see any errors.

But, just updated SSH & Web terminal to 0.8.4 and now it works. So maybe some bug was fixed for 0.8.3. Not sure…

Hello everyone, after I have updated the SSH & Web terminal to 0.8.4 and home assistant to Version
core-2021.3.4 the cast to my lenovo smart display is not working anymore, I don’t even know where to start the debugging as on my SSH & web terminal log CATT is being installed normally on startup and it call the cast automation but it never starts

can somebody provide me some light on where I can start looking?

What do you see if you go into SSH & web terminal and just type in the CATT command manually?

Mine stops working after some time. I have to restart the ssh add-on occasionally.

Hello,

i have this warning since about 15-20 days :

WARNING (MainThread) [supervisor.addons.validate] Add-on config 'startup' with 'before' is deprecated. Please report this to the maintainer of Resting Catt

Is it only me?

That should be done via github issues.

yes understand, thanks

@Olivier974 what version of the addon are you using? The original seems to be https://github.com/homeassistant-addons-eliseo/resting-catt and there is a fork here https://github.com/mirecekd/resting-catt

Both have the error (deprecated startup option). Neither seems to have your issue.

thanks to help and sorry for my bad explanation : i used the SSH-Terminal Add-On Current version: 8.1.1 from @frenck and install catt from init_commands :

 ssh:
  username: homeassistant
  password: ''
  authorized_keys:
    - >-
      ssh-rsa
      .........
  sftp: false
  compatibility_mode: false
  allow_agent_forwarding: false
  allow_remote_port_forwarding: false
  allow_tcp_forwarding: false
zsh: true
share_sessions: false
packages: []
init_commands:
  - python3 -m pip install catt
  - pip3 install gpiozero pigpio

from https://community.home-assistant.io/t/using-catt/130332/127
i am under HassOs 5.3