Openhasp on a Lanbon L8 and WT32-SC01 Plus

My first attempt of customizing Lanbon switch panel and two WT32-SC01 Plus with openhasp.
4 pages.
First page is quick setting scenes and quick look at indoor outdoor temperatures and what pellet stove pellets level , heat settings and cooler is set at.
Heating boost and antiboost

2nd page.
Living room area lights

3rd page.
Weather

4th page
Living room media players control with Spotify and album cover in background of what is playing.

Page jasonl layout code
I will post changed and improvements on my gethub.
Gethub repo

Added a human presence detector
HI-LINK LD2410 to end of hall SC01 plus.

It’s close to my HA so HA integration with blue tooth works fine. Just used the cable with connectors that came with the SC01 plus and grabbed power from the plate.
So now I have automation to turn on screen when motion is less than 2 feet from it for over 1 second.
And shut off screen when the sensor has no occupancy detected.
As a test I also have aniburn run if no occupancy in the room for 60 min at night.


Home assistant Automations
Some of my Automations to go along with Wall\Desk Panels.

Text box on Homeassistant dashboard.

Using Helpers I added a Text box to put on HA dash board So I can easily display a pop up message on All dash boards. The automation then deletes the Message box when Text box is cleared.

First Create A text box using Yaml or Helpers and add to a Dashboard.


Automation:
This automation will use the “text” from the text box and Publish to all my panel and turn on the back light to all panels.
In the payload_template you will see

 {"page":0,"id":75,"obj":"msgbox","bg_color":"white","text_color":"Red","text":"
        {{ states("input_text.ha_panel_popup_text_box") }}
        ","options":["Close"]}

,Page"0"` is all pages and “id”:75 is the ID of the Message box so if you have other message boxes give them another ID so the will not be overwritten or cleared by this automation.

In the last part of the automation will Delete the message box (popup) when the Text box is empty

  - condition: state
    entity_id: input_text.ha_panel_popup_text_box
    state: ""
  - service: mqtt.publish
    data:
      topic: hasp/plates/command/p0b75.delete

FULL AUTOMATION

alias: Openhasp POPup text box
description: >-
  display popup on all openhasp panels the Dashboard text box data. Clear popup
  if text box is Empty or cleared. popupID#75
trigger:
  - platform: state
    entity_id:
      - input_text.ha_panel_popup_text_box
    id: text
    enabled: true
condition: []
action:
  - service: mqtt.publish
    data:
      topic: hasp/plates/command/jsonl
      payload_template: >-
        {"page":0,"id":75,"obj":"msgbox","bg_color":"white","text_color":"Red","text":"
            {{ states("input_text.ha_panel_popup_text_box") }} ","options":["Close"]}
  - type: turn_on
    device_id: 88b53314416b4ce885e73c349b11de1b
    entity_id: light.desk1_backlight
    domain: light
    brightness_pct: 100
  - type: turn_on
    device_id: ff2aa76f6ac729f1e9e243fa22ce23e1
    entity_id: light.plate35_backlight
    domain: light
    brightness_pct: 100
  - type: turn_on
    device_id: e8173c788aa326e57adbc645b2d954c8
    entity_id: light.desk_backlight
    domain: light
  - condition: state
    entity_id: input_text.ha_panel_popup_text_box
    state: ""
  - service: mqtt.publish
    data:
      topic: hasp/plates/command/p0b75.delete
mode: single

Automation to automatically Clear Text box in Homeassistant when someone Closes message box popup.

alias: clear popup box
description: >-
  Deletes Message box when "Close" is selected on any Openhasp Panel message
  box.
trigger:
  - platform: mqtt
    topic: hasp/desk1/state/p0b75
    payload: "{\"event\":\"up\",\"val\":0,\"text\":\"Close\"}"
  - platform: mqtt
    topic: hasp/desk/state/p0b75
    payload: "{\"event\":\"up\",\"val\":0,\"text\":\"Close\"}"
  - platform: mqtt
    topic: hasp/plate35/state/p0b75
    payload: "{\"event\":\"up\",\"val\":0,\"text\":\"Close\"}"
condition: []
action:
  - service: input_text.set_value
    data:
      value: ""
    target:
      entity_id: input_text.ha_panel_popup_text_box
mode: single

More Message box animation here.

4 Likes

Pages are a work in progress but I updated this post with current configuration and gethub has been updated with
Jsonl, configuration and automations.


Lonbon kitchen switch



Living room sco1 panel




Computer SC01

Popup using input text box on HA dashboard.

Random love notes popup

Easy to generate random text using frenks
Spook random input.select service

alias: "Popup love notes "
description: ""
trigger:
  - platform: time_pattern
    seconds: "2"
    hours: /1
condition: []
action:
  - service: input_select.random
    metadata: {}
    data: {}
    target:
      entity_id: input_select.love_notes
  - service: mqtt.publish
    data:
      qos: 0
      topic: hasp/plates/command/jsonl
      payload: >-
        {"page":0,"id":75,"obj":"msgbox","bg_color":"white","text_color":"Red","text":"
        {{ states("input_select.love_notes") }} ","options":["Close"]}
  - type: turn_on
    device_id: 23afc290179d4e3298cf60c1dd840683
    entity_id: light.desk_backlight
    domain: light
    brightness_pct: 100
  - type: turn_on
    device_id: 88b53314416b4ce885e73c349b11de1b
    entity_id: bd94ccdbb0517bfc7b0a9a3ac5cb0981
    domain: light
    brightness_pct: 100
mode: single

Updated
Added a human presence detector

How did you manage to flash the wt32-sc01 plus? I’ve tried the 0.6.3 firmware but gets stuck in a boot loop and screen is blank. The online uploaded doesn’t support the esp32-s3. Read somewhere that it’s not supported and you have to use 0.7.3/4?

Was really excited when it turned up and now I’m on abit of a downer as I can’t seem to get it flashed!

Love your mount designs. I’ve designed my own to fit over a uk switch plate. I’ll share once I get it all up and running.

You have to use the beta 7
Nightly release
https://www.openhasp.com/0.7.0/0.7.0/firmware/

1 Like

update on getting weather data after the home assistant weather update.

added Home assistant input text box for message box pop ups to bottom of main.

Hi!

Thanks for sharing the project, can you share how you integrated the ld2410b to openHasp? What the configuration looks like?

Thanks!

I did not integrate to open hasp
I only use the power pins from the device to power.
And used Bluetooth to integrate with HA

Then used automation in HA to turn on and off backlight when someone is close to it.