HA SwitchPlate HASPone: DIY In-Wall Touchscreen Home Assistant Controller

Thanks. I did not realize that that lists was also compatible with the Desktop design.

OH NO! Sorry man, I completely missed that part of the question! The desktop model is going to use 18mm M2 flatheads.

I probably should re-design that thing to use the 20mm fasteners.

Sorry for the late reply, I still have the display sitting here. Like a lot of other stuff I buy but then end up not using.

1 Like

You and me both.
I have 4 of them still in the box waiting for one day for me to assemble them.

Just build them, i have 4 and those are the main switches for downstrairs.
Not running ha switchplate but esp home but it is very usefull also with ha switchplate

My other issue is I live in Oz and luma doesnā€™t ship to down under so I got the components, but i dont have the wall plates. I need to buy a 3D printer or get them printed. It on my to do list

I had no printer before i made the first one and order a 3d printed housing at a local shop.
Then i bought a 3d printer :slight_smile:

Hi @zonko

I am testing the Custom-Pages-for-HASwitchplate and I like them very much. I just have a little problem understanding how the toggle switches on page 6 work. According to the quickstart, I replaced the names and entities in the two files. Looking further down in the file hasp_plate01_p6_toggles.yaml, I see some entries like:

- service: homeassistant.turn_on
      data_template:
        entity_id: >-
          {% if is_state('domain.TOGGLEI', 'off') and ('input_boolean.hasp_plate01_p6_switchtoggles', 'off') -%}
            domain.TOGGLEI
          {%- elif is_state('domain.TOGGLE9', 'off') and ('input_boolean.hasp_plate01_p6_switchtoggles', 'on') -%}
            domain.TOGGLE9
          {%- endif %}

I assume the TOGGLEx values have to be replaced too. But I have no idea with what. Could you please explain to a HA novice a bit more detailed how this part works?

Here

try this

  - alias: hasp_plate01_p1_toggle7
    trigger:
    - platform: mqtt
      topic: 'hasp/plate01/state/p[1].b[7]'
      payload: 'ON'
    action:
    - service: light.toggle
      entity_id: light.halllight
1 Like

I know
but i need to clean out my workshop make some room, if i got it now
it would start a chain reaction that would send the WAF from it current high of 8 to an unpleasant historical low. :roll_eyes:

1 Like

@Hermann

Easiest would be to run through the script explained in the Github readme. This way youā€™ll be asked to enter every entity etc.

Using the script you can get away editing the yamls by hand.

If you want to edit by Hand. domain.TOGGLEI, needs to be replaced by the entity_id you want to use on position one.
domian.TOGGLEI needs to be the same entity_id, both in the if statement and the actual entity_id.

Thanks @zonko. I will try the script. The reason why I am asking is that I want to make some changes in the Nextion design and I wanted to understand the way the whole thing works.
Happy New Year!

@zonko I bought the pre-built switchplate from luma, was trying to do your script but I had a question.

Do I need to follow this step if luma had flashed it already?

Flash the ESP8266 and the Nextion panel as usual but use one of these Nextion Firmwares according to your panel size, orientation and theme you want to use, provided by this repository instead.

If so, would there be anyway to flash it without removing from wall or would I need to remove it and open the components?

Thank you.

Yes, youā€™ll need to flash it again.
You can flash it via the WebUI without removing it from the wall.

@zonko thanks, everything seems to be working but not sure why the light button and media button which should be the toggle and media button respectively not going anywhere when they are pressed. Its the button with the lightbulb and headphones . I ran the script as instructed.

Which firmware did you use?

@zonko the 2.4 HASwithplate.tft

Hi guys! Iā€™m a complete zero in electrics and plate development. I want to make this great panel my self and use it in the EU region. According to the documentation, it seems that this plate was developed for United States region with 120v and where Im live -> the voltage is 240v.
I saw that one guy did something what I need for EU region (https://www.thingiverse.com/thing:2603232) but he doesnā€™t use IRM-03-5 5V on his board and use this https://ru.aliexpress.com/item/32260493790.html?spm=a2g0s.9042311.0.0.bvw4rXā€¦ And Unfortunately there is no clear info how to connect all his partsā€¦And I donā€™t know is it safe to use in this caseā€¦As I wrote before Im totally noob in electricsā€¦
Iā€™ve read almost whole forum branch, but didnā€™t found an answer for my question. Maybe someone can answer few my noobs questions:

  1. Should I change something in the prototype which described on HASwitchPlate github for region with 240 v or I can do everything and order all parts according to the instructions?
  2. Is it possible to use this switch plate with connected 5v only ?

For now Im only interesting on the board prototyping and atm Iā€™m not care in which case I will place it. Thanks!

There should be no need to change the power supply! From the datasheet for he IRM-03-5:

So you should be all set with the existing PCB. Getting that to fit into your wall box is another story, which Iā€™m not going to be able to help much on as the box sizes are different around the world.

The WeMos D1 Mini weā€™re using has a USB port for easy programming during assembly, but if you have 5VDC you can run it straight into that USB port to power the device full time if you like. The project PCB also has footprints for a range of DC-DC power supplies allowing you to power the project with anywhere from 9-75VDC.

1 Like

Thanks for the detailed answer!

1 Like