I am adding an Item (type:switch), but I can not activate/deactivate the switch - nothing happens.
Iām sure I miss sth. but after 2h I really prefer to get in touch with the community
Hi, why are you using the http binding ? The āusualā way would have been either to use mqtt (which implies a mosquitto broker), flash the sonoff with esphome (and use the new esphome binding), or even use the sonoff firmware (thereās also a binding for that).
I had several problems with the http binding whenever I used āspecialā characters such as %, so Iām using the SmartHome J/HTTP Binding instead.
Thanks, I was not aware of this binding. But I prefer to have the web interface disabled which rules out http commands. And when I enable web interface it is protected by userid:password
Just a suggestion, you may add pulsetime support to your binding.
Actually I was not successfull with mqtt (mosquitto was working with device - tested with mqtt explorer).
But I was not able to find the correct config within openhab.
I will check the plugin in marketplace by next week And will Come back with a Resultat.
Maybe you are also able to expand that binding to read also other (mostly) values from Tasmota like temperature, pressure a.s.o. ???
I run a LOT of Tasmota-Stuff here, which not only have switches, but also provide other information and I would love to have them integrated without MQTT.
The issue might be, that it be not easy, as one do not really know, what kind of data is provided. I even do not know (as I“m not a coder), whether it is possible to get the data via the api (and how). Nevertheless, as said, I run a lot of them and can help with testing and proves.
Good idea. The only issue I see is that there are many different types of data provided depending on the device. On mine it provides energy usage information:
I have added energy monitoring channels to the binding. Can you post the output of this URL: http://$plug-ip/cm?cmnd=Status%2010 so that I can see what the JSON output is for the temperature and other sensors? It should be possible to add those to the binding as well.
Good. That looks exactly like what mine outputs and what was implemented. If you have a chance, please post the output of the one with a temperature sensor.
Thanks. I donāt know what is your criteria to organize channels in advanced or not. In my opinion pulsetime is not advanced (it exists in all switch devices), but energy & power are advanced (only exist if the device has such sensors).
Pulsetime is working as intended but when the switch goes back to off sometimes OH is not updated and the switch item remains in ON. Also, if I use toggle in the tasmota console the status is not reflected back in OH.
OK, I removed the advanced=ātrueā for PulseTime and updated the jar. You can set the Refresh Interval configuration parameter to something smaller like 5 seconds so that the switch state will update sooner,.