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
Just a huge thumbs up, jorden! You did a hell of a job! Works like a charm!
Top App!!!!
1 - A way to send symbols
When trying to send symbols, like ♺ or ℹ, it returns a normal character (z, 9).
2 - A way to add CR (carriage return)
I tried to get more lines in one message (ending with %0A), which doesn't work.
Edit: point 2 is working. My mistake.
I do some further testing. If I notice something I will report it to you. Looking good so far!
A nice suggestion though. It should be nice, in the future, to receive pictures/snapshots/video-file from a IP-Cam or sending a sticker. But I think this will be a lot of additional programming by jorden.....
For example, when sending a message from Telegram and store it to a string in the Better Logic App variable and use this variable to trigger something, it will not work when the previous Telegram message is the same.
The work around I use is resetting the variable string with a space. The drawback is it will be triggered twice, so you need extra condition to block the second trigger...
BTW, does anybody knows how to insert the content of a Homey variable to string?
I would like to use that 2. No clue how that should work yet.
A picture from my Synology app to Telegram is something that I have been thinking of, but would have to figure out how to make the Synology app connect to the Telegram app somehow. It is possible but I just haven't done it yet so it requires some testing.
I suggest we'll have to wait for a while before we overload you with requests, which costing you valuable time and effort to get it working, jorden!
Is it an idea to make add a, sort of, command structure to your App, like a cooperate Telephone switchmenu?
I will try to explain what I mean with examples....
Lets say, you have a 'root' menu with:
- say
- ledcolor
- lights
- roomba
- cam
- * (back to root menu)
- ? (present options to choose from)
When you sending a message in Telegram to your Homey it will respond which submenu is chosen and what options to choose from.
Example:
Telegram: say
Homey: Please tell me what to say...
Telegram: Hello World
Homey: I just said 'Hello World'. Please enter next thing to say.
Telegram: *
Homey: I'm just found my roots!
Telegram: ?
Homey: <say> <ledcolor> <lights> <roomba> <*> <?>
Telegram: ledcolor
Homey: Hand me the color!
Telegram: ?
Homey: <red> <white> <blue> <orange> <rrr.ggg.bbb>
Well, I think you get my intention....
It should be nice to setup something like that in your app. Like editing the structure, options, and executing commands.
Please tell me if think you thinking about it, otherwise I have to program this in my own flows, which can be done. I just tested it and it works very nice for controlling the homey.
Please let me know what you think about it.
I'd even like to take it a little further, and see what I can do it. You could make different commands in the bot, for example:
/say "This is a spoken text on Homey"
or
/lights off
or
/lights purple
or
/lights random
or
/cam 1 snapshot
The app would need permisions to all involved apps (for example, Hue and Synology) but this is quite a good idea!
Another addition could be to add numbers to the structure and option, similar as imposed by you, to activate it in one command. For example , to switch of light, 3 14 90 (lights --> device #14 --> Dim to 90%).
I came up with this idea while playing around with your app and trying to figure out a way to give commands without remembering all the commands and functions and use the minimum at character input. The commands you use often are easy to remember, but others, not used a lot, are been forgotten.
The Telephone switching menu is developed just to do that and is based on many years of experience and improvement. So why not copy the, well thought-out, system and paste it into the present technology....
Great potential!
Now expanding with other options, for example:
/snap
Will show you available options for taking a snapshot. For example, it will show:
"Available options: /snap <id>"
"Replace <id> with:"
"Camera 1: test12345"
"Camera 2: test54321"
and so on:)
Maybe you can try it by storing the menu structure number, say 3 14, as 90314 into a variable, where the first digit is always 9 (taken this number as example for shortcut to root) and then two digits for every submenu. Now you can easy figure out what submenu you are at by subtracting/dividing it?
Just a thought... But you're probably far more capable of figuring this out!
On my Fibaro HC2 I made a table to store the options to, and when filled I send every table-row by adding %0A at the end and loop al messages, which ended up with multiple rows in one message.
I currently have made it so far that you can get a list of available devices in your synology surveillance center app (if installed in Homey). You can then choose one the devices to get a snapshot from.
I got it working that I receive the photo, base64 encoded, in the Telegram-Homey-app. However, struggling to get that to the chat API of Telegram. Because it is base64 encoded string, I first need to pull some magic to convert it somehow, so Telegram believes it is an image. Currently either getting Error 400: Bad Request: there is no photo in the request or Error 413
Just a thought.
EDIT: https://core.telegram.org/api/errors