openHASP - MQTT Touchscreen / Scene controller

Today we released version 0.6.0 of openHASP, an opensource firmware for Home-Automation SwitchPlates. It uses LVGL as GUI front-end and MQTT to send & receive commands and events. The firmware only contains a basic UI to setup the WiFi connection because the user is expected to upload his own page layouts.

Pages and objects can be defined using the jsonl (JSON lines) format and the parameters are interpreted on the fly. This allows the user a great degree of flexibility in designing a peronal layout. One page definition might look something like this:

{"page":2,"id":4,"obj":"label","x":10,"y":40,"w":220,"h":30,"text":"Kívánt hőmérséklet:","align":1,"padh":50}

All objects can have standardized event handlers that communicate the state over MQTT, making it easy to integrate the device in a Home-Automation system like Home Assistant, openHAB or nodeRED. But objects can also be grouped with local GPIO’s, such as relays or a dimmer, to interact with lights and switches.

There are pre-compiled binaries for 10 supported hardware devices and configuration files for many more in the platformio project…

We are also developing an Home Assistant custom component to make the device discoverable on the network and integrate seamlessly in your Home Assistant automations.

  • Some user created layouts:

  • A demo video of openHASP running on the Lanbon L8 switch:

It’s very nice :star_struck:

1 Like

Wow, that’s amazing!

The second image is Hungarian. (I’m from Hungary) :slight_smile:

1 Like

Thanks. We have users in multiple countries including a few Hungarians too. :slight_smile: The web UI and debug messages also have internationalization options when you compile the firmware yourself.

The most challenging task is to make objects and properties non-static (except the screens) and allocate/free the memory dynamically. Users can create, read, update and delete objects on the fly.

Besides MQTT, you can also use the serial & telnet console interface to interact with the objects directly, like:

$> p2b4.text=Hello World!      // sets the text property of object id 4 of page 2
1 Like

That’s great! I wonder how/where could we advertise your project. As it’s open-source I think it’s worth writing to When there were posts there about LVGL there were 10 times more user on our site than usual.

It’d great to have an introduction post about it on If you are interested in I shared it on LVGL’s LinkedIn channel.

Hackaday has come up before but we’ve opted for a lower key announcement pace instead of big bang :slight_smile:. v0.6 is our first release that ties everything together in a workable package. We’re still considering it a pre-release though with the foreseeable kinks. Most likely Hackaday will be reserved for a big 1.0 announcement.

We are present on the Home Assistant community forum and now here too. I hadn’t considered the lvgl blog but it seems like a good place for a write-up. I’ll have a look if I can come up with an article that you can use…

Sounds like a good plan! :slight_smile:

Great, thank you in advance!