Virtual HTTP Light Devices, supporting RGB(WW), Dimmers, Switch and much more (Tasmota, ESP*, Shelly)

I just published my virtual files here: https://github.com/dbochicchio/vera/tree/master/VirtualDevices

Feel free to grab them.

There’s support for:

  • RGB(WW) Lights
  • Dimmers
  • Switch

all based on HTTP calls. 100% standard services, so 100% compatible with mobile devices.
Every action correspond to an HTTP call.

This can be used for remote valve (ie: irrigation based on ESP* or Tasmota), just be sure to change the sub category number.

It’s working OK for me, and it’s covering all the basic needs.

Feel free to post your question here.

1.0

1 Like

What would be the correct call to turn off
A switch (Vera device creates #944)
luup.inet.wget(‘http://I.p address/cm?cmnd=Power+off’)
Thanks

@therealdb How do you sync the state of the device in Vera? Vera now can’t tell if it’s off or on.

It depends. In case of Shelly, you can define an url to be called when a button is pressed. You can compose a special url and update your vera:

http://{veraIp}:3480/data_request?id=variableset&DeviceNum={ID}&serviceId=urn:upnp-org:serviceId:SwitchPower1&Variable=Status&Value=1

I seen that in you wiki where do you put the url. I’m familiar with the http call just not sure where to put it so Vera can update the state.

Look under actions, then button switched on/off.

Sorry forgot to mention the unit is flashed with Tasmota. Is the action on the Tasmota or Vera side? TIA

It’s on the device side. If you only control the device from the Vera, you will have no problems and this is not needed.
AFAIK, Tasmota has no way to call an URL when a button is pressed (it’s based on MQTT). Your option is to setup a light MQTT bridge for Vera (or use the Vera-MQTT plugin, but I never used it) and relay the commands to the Vera. I have a similar setup (MQTT bridge) for my Wifi led strips and it works very well. I truly hope future Vera firmware will support MQTT natively.

Thats what I’m missing. I guess the state is not that important if I use the toggle http call it will trigger no mater what the state is showing on Vera. Great work thanks for the HTTP integration now I can use Sonoff and other wifi device with my vera.

1 Like