openHASP: An MQTT driven Touchscreen / Scene controller

Thanks for your reply. When extending the topic to “hasp/plateslaapkamerfred/state” also no trigger. I see these events in MQTT explorer BTW

Not sure of this is needed (for HA to generate events out of MQTT messages), but I also added this to configuartion.yaml:

mqtt:
  - event:
      state_topic: "hasp/plateslaapkamerfred/state/p1b1"
      event_types:
        - "up"
        - "down"

When I do that I see warnings in the log:

`event_type` missing in JSON event payload,  '{"event":"down"}' on topic hasp/plateslaapkamerfred/state/p1b1

Is HA not happy the payload is JSON? Is this required for HA to be able to trigger? As you see, I am a bit lost… :slight_smile:

Ok, I have found it, I need to mention the complete topic or use mqtt wildwards

1 Like

Good day. I notice v0.7 is still in RC, or has stable been released?

Im running 25 lanbons on 0.6.4 reasonably stable with the occasional drop.

Are there significant connectivity improvements in 0.7? Understand is a bit subjective, but any feedback is welcome.

Thank you

Running 0.7-rc9 on a seeed sensecap indicator and no problems. (Small sample I know).

Thank you Nick

One more thing
What about the HA integration?

good day, i have been trying to compile openhasp firmware for the sensecap display myself for a long time but i am not succeeding. the link to the Seeed Studio SenseCap binary is no longer available or i am doing something wrong, is there any way to send me a valid link or a copy of this firmware ? thanks a lot

Again it appears to work fine.

You need to look at “Actions” - the binary you want I seeed studio.

many thanks, works immediately and perfectly

1 Like

Good Morning and thank you for all your work ! this piece of software is amazing - one question, is there a way to make pages change every lets say 5 seconds after certain amount of inactivity ?

Not sure if the best way but this is the way I have done.
HA automation.

alias: openHASP back to page 1
trigger:
  - platform: template
    value_template: "{{ state_attr('openhasp.plate35','idle') != 'off' }}"
    for: "00:03:00"
condition:
  - condition: template
    value_template: >-
      {{ states('openhasp.plate35') != '1' and states('openhasp.plate35') !=
      'unavailable' }}
action:
  - service: openhasp.change_page
    target:
      entity_id: openhasp.plate35
    data:
      page: 1
2 Likes

Hey everyone, new OpenHASP user here. I flashed the 7.0 rc9 and rc10 binaries onto a new SenseCAP D1 but after it boots (and it reports its IP address) all I see is an empty screen with the word “plate” on it.

The docs suggest I should be able to access MQTT settings for the HA integration, but I cannot for the life of me figure out how to do that.

Am I missing something obvious, or is my device not working as expected?

Thanks!
PXL_20240211_122538627

Enter its IP address in the browser and it will take you to the device settings.

2 Likes

Oh… duh. I definitely had a case of the dumbs yesterday.

Sorry for the noise.

3 Likes

Hello,

Does anybody know if its possible to setup OpenHASP to directly subscribe to a topic instead of having Home Assistant feed the information?

I would like OpenHASP to display sensor values reported by zigbee2mqtt, independently from HA.

Thank you.

Not really, unless you want to fork, change and recompile the mqtt parsing in openHASP…

Maybe zigbee2mqtt can post to customized topics instead? If not, you need a way to translate the topics which is typically what a Home Automation system does.

Thank you for your reply.
Most likely, I may have something running in the background doing the translation. My application will not have HA running.

I have been trying to figure out how to get an OpenHASP button matrix integrated into home assistant to control a fan. I have what I think should work, but I must be missing something. Using MQTT Explorer I can see “val” being sent as a number (0,1,2,3) just as I expect, but I can not get Home Assistant to run fan.set_percentage service . If anybody could point me to an example that uses a matrix to set fan percentage I would greatly appriciate it. Thanks!

      - obj: "p2b2"  
        event:
          "down":
             - service: fan.set_percentage
               entity_id: fan.barn_fan_center
               data:
                 percentage: >
                   {% if val == 0 %}
                    '0'
                   {% elif val == 1 %}
                    '33'
                   {% elif val == 2 %}
                    '66'
                   {% elif val == 3 %}
                    '100'
                   {% endif %}
            

Are they supposed to be integers rather than strings?

Barb has new desk and new monitors so I had to update holder for sco1plus

2 Likes