HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
734 stars 187 forks source link

MQTT Issue with Sunton Display #444

Closed wilwizard1979 closed 1 year ago

wilwizard1979 commented 1 year ago

Perform all steps below and tick them with [x]

Describe the bug

The Sunton Display is not discovered in the MQTT in Home Assistant. Would that be an issue because the Display is still in Beta Version according to OpenHASP documentation? (Reference: https://www.openhasp.com/0.6.3/devices/sunton-screens/) The hardware part of the Display is working fine. I have even already added some buttons for testing, and this seems to work fine. I configured MQTT in the display as picture below After re-starting the Display, I can see the status of the MQTT communication ok (see picture) Also in the MQTT Explorer we see it up and running (picture) The problem is that in my MQTT Integration, nothing else than my current HASS.Agent is discovered

To Reproduce

The only simple code I have in the Display is below (just for testing)....

{
    "page": 1,
    "id": 10,
    "w": 240,
    "obj": "label",
    "text": "%hostname%"
}

{"comment":" ----------- Buttons ------------"}

{"page":0,"id":1,"obj":"btn","action":"prev","x":0,"y":429,"w":106,"h":50,"bg_color":"#2C3E50","text":"\uE141","text_color":"#FFFFFF","radius":0,"border_side":0,"text_font":28}
{"page":0,"id":2,"obj":"btn","action":"back","x":107,"y":429,"w":106,"h":50,"bg_color":"#2C3E50","text":"\uE2DC","text_color":"#FFFFFF","radius":0,"border_side":0,"text_font":38}
{"page":0,"id":3,"obj":"btn","action":"next","x":214,"y":429,"w":106,"h":50,"bg_color":"#2C3E50","text":"\uE142","text_color":"#FFFFFF","radius":0,"border_side":0,"text_font":28}

{"page":2,"comment":" ---- Simple Circle ----"}
{"page":2,"id":1,"obj":"obj","x":40,"y":100,"w":160,"h":160,"radius":100,"opacity":100,"border_opa":160,"border_width":4,"comment":"touch-catcher"}

{"page":3,"comment":" ---- A Label and a Button with a Text ----"}
{"page":3,"id":1,"obj":"label","x":5,"y":5,"h":50,"w":50,"text":"Hello","enabled":true,"hidden":false}
{"page":3,"id":2,"obj":"btn","x":5,"y":90,"h":90,"w":100,"text":"World","enabled":false,"hidden":false}

Expected behavior

I would expect to see my display listed in the MQTT Integration in Home Assistant

Screenshots or video

Img1

img2

img3

img4

img5

Discovery Mode Enabled image

fvanroie commented 1 year ago

Did you install the Home Assistant Community Store (HACS)? Please install the openHASP Custom Component using HACS.

Make sure to enable Show Beta versions and select version 0.7.0 of the openHASP component in HACS. image

wilwizard1979 commented 1 year ago

Thanks fvanroie, I think I lost something that I had to install this new Custom Component. I did install OpenHASP custom component at the version shown above (0.7.0) and HACS at version 1.31.0. Now I have a new problem

After rebooting, the OpenHASP Integration was auto-discovered. image

I just kept the default configuration and didn´t select the path for the JSONL file. image

When clicking to submit, I received the following message: the integration could not be loaded, try to restart home assistant. image

After clicking finish and re-starting Home Assistant, the integration looks like this: image

Important to mention that I changed the name of the plate from the first post. Now it is called “plate_sala” which was properly found.

wilwizard1979 commented 1 year ago

Hi @fvanroie, anything I could check or that I might be doing wrong?