Tcp/udp Sending and receiving

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

User avatar
Desmanto
Posts: 2177
Joined: 21 Jul 2017 17:50

Re: Tcp/udp Sending and receiving

Post by Desmanto » 26 Feb 2019 17:02

@elektroinside : Wow, thanks for the tips. I must really missed that part of set_scene that will turn on the light before. When I tried it, it doesn't work (maybe something wrong during the input choice). I even remove that from the choice afterward.

Thanks to your tip, that means I don't need the extra querying for power again, just directly use the set_scene. My finished flow will be much simplified. But I still put the whole map there, since probably I might use it one day. Why erasing something I have done for a week. And I still can reuse it to switch to set_scene method. The difference only that the set_scene doesn't use the duration when turning on, but that's fine. We can easily replace the effect by using color flowing.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

elektroinside
Posts: 69
Joined: 14 Feb 2019 15:04

Re: Tcp/udp Sending and receiving

Post by elektroinside » 26 Feb 2019 19:13

Sure thing, you're very welcome, glad i helped. For me, this was mandatory, as for incoming important calls a speedy reaction was critical :-)

elektroinside
Posts: 69
Joined: 14 Feb 2019 15:04

Re: Tcp/udp Sending and receiving

Post by elektroinside » 18 Apr 2019 16:17

Well.. recently purchased a Xiaomi Aqara gateway and a few sensors.
It has a "developer mode" which opens up its API. But commands have to be sent to a UDP port, responses are sent to the sender's IP and custom UDP port, muticast messages are sent to an IP and an UDP port...

Another example where Automagic cannot be used.. unfortunately :(
I need to put my Raspberry Pi to work, send http queries to something like Pushbullet, and then listen to messages using Automagic. Probably the best way for "multicast listening" anyway, but still, sending udp packets for this scenario from Automagic would still be great :-)

Post Reply