Tasmota: It is possible to send a http command with rules ?

Created on 30 Apr 2018  路  17Comments  路  Source: arendst/Tasmota

Hey,

It is possible to send http command from a rule?

EG.
Rule ds18b20#temperatur<20 do http://sonoff/cm?cmnd=Power%20On endon

So i Can switch a Other sonoff which is far away from Sensor !

Thanks for help

All 17 comments

Hi. Such command does not exist by now but it is a nice feature to add.

If you want to talk device to device, another thing you can try is using knx.

One way could be to set a rule that turn on a local relay with that condition and by knx send that information to another Tasmota.

Or using a rule on a home automation system

I did Not have a Home automation System and Knx 馃槥

Ok. For KNX you don't need extra hardware. It is just another protocol to communicate device to device. If you use the firmware with knx, you will have a knx configuration menu.

Can i Talk with knx to another device with rules?

You can set on the device with the sensor a rule to turn on a relay and on knx menu you can select to send the status change of that relay to a knx address like 1.1.1.

On the other device you can set to listen to the address 1.1.1 to set the relay status.

There is a help on the wiki with some examples

Ok, thanks for your help!

When using KNX IP on Multicast, I found that some Wifi Routers drop some packages. So, I'm going to make a PR in few days to increase reliability for those wifi routers. So, test the communication between devices, like a button on one device to toggle the relay on other, and test it several times. With this simple test you will see if you could have a loss of communication.

Another thing. You should try a home automation system like home assistant. You just need a Raspberry Pi and download Hassio to it. It is really cool :+1:
Also you can use SonWeb to manage Tasmota devices for upgrading the firmware.

Or simply use a rule and mqtt publish anything you like. All you need is a mqtt broker which you should have had anyway if you're interested in Tasmota.

Nice.

I added this MQTT Explanation to the example 2 on rules (Execute any MQTT message when a button is pressed)

Thanks.

But why, if your not using a broker, this would be great. Http to control the device, so why not rule to fire http to talk to others. Simple example sonoff as thermostat, need to talk to other sonoff that controls boiler simple http command would be great.
Plus drive IFTTT if required for thing

I would like it too if we can send http commands. I don麓t have a much complex home automation and have no time to read in and setup a MQTT, FHEM, ioBrocker or something like that.

@mcc05 @420dope

Http commands was already implemented. This issue is very old.

Please, read the wiki at commands and look for websend

Thanks

Thanks for your answer.
I don麓t mean the http commands to only control a device. I mean, for example, if the relay1 on device1 is on, the decive1 can send a http command to decive2 to turn it on or off.
Or maybe with rule E.G. how in the first post.

If this is really implemented, sorry but please give me the link because i can麓t find it in the wiki...

Ah ok thank you. It works perfect.
Here for others who want know how it works. I set this rule:

rule on Power1#State do WebSend [192.168.0.20:5005] {} endon

Now my Shelly 1 is my doorbell and sends a http command to the homebridge-videodoorbell plugin and i get a notification from the HomeKit App on my Phone that someone ring the doorbell and i can watch the kamera.

Was this page helpful?
0 / 5 - 0 ratings