# Nodered + Home Assistant activate scene with specific application

**URL:** <https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647>\
**Category:** General\
**Created:** [24 April 2021 08:43 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647 "2021-04-24T08:43:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![cranx](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cranx](https://discourse.nodered.org/u/cranx)\
**Post date:** [24 April 2021 08:43 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/1 "2021-04-24T08:43:46Z")

</div>

Hi all!

I'm trying to get my lights in the living room to dim when watching movies/series. I've a scene made in Home Assistant to dim the proper lights.

So I'm watching on a Nvidia Shield and it is connected to my HA so it can read if it is on/off or playing/paused but also which application is started.

For this I would like to filter out some apps I don't want my lights to dim when started, like Youtube.

Does somebody have any idea how I would do that in Node-Red, which Node I should use and what JSON Data to use?

Many thanks!

Darryl

---

<div class="post-metadata">

**Author:** ![rgerrans](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rgerrans](https://discourse.nodered.org/u/rgerrans)\
**Post date:** [24 April 2021 14:40 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/2 "2021-04-24T14:40:55Z")

</div>

I don't use HA but if you can share the activated app plus the shield status to Node-Red you can then use switch nodes in parallel to activate the flow when the shield is turned on and playing. Then use a switch node to filter to the aps that you want to dim the lights for. Finally attach those outputs to a change node to set your dim level and send that back to HA to dim your lights.

---

<div class="post-metadata">

**Author:** ![cranx](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cranx](https://discourse.nodered.org/u/cranx)\
**Post date:** [29 April 2021 14:01 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/3 "2021-04-29T14:01:45Z")

</div>

Well, that's the thing, in node-red I can only see if the Shield is playing/paused/off as far as I know. But in HA I can see also what App is running but I don't know how I can see this in node-red.

---

<div class="post-metadata">

**Author:** ![rgerrans](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rgerrans](https://discourse.nodered.org/u/rgerrans)\
**Post date:** [30 April 2021 01:31 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/4 "2021-04-30T01:31:34Z")

</div>

Can you push the app playing to an MQTT broker as another way to transfer it to Node-Red? Otherwise maybe another node that you can push through a variable value of the app running

---

<div class="post-metadata">

**Author:** ![jemmail](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jemmail](https://discourse.nodered.org/u/jemmail)\
**Post date:** [30 April 2021 08:33 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/5 "2021-04-30T08:33:26Z")

</div>

How do you link your Nvidia Shield to HA ?

---

<div class="post-metadata">

**Author:** ![cranx](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cranx](https://discourse.nodered.org/u/cranx)\
**Post date:** [30 April 2021 09:10 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/6 "2021-04-30T09:10:16Z")

</div>

As a Google Cast device.

---

<div class="post-metadata">

**Author:** ![cranx](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cranx](https://discourse.nodered.org/u/cranx)\
**Post date:** [30 April 2021 09:10 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/7 "2021-04-30T09:10:54Z")

</div>

I've to look into this, thanks for pointing it out!

---

<div class="post-metadata">

**Author:** ![rgerrans](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rgerrans](https://discourse.nodered.org/u/rgerrans)\
**Post date:** [2 May 2021 13:36 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/8 "2021-05-02T13:36:21Z")

</div>

NP. I switched from dedicated hub nodes to MQTT and never looked back-back. Made it super easy when I switched from OpenHab to Homeseer and allowed me to integrate in some other independent components.

---

<div class="post-metadata">

**Author:** ![cranx](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cranx](https://discourse.nodered.org/u/cranx)\
**Post date:** [3 May 2021 13:27 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/9 "2021-05-03T13:27:20Z")

</div>

I see, but I'm not planning to switch platform any time soon so more looking for a permanent solution.

---

<div class="post-metadata">

**Author:** ![rgerrans](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rgerrans](https://discourse.nodered.org/u/rgerrans)\
**Post date:** [4 May 2021 20:52 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/10 "2021-05-04T20:52:33Z")

</div>

Sorry, that was just an extra benefit. It's more that by using a neutral approach it's easy to integrate in other pieces as needed and gives you more flexibility

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 July 2021 20:52 UTC](https://discourse.nodered.org/t/nodered-home-assistant-activate-scene-with-specific-application/44647/11 "2021-07-03T20:52:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
