Integration Revoltab

It would be great if we can get this integration?
Revoltab is a WiFi-Smart Diffuser.

https://revoltab.com/en

It is available in google home.

+1
And there’s an API available used by Loxone. I can help with tests if needed :+1:

1 Like

Any news about that?

The api is very simple and currently has 4 simple endpoints. (here’s the documentation: Swagger UI)

In theory it’s so simple that you can currently use RESTful Command - Home Assistant as an alternative till there is a proper integration.

Every device has it’s own api-key that you can request on Revoltab - Loxone Login.

You can also find a pdf from Loxone if you Google it:

In order to enable your Revoltab devices to be controlled remotely over APIs, you must

first get an API key for each device. This can be achieved by visiting

Revoltab - Loxone Login and logging in with your Revoltab account

username and password.

Once you login, click generate key for each one of your devices and you will get an API
key

Something like this should then be working with rest commands (In configuration.yaml, restart required):

rest_command:
  revoltab_start:
    url: "https://backend.revoltab.com/api/v1/startdevice"
    method: post
    headers:
      authorization: "Bearer INSERTYOURAPIKEYHERE"
    content_type: "application/x-www-form-urlencoded"
  revoltab_stop:
    url: "https://backend.revoltab.com/api/v1/stopdevice"
    method: post
    headers:
      authorization: "Bearer INSERTYOURAPIKEYHERE"
    content_type: "application/x-www-form-urlencoded"

This is just a quick draft and as I don’t have the device myself, I couldn’t test it properly. You should also consider moving the authorization key to secrets.

After this you should be able to use them in automations to start/stop the device

Maybe this helps someone (: