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

Send status messages via HTTP to configurable target #708

Closed
electrontube opened this issue Aug 8, 2017 · 16 comments
Closed

Send status messages via HTTP to configurable target #708

electrontube opened this issue Aug 8, 2017 · 16 comments
Labels
stale Action - Issue left behind - Used by the BOT to call for attention

Comments

@electrontube
Copy link

TASMOTA devices can easily be controlled via http commands.
To get the current status of a device via http, it needs to be "polled"

For more flexibility to integrate TASMOTA into existing environments (with no MQTT capabilities) and to avoid "polling" it would be great to have an option to simply send status messages (just switch status ON/OFF) to a configurable target address (IP / HostName)

I would expect the status to be transmitted at:
power on
boot / reboot
wifi connect / reconnect
every state change

Is there probably already way I have overseen, or are there chances this could be implemented?

@SteveDinn
Copy link

I'm surprised there are no responses to this. I'm looking for an answer to the same question. I have no MQTT instance, and I'm looking for a way to know the state of the switch, preferrably via HTTP.

@ghost
Copy link

ghost commented Jan 11, 2018

Where is your webserver running? Are you not able to install MQTT, there, or is it by choice?

@maciejtarmas
Copy link

This might be useful for example to interface with a Vera Z-Wave controller. There is no way to install MQTT, but it can send and receive HTTP requests.

@SteveDinn
Copy link

@webtop I just don't have the means to install MQTT currently, but that has nothing to do with the question.
@maciejtarmas I think you are misunderstanding me. I can issue HTTP requests just fine on my own. I want to know 2 things:

  1. Can I hit a URL on the tasmota device's web interface to get the status of the relay? Preferably with a JSON or XML response, so I don't have to parse an HTML page?
  2. Can tasmota be configured to ping an existing URI with its current status every time one of the events in the original post occurs?

@maciejtarmas
Copy link

maciejtarmas commented Jan 11, 2018

@SteveDinn

The Vera case is your # 2.

@SteveDinn
Copy link

@maciejtarmas Ah, so the tasmota/sonoff device notifies the z-wave controller of its state changes? And then that controller can ping a configurable URL? I'd rather not have to buy a piece of hardware for this, but I'll keep it in mind.

@ghost
Copy link

ghost commented Jan 11, 2018

The MQTT output is in JSON format, so what you'll need to do is send the data over port 80 instead of 1883. In the user_config.h file, change the MQTT port to 80, and watch what comes across.

@davidelang
Copy link
Collaborator

davidelang commented Jan 11, 2018 via email

@davidelang
Copy link
Collaborator

davidelang commented Jan 11, 2018 via email

@davidelang
Copy link
Collaborator

davidelang commented Jan 11, 2018 via email

@ghost
Copy link

ghost commented Jan 11, 2018

Yeah, I just took another look at it:

@ghost
Copy link

ghost commented Jan 11, 2018

@SteveDinn http://YOUR-IP/cm?cmnd=status will show you what you have to work with.

@SteveDinn
Copy link

Thanks @webtop. That's what I was looking for. All it mentions on the 'commands' page of the wiki is Power On, Power Off, and Power Toggle. Nothing to query current status.

@davidelang
Copy link
Collaborator

davidelang commented Jan 12, 2018 via email

@stale
Copy link

stale bot commented May 12, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Action - Issue left behind - Used by the BOT to call for attention label May 12, 2018
@stale
Copy link

stale bot commented May 26, 2018

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.

@stale stale bot closed this as completed May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Action - Issue left behind - Used by the BOT to call for attention
Projects
None yet
Development

No branches or pull requests

4 participants