Installing Sonos Plugin 2.0 (development/pre-release) for Azure TTS access

Congratulations! Addressing your last question, there are at least two ways to fire off an Activity Group within Reactor:

THE TRIVIAL WAY
Go to the Activities page, and click the “Running Man” icon above any group whose activities you’d like to execute immediately;

THE PROGRAMMATIC WAY
Include a [RUN GROUP ACTIVITY] action within another Reactor routine, so that the desired group gets executed in turn;

THE VIRTUAL SWITCH WAY
What it says: Create a Virtual Switch (using yet another Patrick Rigney plug-in, named Switchboard) and include it as a Condition within your routine, to trigger its execution with ON or OFF;

The second method mentioned above can be exceedingly powerful, once you begin treating those otherwise-manual groups as “subroutines” or “functions”. It’s a great approach to making your Reactors modular and easy-to-maintain.

Thanks @LibraSun. Perhaps I’m being dense, but what I’d like to do is have a Vera Scene kickoff a Reactor activity group (because I’m using Vera/Google Assistant for voice-activated scenes). Is there a simple way to do that?

The most obvious (and arguably most sensible) is to use the third method mentioned above. Create a virtual switch, include it as a Condition in Reactor routine(s), then do what you need to with it in Scenes.

But, since you asked… yes, a Reactor activity group can be fired directly within a Scene. How to accomplish this doesn’t immediately come to mind (I just spent 2 minutes looking at Scene > Advanced Editor and came up empty-handed…), but do read:

And now my Vera seems to be clogged up :-(. After re-installing the latest Sonos Plug-in code, and doing a hard refresh, I’m stuck with the never-ending green circle spinning. Powered down/up the Vera and it’s not coming back to life - zwave & zigbee lights come on, then off, endlessly. Ugh. This is the stuff that drives me nuts about Vera.

UPDATE: It eventually recovered…whew!

1 Like

Ugh!! In preparation for an evening of troubleshooting that problem, I gotta ask: Do you have PuTTY and/or WinSCP installed on your PC?

It would be instructive to know how much free disk space you have on your Vera, since you may have inadvertently bumped up again some space constraints.

EDIT: If things go all to hell, go ahead and hit that “Need Help!” link at the top of every Forum screen, and let Support hold your hand, up to and including a system rollback through Backup/Restore.

I’m on a Mac, and can use Terminal. At this point, it looks like I’ll need to do a factory reset/restore from backup. So much for progress - I was so close. :expressionless:

@slackner I’d like to have you reinstall one more time (steps 4-10 only, and then skip to 14). I’ve made some adjustments to the actions to see if I can improve the performance of scenes and Reactor actions when you send a bunch at the same time. If this works, it should work without adding any delays between. Just fire away.

For clarity, can you also tell me what version of Vera firmware you are running?

DO NOT SCORCH THE EARTH!!! NO FACTORY RESTORES!!! Let’s figure out what’s going on.

I’m on the latest firmware (Vera Plus), but don’t have the number in front of me because I can’t get to that screen. Vera is entirely non-responsive at this point - it can’t seem to start the engine.

Are you able to connect to it via Terminal?

Haven’t tried - I’ll give that a try now. It’s not something I’m terribly experienced at, but I have done it in the past. And I wouldn’t want you wasting your time talking a semi-novice through it. I did submit a support request, so hopefully they’ll get back to me soon.

I can ssh into Vera, but wouldn’t know what to do from here. If there’s a basic set of steps you can share to check/troubleshoot, great. If not, I’ll wait for tech support. Damn…

OK, for starters, do a df -kh and post the output. Let’s see if, as @LibraSun suggested, you’re too close to full somewhere. Also, along with that, do cat /etc/cmh/version and post the output of that together with the rest.

1 Like

OK, thanks. I had some code to do a cache clear that I just executed. It’s rebooting now. If that doesn’t yield a positive result, I’ll post momentarily with what you requested.

df -kh…

Filesystem Size Used Available Use% Mounted on
rootfs 10.6M 1.0M 9.6M 10% /
/dev/root 8.0M 8.0M 0 100% /rom
tmpfs 124.3M 980.0K 123.4M 1% /tmp
/dev/mtdblock6 10.6M 1.0M 9.6M 10% /overlay
overlayfs:/overlay 10.6M 1.0M 9.6M 10% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock10 50.0M 12.4M 37.6M 25% /storage
/dev/mtdblock10 50.0M 12.4M 37.6M 25% /etc/cmh-firmware
/dev/mtdblock10 50.0M 12.4M 37.6M 25% /etc/cmh-backup
/dev/mtdblock9 9.8M 9.8M 0 100% /mios
/dev/mtdblock10 50.0M 12.4M 37.6M 25% /etc/cmh-ludl
/dev/mtdblock11 19.3M 1.1M 18.2M 6% /ezmi
/dev/mtdblock11 19.3M 1.1M 18.2M 6% /etc/cmh

Version 1.7.4970

OK… now ls -l /etc/cmh-ludl/*_Sonos*

-rw-r–r-- 1 root root 2416 Apr 19 13:17 /etc/cmh-ludl/D_Sonos1.json.lzo
-rw-r–r-- 1 root root 685 Apr 19 13:17 /etc/cmh-ludl/D_Sonos1.xml.lzo
-rw-r–r-- 1 root root 10439 Apr 19 10:10 /etc/cmh-ludl/D_Sonos1_S16.json
-rw-r–r-- 1 root root 10439 Apr 19 10:10 /etc/cmh-ludl/D_Sonos1_S23.json
-rw-r–r-- 1 root root 10440 Apr 19 10:10 /etc/cmh-ludl/D_Sonos1_ZP80.json
-rw-r–r-- 1 root root 915 Apr 19 13:17 /etc/cmh-ludl/D_SonosSystem1.json.lzo
-rw-r–r-- 1 root root 558 Apr 19 13:17 /etc/cmh-ludl/D_SonosSystem1.xml.lzo
-rw-r–r-- 1 root root 793 Apr 19 13:17 /etc/cmh-ludl/I_Sonos1.xml.lzo
-rw-r–r-- 1 root root 3090 Apr 19 13:17 /etc/cmh-ludl/I_SonosSystem1.xml.lzo
-rw-r–r-- 1 root root 13029 Apr 19 13:17 /etc/cmh-ludl/J_Sonos1.js.lzo
-rw-r–r-- 1 root root 9730 Apr 19 13:17 /etc/cmh-ludl/J_SonosSystem1.js.lzo
-rw-r–r-- 1 root root 66582 Apr 19 13:17 /etc/cmh-ludl/L_SonosSystem1.lua.lzo
-rw-r–r-- 1 root root 10071 Apr 19 13:17 /etc/cmh-ludl/L_SonosTTS.lua.lzo
-rw-r–r-- 1 root root 17920 Apr 19 13:17 /etc/cmh-ludl/L_SonosUPnP.lua.lzo
-rw-r–r-- 1 root root 1707 Apr 19 13:17 /etc/cmh-ludl/S_Sonos1.xml.lzo
-rw-r–r-- 1 root root 5942 Apr 19 13:17 /etc/cmh-ludl/S_SonosAVTransport1.xml.lzo
-rw-r–r-- 1 root root 1805 Apr 19 13:17 /etc/cmh-ludl/S_SonosAlarmClock1.xml.lzo
-rw-r–r-- 1 root root 884 Apr 19 13:17 /etc/cmh-ludl/S_SonosAudioIn1.xml.lzo
-rw-r–r-- 1 root root 909 Apr 19 13:17 /etc/cmh-ludl/S_SonosConnectionManager1.xml.lzo
-rw-r–r-- 1 root root 1933 Apr 19 13:17 /etc/cmh-ludl/S_SonosContentDirectory1.xml.lzo
-rw-r–r-- 1 root root 1577 Apr 19 13:17 /etc/cmh-ludl/S_SonosDeviceProperties1.xml.lzo
-rw-r–r-- 1 root root 715 Apr 19 13:17 /etc/cmh-ludl/S_SonosGroupManagement1.xml.lzo
-rw-r–r-- 1 root root 900 Apr 19 13:17 /etc/cmh-ludl/S_SonosGroupRenderingControl1.xml.lzo
-rw-r–r-- 1 root root 735 Apr 19 13:17 /etc/cmh-ludl/S_SonosMusicServices1.xml.lzo
-rw-r–r-- 1 root root 3327 Apr 19 13:17 /etc/cmh-ludl/S_SonosRenderingControl1.xml.lzo
-rw-r–r-- 1 root root 1031 Apr 19 13:17 /etc/cmh-ludl/S_SonosSystem1.xml.lzo
-rw-r–r-- 1 root root 1055 Apr 19 13:17 /etc/cmh-ludl/S_SonosSystemProperties1.xml.lzo
-rw-r–r-- 1 root root 1309 Apr 19 13:17 /etc/cmh-ludl/S_SonosZoneGroupTopology1.xml.lzo

These two directories seem maxed out (although I don’t know if that means anything)…

/dev/root 8.0M 8.0M 0 100% /rom
/dev/mtdblock9 9.8M 9.8M 0 100% /mios

That’s normal. Did you uninstall the 1.4 plugin per the instructions before installing 2.0 the first time? It looks like you have quite a mix of files there, many from the old plugin. The uninstall does not remove the files, so it’s not unexpected to see them there, but I want to be sure. In your earlier post, you mentioned doing a “totally clean install”, but you don’t mention uninstalling the old plugin.

Yes, I’m pretty certain I did uninstall 1.4 before installing your code. Should I wipe this directory? I’m now wondering if installing Reactor pushed me over the edge, but I don’t have a good sense of how much these things can store. I don’t have a huge number of plug-ins installed, maybe 8 or so, including the ones that come preinstalled?

No, it’s not a space problem. I have a suspicion, but before I go there, let’s try the easiest thing. Send these commands:

cd /etc/cmh-ludl/
rm L_SonosSystem1.*
/sbin/reboot

Your Vera will do a full reboot. Let’s see if it comes up like this.