So as I mentioned earlier I created a few flows, with advanced flows, where Telegram Notifications is called “if a message is received” and then I have set a logic asking for exact text + also if a by me predefined user is sending that text, also with logic. Then it triggers an action and a telegram message confirming the action was done or alternative - a message with a tag with info back as reply - for example current tibber price or such. I have noted that even if I have the Homey to do a reboot every night telegram notifications gets unresponsive during the day. Only after an app restart the flows kick back in. Something in the app in Homey gets stuck after a while during the day.
Do let me know if and how you wish to receive more details if you wish to have a closer look.
app diag here: a731c253-5ea6-4528-985e-819ade24766e
Tested your test version and works like a charm! Thanks very much for the swift help/bugfix! Is there anything I need to do or can I keep running this test version of yours?
I only got a few standard flows (rather easy I’d say) and one large Adv Flow, that also contains the notifications along w/ Smart Presence. Does that help?
Update: I should mention that I’m using images via http
I tried to reproduce your problem and I wasn’t able too.
My memory usage went from 20mb to 24mb after sending 100 different images with sizes from 1mb to 80mb.
I cleaned some code and made some little changes. If you want to, you can give it a try and maybe it will fix the problem.
If keep running in high memory usage, please send before a app restart a diagnostic report
Thank you for your efforts – that’s really appreciated! Today I’m down to 12MB. I restarted Homey again this morning, but this didn’t change anything y’day. Seems unclear what pushed the mem usage before.
I’m currently developing the button based questions.
There is one design question, where I self can’t decide what would be the best.
Create a question with a flow card and have a general “An answer is received” card as a trigger.
The question itself will be deleted after a answer has been received. This would mean you would have to check for the right question text and answers.
Create a question with a flow card, these question will be saved and can be re-asked with a different card. The Trigger card would have a dropdown where you can select “An answer for [[question]] is received” and do your stuff. There would be also a possibility for “An answer for [[question]] is received with the answer [[answer]]” trigger card.
Would be 2 but the question have to be pre-created inside the settings page
The first would be fastest to program and and the third way would be the neatest but would need more developing time since I would have to redo a lot of the settings page to make space for this form.
Or would you take a different approach? If yes, let me know!
I would go for option 3 - which would mean you could setup yes / no in the setup and use it from there. However, if you want to create more complex buttons then the initial setup could end up quite massive I guess if you pre define buttons from here and you want multiple buttons to use in your flows.
Well, your report says that it can’t connect to telegram and get the updates. Looks like the problem its on your end. I’ll take a look into a way to enable some kind of auto reconnect once the bot says I wont retry again Failed to fetch updates. Waiting: 1s request to ... failed, reason: read ETIMEDOUT Failed to fetch updates. Waiting: 1s request to ... failed, reason: read ECONNRESET
I would create a UI for that so it doesn’t get that messy. But that takes time since I’m not that fluid in writing HTML and CSS