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

Status of device does not update in Google Home #150

Open
louisnichols opened this issue Oct 19, 2021 · 0 comments
Open

Status of device does not update in Google Home #150

louisnichols opened this issue Oct 19, 2021 · 0 comments

Comments

@louisnichols
Copy link

[Disclaimer: I used the bug report template for this before I discovered I have an alternative. I am not 100% sure this is a bug. It could just be that I am not using it right. The template helps either way.]

Describe the bug
I have created a device of type Smart Switch and am trying to update its status from Node Red. But it doesn't seem to work.
The connection is sucesful and, when toggling the state from Google Home, I receive the changes in Node Red with the receiving node.

To Reproduce

  1. Create account on the website.
  2. Create device Device1 of type Smart Switch
  3. Link with Google.
  4. Device1 is visible in Google Home.
  5. Create a flow as below

[{"id":"944a5492c614d998","type":"inject","z":"c569b4a789aacc8e","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":480,"y":260,"wires":[["529e95f20d5f9dcf"]]},{"id":"529e95f20d5f9dcf","type":"function","z":"c569b4a789aacc8e","name":"OFF State","func":" return { \"payload\" : { \"state\" : { \"power\" : \"OFF\" } }, \"acknowledge\" : \"true\"};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":260,"wires":[["9b91d17c7b6a0542","f7f61df33f02d819"]]},{"id":"9b91d17c7b6a0542","type":"debug","z":"c569b4a789aacc8e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1020,"y":360,"wires":[]},{"id":"4e41633f06ae663b","type":"alexa-smart-home-v3","z":"c569b4a789aacc8e","conf":"57de98a4496ba219","device":"<device>","acknowledge":true,"name":"Device1","topic":"","x":480,"y":360,"wires":[["9b91d17c7b6a0542"]]},{"id":"f7f61df33f02d819","type":"alexa-smart-home-v3-state","z":"c569b4a789aacc8e","conf":"57de98a4496ba219","device":"<device>","name":"Device1","x":1020,"y":260,"wires":[]},{"id":"57de98a4496ba219","type":"alexa-smart-home-v3-conf","username":"<hidden>","mqttserver":"mq-red.cb-net.co.uk","webapiurl":"red.cb-net.co.uk","contextName":"memory"}]

Expected behavior
When I trigger the inject node, the state of the switch in Google Home should change (I think).

Log Output

19 Oct 19:42:47 - [info] Starting flows
19 Oct 19:42:47 - [info] [alexa-smart-home-v3-conf:57de98a4496ba219] Node-RED contrib version: v0.4.67
19 Oct 19:42:47 - [info] [alexa-smart-home-v3-conf:57de98a4496ba219] Connecting to Alexa/ Google Home Skill MQTT server: mq-red.cb-net.co.uk, account username: <username>
19 Oct 19:42:47 - [info] Started flows
19 Oct 19:42:55 - [info] [alexa-smart-home-v3-conf:57de98a4496ba219] Successfully connected to Alexa/ Google Home Skill MQTT server: mq-red.cb-net.co.uk, account username: <username>
19 Oct 19:43:13 - [info] [alexa-smart-home-v3-conf:57de98a4496ba219] Device1 : sending state update, topic:state/<username>/<deviceID> message:{"messageId":"43a6fc6b-ebd4-4ed3-98a2-30f8aaa7aa8a","payload":{"state":{"power":"OFF"}}}

Environment (please complete the following information):

  • Node-RED node version: 0.4.67
  • Node-RED version: 2.0.6

Additional context
Add any other context about the problem here.

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

1 participant