openHASP: An MQTT driven Touchscreen / Scene controller

I know on my 3 gang t1 units, I was able to control the 3rd output/relay with the top right pin. The one next to the buzzer/speaker. I did not test further than that.

Two questions.

When I change the openhasp: parts of configuration.yaml, do I need to restart HA every time?

The latest firmware seems to be 0.6.1, yet the openhasp custom component seems to be at 0.6.3. Given the docs say I should keep them in sync, what is the best way forward? Revert the custom component?

Iā€™m afraid HA evaluates configuration.yaml only at startup, so a restart is necessaryā€¦

The 0.6.x Custom Component should work fine with the 0.6.x openHASP firmware.
If there is a requirement to upgrade either, we change to 0.7.x etcā€¦
As long as major.minor versions match, youā€™re good.

1 Like

M5stack have released a Tough version which might suit a need I have for controlling the spa music.

It appears to have identical components to the regular m5stack-core-2 which openhasp supports except that it uses the CHSC6540 touch interface instead of the FT6336U used in the core-2.

Is there any chance the the Tough can be supported?

3 Likes

Woow. Thatā€™s great!!!

Digging in the code, it seems to be a FT6336 still. So there is a good chance it will ā€˜just workā€™.
Without a real device of course itā€™s hard to tellā€¦ but touch is usually the easiest to integrate.

== About the Touch Sensor in the M5Stack Tough ==

Touchpanel interfacing is done by a FocalTech FT6336 chip, which supports
two simultaneous touches. However, the M5Stack Tough touch display is only
multi-touch in one dimension.

LVGL only uses 1 touchpoint anyways.

I spotted that but couldnā€™t decide if it was just docs in development and still draft, or represented the real position.

There is not much to be found googling CHSC6540, it usually just leads back to the TOUGH.

Visually comparing the M5Touch.cpp from the M5Stack core2 and M5Tough, there are only some very subtle differences:

Iā€™m starting to think itā€™s a tiny ALPS mcu that emulates the FT6xx6 chip. Some interesting code can be found here which seems to upload custom touch panel firmware to the chip referred to as tlsc6x_tpā€¦

Maybe itā€™s best that we move the technical details to Github Discussions.

WT32-SC01 mounting

The pdf manual for these devices says

12态 SMD-RAP
The SMD-RAP is suitable for M3 screw怂
And then the following picture

It looks like the idea is to press fit the 4mm area into the wt32-sc01 4mm corner holes and then you can use a M3 standoff to mount it.

Trouble is, where do you get that little metal bit? My googling has revealed this

which looks right, but darned if I can find anywhere to buy them, except perhaps in lots of 10,000.

Any ideas? I donā€™t even know what these things are for, which makes finding them harder!

Note new breaking change in latest HA. Templates using these functions need to be adjusted, Iā€™ve fixed the examples in the docs accordingly.

1 Like

Hello all. I am wondering if you could use a page in openHASP as a keypad for the alarm component in HA ? I can generate a keypad using button matrix but all the key presses are sent as a separate value.
Just wondered if anyone had done it already before i get my teeth into it.
Thank you in advanceā€¦

Hi smith844. The buttonmatrix indeed sends its events directly over mqtt. Itā€™s intended as a selector of multiple options.

For proper character input on the touchscreen, we would need to expose the LVGL textarea and keyboard objects. These are not available in openHASP at the moment.

There are several routes available:

  • Use btnmatrix and let HA do all the heavy lifting and scripting etcā€¦
  • Expose textarea and keyboard in openHASP
  • Use the my_custom.cpp which is available in openHASP to compile a custom page into your firmware

@fvanroie
Thanks for the reply, I am right on the edge of my knowledge but I am going to look at using node red to capture the individual messages (numbers in this case) and combine them in a string, and once it gets the right number of components it uses the full codeā€¦ or something like that.
If i get any success i will be sure to post here. Thanks for the great work. I already made and used HA Switch Plate but thought it would be nice if it could be a more pleasant UI. I was also tinkering with freetouchdeck and saw a video which showed it having openHASP on, what a great project.

1 Like

Iā€™m happy to announce the release of openHASP 0.6.2. Please check out the release notes for the notable changes.

1 Like

You made me look at the docs again which made me buy a YeaCreate NScreen32.

My wife will be in touch :slight_smile:

where have you hidden the esp and the 5v power supply etc?

1 Like

The esp is under the screen, the power is supplied to the pins on the back.

correct, but you still need to hide the power adapter i.e. 5v in this case; is it hidden inside the wall?

It is supplied by the sonoff T1

2 Likes

Why does my openHASP show 0.6.3? I even did a remove, and reinstall, and now it wants to update back to 0.6.3. Installed through HACS.