טלגרם בopenhab מקבל הודעות אבל אם אני עושה rule אז הוא לא שולח הודעה שמכשיר MQTT נכבה
יצרתי קובץ telegram.cfg בservices
בפנים שמתי
bots=bot1
bot1.chatId=1111
bot1.token=1111
...
אחר כך יצרתי קובץ telegram.rules בrules
בפנים שמתי
rule "Send telegram with Fixed Message"
when
Item mqtt_topic_0a0553b7_SONOFF1 changed
then
sendTelegram("bot1", "item mqtt_topic_0a0553b7_SONOFF1 changed")
end
2020-07-26 13:26:24.389 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Send telegram with Fixed Message': An error occurred during the script execution: Could not invoke method: org.openhab.binding.telegram.bot.TelegramActions.sendTelegram(org.eclipse.smarthome.core.thing.binding.ThingActions,java.lang.String,java.lang.Object[]) on instance: null
Give the client id and secret to OpenHab
Save the Client ID to spotify_client_id in OpenHab (e.g. through openhab CLI smarthome:update spotify_client_id {your_id})
Copy the Client Secret to spotify_client_secret in OpenHab (e.g. through the rest API)
@razserv2010
·
לא יכול עזור. לא מכיר את זה ולא מבין מה זה אמור לעשות.
בנוסף אני רואה שזה נכתב לפני 3 שנים וללא עידכונים מאז, אז אני לא הייתי סומך על זה.
היו הרבה שינויים ועידכונים ל OH ב 3 שנים.