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

Team horn sound #3

Closed
nutsofamily opened this issue Mar 17, 2021 · 15 comments
Closed

Team horn sound #3

nutsofamily opened this issue Mar 17, 2021 · 15 comments

Comments

@nutsofamily
Copy link

nutsofamily commented Mar 17, 2021

Does the flow sound all teams playing? Is there a way to only setup your fav teams?
Ill try it out tonight as I just got a google mini.

msg.payload.event.team_id

Do you changethe above " team_id" with your teams number? Example: msg.payload.event.23

Possible to have more than one fav team?

Thanks.

@dennyreiter
Copy link
Owner

dennyreiter commented Mar 17, 2021 via email

@nutsofamily
Copy link
Author

Ok so what ever teams I have configured, it will play all the horns? i am following 4 teams, so if they are all playing it will trigger them all?

@dennyreiter
Copy link
Owner

dennyreiter commented Mar 17, 2021 via email

@nutsofamily
Copy link
Author

I get Entity could not be found in cache for entity_id: input_boolean.goal_horn
Screen Shot 2021-03-17 at 4 30 36 PM

@nutsofamily
Copy link
Author

Screen Shot 2021-03-17 at 4 34 22 PM

@dennyreiter
Copy link
Owner

dennyreiter commented Mar 18, 2021 via email

@dennyreiter
Copy link
Owner

You'll have to create the input_boolean in Home Assistant, under Configuration, then Helpers. Or you can just bypass it if you don't want it.

@nutsofamily
Copy link
Author

I have it configured like yours as i have the Nabu casa linked to my local files (similar to yours but a different directory).
Doing a quick automation script google mini will play the file correctly, just not from the node-red flow.
I dont know what is wrong because other than the name of media player (mine is living room) and the files i have downloaded and moved to my local file served with Nabu, i get the identity error,

@nutsofamily
Copy link
Author

Input boolean….. Ugh, more reading.
I beleive I am just wasting your time. Though for sure by getting the google device and mirroring your config (other than names) it would work.

Sorry for wasting your time.

@dennyreiter
Copy link
Owner

No worries, you are fine. If you want, you can delete the node that says "Goal Horn Status" and connect the set flow node and delay node directly.

@nutsofamily
Copy link
Author

Ill give er a go with the montreal game tonight

@nutsofamily
Copy link
Author

nutsofamily commented Mar 18, 2021

Ok deleting status the test function works. Lets see if it pulls from the Montreal game as I have the Canadiens in my config yaml which I assume it pulls from.

`

  • platform: nhl_api
    name: "NHL Montreal Canadiens"
    team_id: 8`

nhl_montreal_canadiens_away_team: entity_picture_template: "{{ states.sensor.nhl_montreal_canadiens.attributes.away_logo }}" friendly_name_template: "{{ states.sensor.nhl_montreal_canadiens.attributes.away_name }}" value_template: "{{ states.sensor.nhl_montreal_canadiens.attributes.away_score }}" nhl_montreal_canadiens_home_team: entity_picture_template: "{{ states.sensor.nhl_montreal_canadiens.attributes.home_logo }}" friendly_name_template: "{{ states.sensor.nhl_montreal_canadiens.attributes.home_name }}" value_template: "{{ states.sensor.nhl_montreal_canadiens.attributes.home_score }}"

@nutsofamily
Copy link
Author

EPIC!!! Montreal scored and I received the horn and light. Thanks!

@dennyreiter
Copy link
Owner

Excellent!

@dennyreiter
Copy link
Owner

If you want to put the goal horn boolean back in, go here:
Open your Home Assistant instance and show your helper entities.

Then click "+ Add Helper" in the bottom right corner. Select Toggle, the top option, then name it "Goal Horn"

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