Skip to content

Info: on/off URL #89

@JoeTN-zz

Description

@JoeTN-zz

Hello Theo

first of all I really appreciate your work on this :-)

I got your firmware uploaded and running, and everything is working nicely, but I think I've found something that could be a bug, even though I'm not sure.

I can use the following URL to toggle the relay both on and off: http://192.168.1.111/?o=1
But shouldn't it be so that http://192.168.1.111/?o=1 will only toggle it on, and do nothing if it is already on, instead of toggling it off?

For me, it would make sense if http://192.168.1.111/?o=1 would toggle it on, and http://192.168.1.111/?o=0 would toggle it off. Currently sending the same URL is toggling it both on and off, as I said, I don't know if that's a bug or what.

Also I would like to suggest the following additions:

  • Add ability to give the Sonoff relay a name and display it on the webpage for easily identification. This way I could easily name my Sonoff relay in the kitchen to be "Kitchen", and then see that name on the frontpage for easy identification.
  • I was thinking it would be nice with some simple authentication form, prompting for login-credentials on the webpage. But I guess that would have influence on the trigger-URL as it would have to include username and password for authentication. I have no idea if that's too hard to implement.

Again thank you for your great effort! - If I can donate somewhere I would be happy to do so :-)

Regards
Joe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions