Broadlink RM: How can I reading the temperature with http request Block?!

1,711 views
Skip to first unread message

Sören J.

unread,
Feb 25, 2020, 2:29:20 PM2/25/20
to automa...@googlegroups.com
Hello, I have a Broadlink RM, which is used as a "remote control" for 433 MHZ sockets. I link the commands to my flows in Automate using a Tasker RM plugin. The Broadlink also has a temperature sensor. According to the description, this can be read out as follows: To get the temperature of a device (only supported for RM2 and RM Pro + devices), thefollowing URI can be used: http: // <ip>: <port> / temperature How do I now have to create my flow to display the value afterwards in a message? Is the http request block suitable for this? What do I have to write in here?!? Please explain exactly!

I found the following in the documentation. Maybe this helps.

Get temperature (on RM)
http://192.168.2.104:9876/temperature?deviceMac=34:ea:34:88:f9:a0

Retrieve current temperature reading on a RM device (RM2, RM Home, RM Pro).
Works with either GET or POST request.

response:

{ "Status", "ok", "temperature", "30.8", "timestamp", "1455356271220", "deviceMac": "b4: 43: 0D: 10: 56: 3"}

Henrik "The Developer" Lindqvist

unread,
Feb 25, 2020, 3:46:19 PM2/25/20
to Automate
  1. Flow beginning
  2. HTTP request; Request URL: http://192.168.2.104:9876/temperature?deviceMac=34:ea:34:88:f9:a0, Save response: Save to to variable as text, Response content: response
  3. Gmail send: message= jsonDecode(response)["temperature"]

Sören J.

unread,
Feb 26, 2020, 3:35:10 PM2/26/20
to Automate
Thanks for the super quick support. That was exactly what I needed. It works perfectly. :-)

bui dat

unread,
Sep 28, 2021, 5:49:59 AM9/28/21
to Automate
How to control Broadlink with http command, thanks you.

Vào lúc 03:46:19 UTC+7 ngày Thứ Tư, 26 tháng 2, 2020, Henrik "The Developer" Lindqvist đã viết:
Reply all
Reply to author
Forward
0 new messages