This is really cool. I currently have Home Assistant send me notifications via Telegram when a door opens and when the Nest detects motion. Very useful.
However, as I’m sure we’re all trying to become a little less cloud-y around here, I’d like to float the idea of an XMPP skill. That way it would be Open Source without caveats, and users wouldn’t be dependent on the servers of a single company which [cough] is of interest to governments and law enforcement.
But that’s neither here nor there. Excellent work. Looks very useful. Might have to try it out.
@Luke I have your telegram skill installed and it shows in home.mycroft - have also saved the token there, etc - however, when I message the bot I get nothing - no Chat ID to enter, no response whatsoever… any ideas where to start?
My Dev-Machine is a Ubuntu VM, does anyone have a Mark I at hand to test if everything works as expected?
Changes:
New function sendMycroftSay: it just takes a message and puts “say” in front of it and sends it to the message bus as an utterance (why use the say skill if you could send it directly to the message bus?: if the say-skill get’s an update -> telegram-skill does not need to be modified and the phrase “say SOMETHING” will not likely change in the future)
The skill should not only send you a message when loaded, mycroft should also say “Telegram skill loaded”.
Muting should be more reliable (it happened before, that only some part of the sentence was muted)
If Mute is enabled (at home.mycroft.ai) but does not work (because of problems with alsaaudio), the skill now says out loud “There is a Problem with alsa Audio, mute is not working” when skill is loaded
If skill was not able to compare the Mycroft Device Name with the Name you stated on home.mycroft.ai, mycroft will say out loud “No or incorrect Device Name specified! Your DeviceName is: YOURUNITNAME”
ToDo:
Multi-Sentence answears from mycroft are not yet supported by the telegram skill.
for example: User: Hey Mycroft, what can you do? Mycroft: i can tell you the time, what the weather is like……. (first sentence -> is sent back to user via telegram, mute is working) Mycroft: i have 33 Skills installed …… (second sentence -> is not sent to user, no mute)
best would be if it was possible to send an utterance with context-tag (something like telegram-message) and everything mycroft does/say because of this utterance get’s the same context-tag
If anyone has an idea how to achieve this, i would appreciate it.
So, The magic mirror skill @dmwilsonkc , and my kodi skill have the ability to display utterances as notification callbacks. This may work for multiline responses. In the kodi skill when you say turn kodi notifications on this redirects all responses textually to the kodi interface (or magic mirror). I suspect this may work for you. Also i can confirm that your skill works on picroft.
so i took a crack at installing and using it on my picroft
it took a couple of reboots before mike started talking to the telegram api and gave me a chat id
after that its been smooth sailing
one option i would like to have is for the telegram bot to display all voice interactions with the mycroft unit,
sort of an alternative to having the cli open
hello. i am new here. 3 days noe with mycroft
cant get the telegram skill to work. have it installed. but i dont show up in skills on home.mycroft.ai put in the api and id… any tips?