Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Homething node, display/subscribe to Home Assistant "notify.notify" service events . #138

Open
ManuRiver opened this issue Jul 26, 2024 · 1 comment

Comments

@ManuRiver
Copy link

          This sparked the following idea and wanted to share back with you guys.

Add the following self published service to esphome config file.

service: ##provisions a self published service back to homeassistant thru esphome api.

api:
  encryption:
    key: !secret api

  services:
    - service: notify_homething
      variables:
        title: string
        message: string
        # type_str: string
      then:
        - lambda: |-
            id(homeThingMenu)->addNotification(title, message, "", true);

##configuration.yaml on the hass side, profit ;-)

notify:
  - platform: group
    name: "Notify Homething"
    services:
      - service: esphome ##propagates the notify.notify events back to the variables and calls back the service.
        data:
          target: studiotdisplay_notify_homething

Originally posted by @ManuRiver in #116 (comment)

@landonr
Copy link
Owner

landonr commented Jul 31, 2024

great idea thanks for making the issue!

i think I can add the service directly to the homething component so we don't have to include it in the config. I'll take a loo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants