mikejac / node-red-contrib-google-smarthome

A collection of Node-RED nodes to control your smart home devices via Google Assistant.
GNU General Public License v3.0
121 stars 38 forks source link

Switch Device without connection on Google Home app #377

Closed JosepFarreLlados closed 1 year ago

JosepFarreLlados commented 1 year ago

Hello!! I have node-red v3.0.2 and I use "node-red-contrib-google-smarthome" version 0.4.3

In node-red I setup a Switch node and I can Send spoken notifications (on/off) using a Lenovo Smart clock and works fine.

On other hand on Google Home APP of my Android phone, appear the switch button with the status "without connection". Google Home APP detects all nodes (Switch, Blinds...) but the status is "without connection". Any idea why Google Home APP can't connect to the nodes? Any help would be appreciated. Thank you. Best regards,

Caprico85 commented 1 year ago

Hi!

"without connection" means the devices are shown like this?

image

So far, I have no idea what the reason could be. It can't be a general connection problem. Otherwise voice commands wouldn't work. So the problem must be something else.

Any errors on Google Cloud logs https://console.cloud.google.com/logs/? You may need to change the timespan to see the log messages (if there are any messages at all).

Do you see any error messages on Node-RED's debug panel?

Can you enable debug output in the management node and then look at Node-RED's log file. Any errors there? Most interesting part is probably when you swipe down in the app to refresh. There should be a bunch of messages when Google queries the new state of your devices.

Did you setup local fulfillment? If so, try to disable it.

image

Regards Caprico

JosepFarreLlados commented 1 year ago

Hello Caprico, Many thanks for your reply! On Google Home APP the Switch node looks like as you shown. I have had local fulfillment disabled.

I enable debug output in the management node and Node-RED's show: Sin título

Google Cloud logs are two: first: Sin título1

second:

Sin título2

Thanks in advance. Best regards,

JosepFarreLlados commented 1 year ago

Hello! During these days I have observed that very few times Google Home APP worked, randomly, and when it restarts fail again.

My google console Settings, according with the issue #332, has as the default region Spain: Sin título

Up to now the firewall only allowed the access from US and Spain. I did a change to allow access from all countries and now works.

Seems that default region/zone depends on the client, due to my Lenovo Smart clock always works and my Android phone no. Any feedback on this behavior?

Thanks in advance. Best regards

JosepFarreLlados commented 1 year ago

When firewall allow access from all countries works! Then, related with the Google Server country location, issue https://github.com/mikejac/node-red-contrib-google-smarthome/issues/332