This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
Instal both apps again, setup the telegram bot with a token as descibed. Sending text works fine but a image camera or sample picture not the telegram app crast (Log to maker)
basically, I have a flow to grab an image from my IP cam, and a second flow which will send the image to myself and to my wife.
However! While I get the correct image every single time... my wife gets EXACTLY the same image every time (you can see from the IP cam time stamp), and the image is an image that was grabbed yesterday when someone rang the doorbell...
I was all excited to show her that she can now finally also get the images, and then she gets an image from yesterday every time :-P
Tried setting up a new bot.
I checked getWebHookInfo via telegram and got this:
I will have to take a look at this, but it seems that the image is invalid. This is not a bug in the app I think.
Telegram now works fine
1st user in the flow gets the correct image.
2nd user in the flow gets an old image.
there are two image tokens. “image” (small i) gives the correct picture, while “Image” (capital i) was giving old images.
I updated the second action to use “image” and now the images are always correct. See screenshot attached.
I must add though, the whole process seems to be a lot slower that it was before.. or is it just me?
Usually, when someone rang the doorbell, I got the image almost instantly. Now I get it up to 10 seconds later once there is no one at the door anymore. I have the impression that there is now a bit of a delay between Image Grabber’s “Grab Image” and “When an Image is grabbed” since test messages with Telegram seem to be instant.
Or rather, I have a work around.
Problem is is that your bot only listens for the /register command, and not the /register@athomhomey_bot (or custom bot name).
So if there are multiple bots in the group, the bots don’t know who you are talking to.
Hence as the workaround, remove all other bots from the group. Run the register command, then add all other bots back.
I assume you can can fix it easy enough with an OR statement.
I updated tb github issue accordingly.
https://github.com/jordenc/org.telegram.api.bot/issues/7
But also, I think a code change is needed since Russian characters etc don’t work at the moment either of you check the Github issue list.
See also here: https://stackoverflow.com/questions/31430587/how-to-send-emoji-with-telegram-bot-api#34610263
But if I understand correctly there's a problem with the Bot in general now?
Or did I misunderstand?
https://forum.athom.com/discussion/comment/66224/#Comment_66224
I'll see what I have to change to use the tokens.
However, the Telegram app has had a complete rewrite for Homey SDK v2. Since then, you have to re-register your Telegram user and/or bot. Otherwise the app will crash when you send a message.
Follow these steps:
1. Re-register your Telegram user(s) (multiple users now supported)
2. Re-setup your flows that use Telegram (because the user list is now required)
3. Re-setup your flows that use the ImageGrabber (because the tokens have changed)
I just redid my flows now, and although I do get the pictures in Telegram now:
- it takes a long time before I get them (~1 min)
- the image grabber cards keep showing the turning circles (never goes away unless I reload the page or switch between flows), even after I received the image
So this might be a Grabber issue instead of Telegram.
Second, I already logged an issue with the speed, but apparently it’s a generic Homey issue. The Image Grabber issue was then closed and I’ve opened a generic Homey one: https://github.com/athombv/homey/issues/2173
I commented on the speed issue to show you're not the only one
My limited test with a small 300x300 image via http appeared to be instant. Now while my camera snaps are also http, they're a bit bigger than 300x300.
In addition to this, has anyone tried with a png or a gif? Mine never arrived...