Node-RED google home integration

So you are making the request via NORA, but replying by casting the node-RED response.

You could create a custom Routine in Google Home to run the command 'Schalte die Batterie ein' and call it 'was ist die terrassentemperatur'.

Hello Paul, thanks for your tutorial. Do you know the Home Assistant? I love it!!! The first 3 pictures are a "flow". Here's an example to start a "Call Service" action. Figure 4 shows a "flow" to query a status "current state". Sorry, if I did not disconnect it. Yes, the Google Assistant Routine is a very good thing, but they have nothing directly to do with the "flow" in Node-RED, because you are free-configured and only a trigger for the "flow".

I think @Paul-Reed was suggesting to use a scene to activate the flow. You can customize a routine to activate a scene when it's triggered.

I needed to do some refactoring in the interaction between Google and NORA (I wasn't using proper refresh tokens).

You will need to unlink and link again NORA in Google Home in order for it to work again.

2 Likes

The re-link went OK, but I'm seeing these warnings in the node-RED log;

19 Dec 13:19:33 - [warn] nora (OYkDk): disconnected (transport close)
19 Dec 14:20:49 - [warn] nora (OYkDk): disconnected (transport close)
19 Dec 15:01:56 - [warn] nora (OYkDk): disconnected (transport close)
19 Dec 22:01:08 - [warn] nora (OYkDk): disconnected (transport close)

Anything to worry about?

No, it restarts when I push changes (also working on the thermostat node) and after 24 hours of activity...

1 Like

After around 5 day of use I have to say: This is just perfect!
Very easy and straightforward to implement. Also it is quite stable and very fast!

Thanks!

1 Like

Got a chance to test with the refactoring you did this week, and unfortunately all the devices came through without the room names. Istill think it's the fact I have multiple homes available in Google Home. I'll spend some time skimming the documentation to see if I can learn anything.

Hi Andrei,
I would like to try your service, can you send me a private message? I do not see how to do it ... :frowning:

Not sure if you noticed but I sent you a PM

Hi, i also can't finde way to send You PM, pleas could You add my email adress

viobama@gmail.com

Regards
BG

If you double click on the name andrei-tatar next to his avatar in any of his posts, you should see a popup like this appear -

Then click on Message, and rest is self explanatory.

Paul

I've been trying to figure out this puzzle for a while now and hitting a brick wall. I can use the nora "Switch" node and turn my TV On/Off fine via WOL and the "Call Service" Home Assistant node. However, the problem is that I usually use my FireTV remote to turn on the TV, so the state of the Nora Switch doesn't change since I never turned it on that way. This wouldn't be an issue, except for the fact that I can't "Turn Off" something that Google/Nora already thinks is off.

I spent a lot of time trying combinations with input_boolean and even noticed an "input_boolean.toggle" but I couldn't manage to make that work either. This seems like it would be a common problem, but the only thread I can find on it is here:

Any suggestions on how I can make this work with Nora would be greatly appreciated! If any additional information is needed, I'd be happy to provide that as well.

Happy Holidays!

Hi, i can't send You PM, not have the PM button, please could You add my email adress too

vposterv@gmail.com

Thank you.

I saw the same problem when controlling some lights by both voice (NORA) and also a timer, which resulted in the timer switching the lights off, whilst NORA thought the lights were still on.

The way I resolved this was to rework the timers, and direct all commands - both voice AND timers through NORA, so it was always in sync.

You would need to somehow get the change in status from your TV fed into node-RED, to indicate that the TV was now switched off, and then use that to update Google via NORA.
Is your TV a 'smart' tv? does it have an api? where maybe you could get this info.

If you check this post, what is stopping you from sending a PM?
You are not the first to have problems with PM's, and it would be good to know why.

I was thinking along the same lines, but ran into troubles fetching the current state. I tried using the "Current State" node for Home Assistant, then directing that to the Nora Switch node, but it doesn't seem to change the Nora Switch state. I'm unsure if I can use "Current State" to invoke the flow since it has an input option or if I need some type of Inject node.

The TV is an webOS LG Smart TV, I'm using the media_player component to interact with it in Home Assistant

My NORA node is configured like this;

nora1

...and if I inject into NORA a string "on" or "off", then Google is updated accordingly.
Note that I'm injecting the same message "on", as is entered in NORA config. (it could be boolean, a number etc - so long as the injected msg & NORA config are the same)

Hello, one possibility might be a w-lan outlet with fuel gauge. If it is possible to query the power consumption in Home Assistant, would you know if the TV is on or off? That's just an idea, I do not have it myself.

greetings

Volker

Thanks, I think I may have got it, as the string values you posted pointed me in the right direction. I just have to wait until my roommate is done watching football in order to test.

I'm now using the "State" Home Assistant node and this whole time I was going by the "Service" options like "turn_on" or "turn_off" but I noticed the status was "Playing" in node-red and once I put that in the "On Payload" field, the nora node will now sync

image

If I turn the nora Switch node off, as long as the TV is playing, it will sync and switch to On as well. I'm 'assuming' this will also switch to Off when the TV's status goes from "Playing" to state "Off" and if this is the case, this setup will work. I'll confirm once I'm able to test and connect that last node.

UPDATE: It works! The Nora Switch node now syncs perfectly with the state of the TV. It takes a moment for Home Assistant to detect that the TV is "Playing", clocked it at 24 seconds, but since I'm not planning on rapidly turning on or off my TV this will work nicely.

1 Like