this post was submitted on 16 Aug 2025
10 points (100.0% liked)

homeassistant

16217 readers
53 users here now

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk

founded 2 years ago
MODERATORS
 

Hi,

What I'm trying to do is that if someone sends a message on my telegram with the text: "/todo (name-of-task) (due-date) (due-time)" (example: /todo empty the dishwasher 16-08-2025 14:00)

to get that in node-red and put that in vikunja via an http-request (or if you think there's something better, please advise)

I'm getting problems in the form of "message not found" and/or "malformed token" (that last one is a bit longer but you get the point)

The token works with a curl command, so I guess it's ok. I tried adding the headers to each http request in my flow and also tried leaving the headers empty and putting them in the function. Same result.

Can you help me out?

code located at: https://pastebin.com/suT710Yn

you are viewing a single comment's thread
view the rest of the comments
[โ€“] fixmycode@feddit.cl 2 points 1 month ago (4 children)

where are you seeing the errors? node-red? what does the debug node outputs?

can you post an example of the working curl command?

the code seems fine (could be solved with a single regex but no need to change it)

my first guess is that you're assuming one on the tools is sending proper headers and it's not...

[โ€“] TheOldRepublic@lemmy.world 1 points 1 month ago

I saw the errors in a debug output node in node-red.

I can post tomorrow, I'm not home right now and don't have a computer by hand

Yeah, I think it has something to do with the headers too, but still, it's odd.

load more comments (3 replies)