Try starting it from your phone app. It may have lost the service key, and it will pick it up again if the app starts it playing. After that, it should be OK.
@rigpapa - It plays a sirius radio station I had playing before but the Tune In radio Id station does not play. I rebooted the Vera and still the same results.
Having a problem today with Plugin 2.0. I am getting a console error “SONOS: CHECK SYSTEM – LOW DISK SPACE”.
lOG file reports “luup_log:9: Sonos: WARNING! Free space on “/etc/cmh-ludl/” is critical (92%% full)”.
I do not see any large files in “/etc/cmh-ludl/”.
Where is the TTS cache stored and how do I clear it.
Plugin installed on VeraEdge.
The TTS cache is normally stored in /www/sonos/ttscache. On firmware 7.30 and above, this is a different partition from /etc/cmh-ludl so clearing it will not make this message go away.
Basically, you have too many plugins. If you are comfortable with the tight space and know what you are doing, you can ignore the messages. Otherwise, you need to clear out some space from /etc/cmh-ludl. If you have uninstalled any plugins that you no longer use, the Vera does not remove the plugin files for those now-unused plugins, it just leaves them in that directory as orphans taking up space. So you can remove them yourself to recover space. Just be careful you don’t remove any files from live plugins (although in most cases, Vera will simply notice this and replace the missing file).
Not the case at all. I have 3 nonoptional plugins, vSwitch, uPnP and your Sonos 2.0.
I found the problem shortly after I posted the problem. It is the ttscache. After deleting all the folders in …/ttscache/AZURE/. and reboot to clear the “/overlay files”, fixed the problem.
Perhaps you may want to look at your “L_SonosSystem1.lua” starting on line 2783 “-- Check disk space” and check the “path” the error is reporting. Also, I see it reporting the problem, but doing nothing to fix it.
I’m not sure I see the need for ttscache on such a limited memory resource product like Vera. If an end user can’t wait 10 seconds for a message, consider an optional ttscache “check box option” for them to select. Also consider an option for ttscache files stored on an external network drive or usb.
Lastly, delete the ttscache at 60%. Don’t wait until 99% full, and just report the problem.
Otherwise, nice work. I have many more problems & fixes to report, but will keep this post on topic.
Thanks, Tom
That’s correct, and it won’t. Fixing things in /etc/cmh-ludl is not the plugin’s business. Partitioning on the newer firmware for Plus/Secure, the /etc/cmh-ludl/ directory and /www are on separate filesystems. Maybe that’s not true for Edge. I can’t tell/test at the moment, because my Edge is running the new eZLO Linux firmware. But in any case, there are parameters for cache management and pruning described elsewhere in this thread, as well as options for disabling the cache on individual actions or globally. It’s unusual for the cache to grow to any dangerous size, unless you speak a lot of dynamic phrases, in which case, well, I cover what you should be doing to manage the cache in this prior posts. The purpose of the cache is not just speed, but to make speech available when the Internet is not.
So I recently moved moved over to Azure TTS and everything going well. However when I set the TTS to repeat I only get voice once; no repeat. Trying to grab the logs as we speak but ever since support has had control of my VP its been difficult finding anything through the logs.
Is there anything in this plugin 2.0 (current version) that writes to Sonos speakers that cannot be undone by speaker power shutdown?
Will the plugin ver 1.4 remain available from Vera Apps download in addition to the new 2.0? This new plugin totally hoses two years of my code writing time for 4 Vera Plus units currently controlling 16 Sonos speakers.
Tom
I think everyone knows the answer to that question: the App Marketplace only offers the most recent published and approved version of the plugin. Prior releases are archived, and it is possible to install those prior releases, but when auto-update is on (or as recently suspected, there’s a bug in the handling of the auto-update flag), your Vera will make an effort to put you on the head release.
I don’t know how long you’ve been using 2.0; but it’s generally available for about three months. Your first post about it was just 3 days ago, and it wasn’t a bug report as much as a complaint about something not working the way you wanted it to, which I completely understand. If you’ve got other problems, I’m interested in hearing them, and possibly fixing them. I put a lot of time in here on a lot of plugins, and this one isn’t even mine, I just picked it up when it lost its maintainer. I do this because I want people in this community to be successful with Vera. It’s coming up on 5 years since the last version was released into the App Marketplace, and the problems with the old plugin were many, and many still continue today, but I’m hitting the worst and most troublesome first. The community has much more varied equipment and setups than I do, and I’ve already said elsewhere in this topic that because of the prohibitive cost of these devices, and the fact that I get no significant financial support from the community for this plugin, I cannot and will not buy every Sonos device to test with–in fact, the total retail price of all current Sonos products exceeds by several multiples the sum total of all donations I’ve ever received for all of my work here. The community is part of the process and always will be. If you have something substantive to add, please do. If I can get you happy on 2.0, or maybe a later version given the lateness of the hour in this case, I’ll do it. But don’t storm into the room at the 11th hour with vague missives about hosing your configuration or that you have “many more problems to report” and then don’t report them. That helps no one, and it certainly doesn’t predispose me to want to spend another minute trying to help.
If you really want to stay on 1.4, let me know and I’ll give you the necessary steps to decouple your installed plugin from the app marketplace so it never attempts to upgrade the plugin on your systems, and you’ll be good to go. Just know that I will not be supporting any version other than 2.0 or its progeny in future.
Edit: If you want to stay on 1.4, you have today and only today to let me know, because I’m posting the app for release tonight, and the changes to your system will need to be done before Vera approves the update.
For the time being, I will stay with 1.4. I do not keep auto Update checked. I’m not everybody, so I did not know the 2.0 Plugin would replace ver 1.4 with such a major upgrade. The ONLY reason I have stayed with Vera, at all, is for Sonos. I first tried updating the Sonos Plugin when you first released it because of the loss of RV (for me, RV went away March last year). I only wanted it to announce current music track, song, and number of tracks when starting a new play function. You know, “sombie” messages as you refer to them. This is what filled up the cache on my Vera Edge (the stand alone device I used to test the Plugin). I later tested it on one of my VeraPlus units 2 days ago, and that’s when I had the real problems. I have removed the 2.0 plugin using these steps {please let me know if I did something wrong:
1.) Removed uPnP and ran the removal code.
2.) Deleted the Sonos System device.
3.) Deleted all the Sonos files in /etc/cmh-ludl/ (about 28 of them)
4.) Deleted folder /www/sonos
5.) Reboot and Reinstalled 1.4 from “Install apps”
I downloaded the 1.4 files from My Vera to a folder as a backup (not lzo files).
Please let me know if I missed anything.
My problems that I had with 2.0 were as follows (only mentioning them as I encountered them). No need to try and resolve on my account.
1.) The first problem you know about. Fixed and understand how to prevent it. (Vera Edge)
2.) Group management. Can not control groups. Create one group, and 2.0 never forgets it to allow a newly defined group. Seems to get confused, like groups are cached somewhere.
3.) Erratic volume behavior when attempting to define groups for Music play, alerts play or TTS play. Just as a note, I used different volume for each speaker. Not sure if that is the reason I was having the problem.
4.) When playing TTS, volume recovery is slow, and music playing before TTS (say), will blast after the say command is complete, until settled seconds later. Voices for TTS are very soft in volume.
5.) Chime (I spent a day trying to get this one working). The chime is volume 10, and TTS is volume 5. Try to set volume for Chime in the app and it overrides the TTS volume. Finally turned if off.
6.) Last is erratic overall performance of my Sonos speakers with 2.0. It acts like it is sending the speakers action changes that can not be changed with my code. I’m sure I’m not saying that in a way that makes any sense.
Anyway, in conclusion, my panic is driven by the need for a functional Sonos system. It provides music listening enjoyment, and alerts me of numerous activities (about 237 to be exact). I am going blind, and will not have the ability to fix it later. This is the main reason why I have not read the previous 320 post on the 2.0 update.
I commend you on your herculean effort to upgrade the Sonos Plugin. I know it will be enjoyed by many. For me, it’s not just a cool thing to have, but a necessity. It’s too bad management at Vera has not taken a leadership role on this.
One question. One of the problems with Sonos on Vera is constant reboot. Does 2.0 help with that?
Again, Thank you for the time and effort.
Tom
To complete the decoupling of your Sonos 1.4 plugin from the App Marketplace so you can stay on 1.4, you need to run the following in the Test Luup Code window:
changed = false
for k,v in pairs(luup.devices) do
local p = luup.attr_get("plugin", k) or 0
if tonumber(p) == 4226 then
luup.attr_set("plugin", "", k)
changed = true
end
end
if changed then
luup.reload()
end
This removes the association between the plugin and the device. After running this, you should be able to uninstall the plugin, which will not remove the plugin files or devices (now that you’ve decoupled them), but simply remove the registration of the plugin from the Vera (the key step to preventing upgrades).
When it’s all done, your devices should be left sitting there as they were, and the (1.4) plugin files will still be in /etc/cmh-ludl, and the system will run those devices from that code.