בית חכם, עוזרות חכמות, חשמל חכם, מערכות שליטה ובקרה, Amazon Echo, Alexa, Google home, Control4, RTI, מנעולים חכמים ועוד.
8 הודעות
• דף 1 מתוך 1
razserv2010
חבר פעיל במיוחד
תגובות: 806
הצטרף: אוקטובר 2013
שליחה
טלגרם ב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
...
מה אני מפספס?
razserv2010
חבר פעיל במיוחד
תגובות: 806
הצטרף: אוקטובר 2013
שליחה
זאת ההודעה בLOG שאני מקבל:
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)
...
איך אני שם את הclient והsecret?
jagheadg
חבר ותיק
תגובות: 1186
הצטרף: דצמבר 2010
מיקום: כפר הדרדסים
שליחה
@razserv2010
·
לא יכול עזור. לא מכיר את זה ולא מבין מה זה אמור לעשות.
בנוסף אני רואה שזה נכתב לפני 3 שנים וללא עידכונים מאז, אז אני לא הייתי סומך על זה.
היו הרבה שינויים ועידכונים ל OH ב 3 שנים.