Did some edits and released version 0.1.11.
Let me know if this improves the behaviour.
-
Thx. Seems to work. First tests were successful!
BTW: The pimatic-sounds plugin is missing in your signature …
@bertreb said in New plugin pimatic-sounds:
Be aware that not all streams can be restarted because they originated from a source like netflix or spotify. Only services with an url (like TuneIn) can be restarted.
You are right. Netflix was a bad example. The stream gets stopped than, but important for me is that after a picture was shown it comes back to the app where it was before.
@bertreb said in New plugin pimatic-sounds:
If you want to use a better announcement function you should use assistant-relay with a sound GoogleDevice
I will got for it when I will have more time. Currently I am not that much in front of my keyboard…
Did you check the mentioned problem which I have regarding the volume resume after accouncing s.th. with higher vol?
-
I did some edits on assistant-relay and fixes on volume handling. New version 0.1.16
If you install assistant-relay and use the related GoogleDevice you get 2 extra’s:
- real text announcements as an interrupt of whatever is playing. After the annoucement, the playing stream resumes
- you can send text commands to google assistant, as if you where talking to an assistant device.
The rule command for that is (with an example question) “play ask 'whats the time?’ on <GoogleDevice>”. Your google mini, hub, etc will respond with the current time.
This way you can even control in google home known devices. For example ‘switch … on’, ‘set temperature to …’ . This is of course a 1-way interface to those devices.
-
Seems that the
play file "X" on device for Y seconds
feature doesn’t supports time variables. Could you add this? -
Wow nice. You are so fast. Too fast for me… I forgot one thing yesterday. It would be nice to get the current volume setting in the pimatic GH device, beside status and info?
-
And i added the possibility in a GoogleDevice to cast a website / streaming video (camera, etc) to a Nest Hub, etc.
The rule syntax is 'play site “url of website/streaming video” on <GoogleDevice>'
The volume and duration can also be used in this syntax.
Version 0.1.20 -
Hey, nice idea. I tried it with my motionEye provided stream from one of my cams. This stream is used as well in my MjpgDevice. Unfortunately this stream seems to be not compatible with the GH devices.
Regarding the new volume feature of the GH devices… For me the volume of any device is shown empty after startup as long as your plugin casts something to a device or the vol of a device gets changed at the device itself or via the app. Can you make volume grep during initialization/startup?
-
Been using pimatic sounds for quite some time now and I have to say it keeps getting better and better! Thanks @bertreb
Ofcourse a question: the new “site” addition doesn’t work with rtsp urls I guess?
Because if it does I would be able to see my generic wifi camera on my Google devices, would be awesome. But I do think that’s a long shot haha.
Same with realtime camera on pimatic from an rstp stream. I don’t think that’s going to work ever wich is too bad because there aren’t much (cheap) mjpeg camera’s around anymore. -
Ah never looked at that! Time to buy me another pi it seems.
-
I tried some youtube and websites no stream was possible on a Nest hub or my MiBox. On which device did you test it?
-
@bertreb said in New plugin pimatic-sounds:
enable assistant-relay to use the play site option
That’s the key. I haven’t done this yet. But I will!
-
And when you have installed assistant-relay you need what works in your situation.
A YouTube video should autoplay with ‘play file …’ and a streaming video from MotionEye needs 'play site…'
The documentation of assistant-relay give more info on these functions. -
So yesterday I have installed assistent relay. Unfortunately it do not work for me. I tried it via the sandbox on the assistant relay UI. I can the activity in my https://myactivity.google.com/. So the config seems to be okay. It could be a problem with IPv6 as I learned. I tried to deactivate it in my fritzbox, but all GH still has an IPv6 address. I will try once more in the next time…
I played a little bit around with catt. This is really nice. If I will not get AR to work I will use catt on script base. -
The assistant-relay extra you miss is the announcement function thats interrupt whatever is playing and with a nice visual effect. But thats not a big miss.
In the plugin i’m using catt already directly for several functions. For now as part of the GoogleDevice. But if the assistant-relay installation is troublesome i could use catt stand-alone together with the other casting library (castv2-client) in the ChromecastDevice. Catt is good in playing media and castv2-client is good in tracking status info.
Is that something that works for you or do you want to script catt separately?
-
I always like to script :D. But if you could implement it directly into your plugin it would be a benefit for all users.
@ortin said in New plugin pimatic-sounds:
enable assistant-relay to use the play site option
The AR stuff is nice for sure, but at the end I only installed it because of your statment above…
@ortin said in New plugin pimatic-sounds:
Regarding the new volume feature of the GH devices… For me the volume of any device is shown empty after startup as long as your plugin casts something to a device or the vol of a device gets changed at the device itself or via the app. Can you make volume grep during initialization/startup?
Did you see this finding? I already have a workaround ( decreasing the volume -1 and got back) after startup of pimatic. But maybe you like to handle it internally.