Pushover is a V1 binding and a V3 version is still in active development so the only way in openHAB V3 is to use telegram and it is working well for a few days here.
Regarding gif and telegram there is something weird under iOS as they are very clear if viewed with the desktop app, but on phone they are blurry, please post if anyone knows why.
I am using mp4 which is very smooth and has audio.
MP4 with audio, awesome. I’ve been considering changing the camera over my front door to one with a microphone and this might be what makes me finally do it. Does the binding work on 2.5?
I have tried like the doc suggests, however with no luck.
How is the “telegramMessage” retrieved in the doc example?
rule "Reply handler for lights"
when
Item telegramReplyId received update Reply_Lights
then
val telegramAction = getActions("telegram","telegram:telegramBot:2b155b22")
if (telegramMessage.state.toString == "Yes")
{
gLights.sendCommand(OFF)
telegramAction.sendTelegramAnswer(telegramReplyId.state.toString, "Ok, lights are *off* now.")
}
else
{
telegramAction.sendTelegramAnswer(telegramReplyId.state.toString, "Ok, I'll leave them *on*.")
}
end
Here is my code: send query first
telegramAction.sendTelegramQuery("Porte de garage ouverte depuis: " + PorteGarage.lastUpdate + "\nVoulez-vous la fermer?", "PorteGarageActionAnswer", "Oui", "Non")
Then use rule to parse answer:
rule "PorteGarage notification si ouverture trop longue - parse answer"
when
Item telegramReplyId received update PorteGarageActionAnswer
then
val telegramAction = getActions("telegram","telegram:telegramBot:Telegram_Bot")
logInfo("portegarage", "telegramReplyId.state.toString = " + telegramReplyId.state.toString)
logInfo("portegarage", "telegramAction.toString = " + telegramAction.toString)
logInfo("portegarage", "telegramAction = " + telegramAction)
if (telegramMessage.state.toString == "Oui")
{
PorteGarage_Relay.sendCommand(ON)
telegramAction.sendTelegramAnswer(telegramReplyId.state.toString, "Ok, je ferme")
}
else
{
telegramAction.sendTelegramAnswer(telegramReplyId.state.toString, "Ok, je laisse ouvert")
}
Corresponding log when I press one of the buttons:
2021-01-28 16:29:10.065 [INFO ] [e.smarthome.model.script.portegarage] - telegramReplyId.state.toString = PorteGarageActionAnswer
2021-01-28 16:29:10.066 [INFO ] [e.smarthome.model.script.portegarage] - telegramAction.toString = org.openhab.binding.telegram.bot.TelegramActions@18fd409
2021-01-28 16:29:10.066 [INFO ] [e.smarthome.model.script.portegarage] - telegramAction = org.openhab.binding.telegram.bot.TelegramActions@18fd409
2021-01-28 16:29:10.066 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'PorteGarage notification si ouverture trop longue - parse answer': The name 'telegramMessage' cannot be resolved to an item or type; line 60, column 9, length 15
It seems that this is the “official” Telegram post, I’d like to mention a current open incident:
Sorry if this is against rules (double posting) but my hope is that maybe someone has a workaround in place or an idea what is happening.
Any feedback welcome…
This would be great if this can be fixed. But I am not sure if it is related to the telegram binding or openhab3. Maybe some of the openhab developers can tell if it related to the binding or the system @J-N-K@ysc@David_Graeff
I used to receive the telegramaction like a global variable in the rule, at the top outside of every single rule.
But I think we need to move it within the rule just before the sendMessage:
var telegramAction = getActions(“telegram”,“telegram:telegramBot:FS6”) telegramAction.sendTelegram(“Test”)
@eric1905: if you place it before every sendMessage, does it work then?
But it still feels like a bug because leaving the var entry at the top and only reload the rule gets it working