arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.72k forks source link

Problem with using Websend in Tasmota rules #21692

Closed TKBeckum closed 1 week ago

TKBeckum commented 1 week ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. I want to send a webhook to a Homey Bridge. The command that is expected by the homey bridge is: webhook.homey.app/secret-key/Lamps?tag=On When I use this line in a webbrowser the homey bridge reacts as expected and turn the lights on. However, when I use the following command in Tasmota (in rules or as a command in the console): Websend[webhook.homey.app]/sevret-key/Lamps?tag=On] The console says: RESULT = {"WebSend":"Done"}, but the homey bridge doesn't turn the lamps on. What is the problem?

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here: (Ichnges the real homey key into 'secret-key'
16:45:53.293 RSL: RESULT = {"Rule1":{"State":"OFF","Once":"ON","StopOnError":"OFF","Length":116,"Free":395,"Rules":"ON Time#Minute<=900 DO backlog rule2 0; rule3 0; ENDON ON Time#Minute>900 DO backlog rule2 1; rule3 0; rule1 0 ENDON"}}
16:45:53.517 RSL: RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":430,"Free":81,"Rules":"ON Time#Minute<=900 DO backlog rule1 1; rule3 0; rule2 0 ENDON ON ANALOG#Illuminance1>250 DO backlog WebSend[webhook.homey.app/secret-key/Leeslampen?tag=Aan]; rule3 1; rule2 0 ENDON ON ANALOG#Illuminance1<15 DO WebSend[webhook.homey.app/secret-key/Leeslampen?tag=Aan]; ENDON  ON Time#Minute>1380 DO backlog WebSend [webhook.homey.app/secret-key/Leeslampen?tag=Uit]; rule1 1; rule2 0 ENDON"}}
16:45:53.717 RSL: RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":203,"Free":308,"Rules":"ON Time#Minute<=900 DO backlog rule1 1; rule2 0; rule3 0; ENDON ON ANALOG#Illuminance1<5 DO backlog WebSend [https://webhook.homey.app/secret-key/Leeslampen?tag=Uit]; rule1 1; rule3 0 ENDON"}}
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
16:50:03.747 CMD: WebSend[webhook.homey.app/secret-key/Leeslampen?tag=Aan]
16:50:03.748 SRC: WebConsole from 192.168.0.110
16:50:03.749 CMD: Grp 0, Cmd 'WEBSEND', Idx 1, Len 63, Pld -99, Data '[webhook.homey.app/secret-key/Leeslampen?tag=Aan]'
16:50:03.849 RSL: RESULT = {"WebSend":"Done"}

TO REPRODUCE

Steps to reproduce the behavior: Use websend to send a webhook to a homey bridge

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen. the correct reaction of the homey bridge (=turning Lamps on)

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here. Again: sending the command via webbrowser works, so it is not a problem of the homey bridge.

(Please, remember to close the issue when the problem has been addressed)