bsailer
(Bernhard Sailer)
January 3, 2018, 8:48am
1
Is there any way to embed a string into the say command, e.g. to get the current state of an item read on my chromecast (default sink).
I already tried with this command…
openhab> smarthome:voice say ("hallo" + AAADummyitem.state())
Error executing command: Cannot coerce +(Token) to any of []
Olymp
(Sergey M)
January 3, 2018, 8:59am
2
I did not check:
AAADummyitem.state.toString
hr3
(Harry)
January 3, 2018, 9:43am
3
I think, you couldn’t use this in voice say.
In rules it works.
opus
(Jürgen Baginski)
January 3, 2018, 11:20am
4
I’m using a rule to make my sonos boxes “say” something (posted here:Sonos ... Audio Sink ... Say? )
The string handed over to the say command can easily be changed.
The code part with the ‘notificationsound’ is specially for sonos.
bsailer
(Bernhard Sailer)
January 6, 2018, 1:34pm
5
Thank you for tis example but i don’t have cases.
I want my Chromecast to wake me up with “Good morning, today it has degres,…”
opus
(Jürgen Baginski)
January 6, 2018, 1:58pm
6
No problem, I am only know the older Chromecast binding, that one supported the say command, but it did not restart the previous music.