Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Commands #4

Open
Hadea4711 opened this issue Nov 26, 2019 · 3 comments
Open

HTTP Commands #4

Hadea4711 opened this issue Nov 26, 2019 · 3 comments

Comments

@Hadea4711
Copy link

Hi,

you wrote that "Uses HTTP for sending commands and MQTT for listening for button presses and updating state".

Could you be please so kind and give an example for using a HTTP command in regarding with your MQTT Script?

In my case, I will open/close the blinds, but I don't have any ideas. I'm a rookie :-(.

Commands:
http://sonoff/cm?cmnd=Power1%20On
http://sonoff/cm?cmnd=Power2%20On

@udovic2100
Copy link

udovic2100 commented Jun 5, 2020

@Hadea4711: Yes, HTTP is used to send open and close commands. See tasmota documentation.

@ageorgios: I encountered a problem with the way the HTTP command is formatted. According to the tasmota documentation you need to replace all semicolons with '%3B' when using backlog over HTTP. In the Homebridge logs I see the link that is sent to control the Tasmota device and it still uses semicolons. Even when copying the command to a web browser the Tasmota won't react. When I replace the semicolons with '%3B', however, it works. Is that a new behavior of Tasmota? Can we change the code so it replaces the semicolons automatically? Could you please comment?

@ageorgios
Copy link
Owner

I commited the change to %3B, it works both ways on my setup

@udovic2100
Copy link

Thanks so much for your quick reaction. In the meantime I tested the tasmota shutter and blinds mode (SetOption80) and think it’s also kinda neat. It has many calibration and compensation features such as time offsets for lifting. If you haven’t already, you should check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants