Yes but for the rule I need an item connected to that channel that than can recieve the rule command no? Thats How I did it in 2.5ā¦And in your rule, the command is also passed to an itemā¦
when I trigger the rule, it appears for a short timeā¦I secreenshotted right after i pressed play to test the ruleā¦normally this field is emptyā¦I just switched on the semantic-tag point and none (like yours instead of emty) still nothingā¦
The only difference I have in my item is the symbol, and the profile (which was none for me). I switched it to standard, but still donāt hear anythingā¦
No errors or warnings regarding the echo controlā¦ony this one which relates to a wrong state-description metadata I think:
2021-01-15 15:12:00.467 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item ThermostatKuche_Setpointheating, ignoring it
Just for the recordā¦I also have problems regarding this ruleā¦itās z-wave so a complete different bindingā¦here the only-if doesnāt apply and the rule never runsā¦:
Iām trying for five days now and iām completely desperarted as I canāt find any cause and as the āoldā rules which are written inside the rules folder work perfectlyā¦Iāts a complete fresh installā¦
Okay now itās getting creepyā¦I had no errors in the logs, but I decided to rebootā¦guess whatā¦it works now *facepalmā¦I absolutely have no Idea whyā¦I normally avoid reboots, as they are masking a problemā¦I have no Idea what this problem could beā¦
Thanks for all the Help! You really aided me to cross out thingsā¦and by the way, this soundeffect in your code is cool! Do you have more of them or know where I can find them? =)
Should I still send something to you? If yes, what do you need? I want to help to find the cause of this as I have no Idea what it could be but I want to prevent it from happening for othersā¦
Besides the rule with the lights is still not working throughout rebootā¦
Thank you very much! Iām very happy that this is working now! That sound thing is extremely cool =). Didnāt know that this was possible =). Maybe you have an Idea with the light rule too? =)
I try to let my Google Home Mini speak out what Smoke Detector hit the alarm. Chromecast binding, Google TTS and Default Voice Settings like documented are set.
What is not working is the āsayā command in the following rule, I searched a lot in the community but there are no OH3 specific help articles.
I think I need some āJave.type()ā for the TTS say command, do I and when which?
I definded a āECMAScriptā:
var logger = Java.type('org.slf4j.LoggerFactory').getLogger('org.openhab.rule.' + ctx.ruleUID);
var allSmokeDetectors = itemRegistry.getItemsByTag('Smoke')
for (var i_index in allSmokeDetectors) {
state = allSmokeDetectors[i_index].state;
if(state == 'OPEN') {
label = allSmokeDetectors[i_index].label;
//say("<speak>Achtung! <break time=\"3s\"/> is " + label + "</speak>");
say("Hi", "googletts:deDEWavenetA", "chromecast:audio:f8610c2090")
logger.warn(allSmokeDetectors[i_index].label);
}
}
But I get the following warming in the log:
2021-03-07 22:40:19.006 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'e15056975f' failed: ReferenceError: "say" is not defined in <eval> at line number 15