I made a small change and added debug info in version 0.2.1
Please post the debug log ?
-
Its a bit better, as with version 0.1.10. Every second time works. I test it 10 times in a row.
Debug output for NOK:
Debug output for OK:
-
Am i right that the log is when a stream is playing and the picture is casted for 8 seconds?
The start and the end of a rule is not clear so i added extra debug info in version 0.2.2
Debug start: 'Playsite - start, PlayingState: …'
Debug end: 'Playsite - end …'
Could you post this debug info per ‘play site’ test? -
The rule is simple:
when klick button is pressed then play site "http://192.168.0.102:8082" vol 100 on mi-box-4s-tv for 8 seconds
NOK
OK
Check the idle state. One time its playing, the other time idle. Maybe its not necessary to try to get back to the previous stream, but just get out of the catt stream. At least in this case…
-
First test looks good! Thx for the update.
-
Did you change something on the play text function?
-
Not on the text play, but only on the restart of content after text, file or site play. There are a lot of asynchrone processes to get in the right flow, so an unintended side effect could happen. The display in the gui could be changed a bit.
What change did you noticed? -
A rule which contains play text was not working. I did then a simple test, but it was not successful. A restart of Pimatic resolved the problem. I have some rules during the day with text I will have a eye on it.
-
I think I found a small bug. I was missing some sounds today. All the corresponding rules work without any duration for the played sound.
When klick button is pressed then play file "initSound.mp3" vol $tts-lautstaerke on google-nest-hub-wohnzimmer
Even for this no sound was playing. The debug shows
cast for 0
. When I extent the rule byfor 5 seconds
the sound is played.This is the debug output:
debug [pimatic-sounds]: Device volume set 18:22:45debug [pimatic-sounds]: Setting volume to 20 18:22:45debug [pimatic-sounds]: PlayContent finished 18:22:44debug [pimatic-sounds]: Cast_site ends 18:22:44debug [pimatic-sounds]: Playing http://192.168.0.100:8089/initSound.mp3 with volume 50, _duration null 18:22:44debug [pimatic-sounds]: Cast for 0 18:22:44debug [pimatic-sounds]: Setting volume to 50 18:22:44debug [pimatic-sounds]: Cast_site catt -d 192.168.20.1 cast http://192.168.0.100:8089/initSound.mp3 18:22:40debug [pimatic-sounds]: Replaying values: { "state": "IDLE", "volume": 20, "media": null, "info": "", "url": null, "duration": null } 18:22:40debug [pimatic-sounds]: PlayContent - start, PlayingState: IDLE 18:22:40debug [pimatic-sounds]: Playing sound file... http://192.168.0.100:8089/initSound.mp3
Seems you interpret no given duration as 0 second in the current version. This was different before (0.1.2x).
-
Looks good now!
I never test my Sonos till now (just for fun). Same rule beside the device, but no output.
20:53:51 debug [pimatic-sounds]: Error in playFile: Not implemented 20:53:46 debug [pimatic-sounds]: Playing sound file... http://192.168.0.100:8089/initSound.mp3
-
I will test it today for you. And as always THANKS for the update!
@bertreb said in New plugin pimatic-sounds:
The play site is not implemented because Sonos has no screen
Clear!
-
Nest Hub use cases.
You can cast websites with the rule ‘play site “<url>”’. This can be used to cast for example a NodeRed ui. And with the node-red pimatic plugin you can control Pimatic via the Nest Hub.
You can also cast your Pimatic url, but because Nest Hub doesn’t have a virtual keyboard, you need to disable the login (authentication). -
I found a strange behavior on my system and like to ask if it is just local or reproducible as well on another environment.
Currently I am changing a lot in my system. Therefore, I am restarting it more often as usual. After I restart pimatic
play text
do not work anymore.play file and site
work. I need to reboot the whole system to bringplay text
back.The Debug is really rare:
-
My every 30 seconds play text “test” works.
What is rare about the debug line? The debug info is normal for the command play text "test"
Are you using somewhere else the configured port ? (default 8088) -
@bertreb said in New plugin pimatic-sounds:
What is rare about the debug line?
I think you missunderstood me. When the play text function works the debug simply shows more information. That was the point I want to show. Not more.
@bertreb said in New plugin pimatic-sounds:
Are you using somewhere else the configured port ? (default 8088)
I have configured 8089 and this is uniqu in my system (8088 ist already in use). But I can go for the default port for a test and change the port of the other application to something else.
If this not helps I will test some older plugin versions on a dedicated system. My feeling is this behaivoir starts after you add catt function directly (0.2.0 - just a feeling) -
Ok, i removed the … and changed the stop function in the text announcement to catt.
That way the function follows the same flow as the play file and site
Version 0.2.8.
I this doen’t work you should do the pre-catt test.