@skank CATT is easier than it had been with the exception of needing a shell command to execute a bash command. Once it is done it is pretty good even with the 10 minute shutdown. If you have one of the updated V1 hubs then you may not have the 10 minute limit. Which is very good.
FYI I am using Nabu Casa. If you are not using NC you may need to access the hubs using RSA keys.
I will take a crack at getting you back up and running but no guarantees.
In my configuration.yaml, I declare a couple of shell commands:
# CATT
shell_command:
updatecatt: bash updatecatt.sh
cattkit: bash cast_kit.sh
Reboot after adding these to the configuration.yaml.
The contents of the 2 files updatecatt.sh and cast_kit.sh:
updatecatt.sh contains this one line:\
pip install catt --upgrade
cast_kit.sh contains the following lines: (but can be adjusted to suit)
# catt -d 192.168.1.26 stop
# catt -d 192.168.1.26 volume 50
catt -d 192.168.1.26 cast_site http://192.168.1.110:8123/hubs-catt/kitchen
Next is the script
alias: CATT Kit
sequence:
- service: shell_command.cattkit
data: {}
mode: single
Next up, the events:
To initialize CATT on HA startup, first remove any old startup options to install pip3 CATT commands set in the SSH & Web Terminal. My first event I called CATT Init:
alias: CATT Init
description: 'Installs the latest version of CATT '
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: shell_command.updatecatt
data: {}
mode: single
Next to run the actual CATT session this event calls
alias: CATT Kitchen
description: Restart Kitchen Catt 15 seconds after any interruption
trigger:
- platform: state
entity_id:
- media_player.kitchen_display
to: 'off'
for:
hours: 0
minutes: 0
seconds: 15
condition: []
action:
- service: script.turn_on
data: {}
target:
entity_id:
- script.catt_kit
mode: single
Note there are a few bugaboos but generally does not need any restarter event as this event looks for the state of the hub to go OFF. When first powered up they do just that, so the session is initiated. The V2s that I have cycle every 10 minutes. My V1 is updated and does not need to restart every ten minutes. I have 6 hubs and I can tell you that these scripts work pretty well in general. But there are some instances where the hub will be showing a google picture but Dev Tools report Dashcast session active. This is a tough one to work around and I do not know where the problem lies but this happens infrequently.
Let me know how this works out for you.