Google-Nest Offical Device Access Console Finally Released!

Sorry you are irritated. What’s the problem exactly? the 0.2 difference?

Home assistant renders uses what the Nest API returns, and it likely does this because it’s internally converting between F and C and loses precision during the conversions back and forth. Someone recently made a change to round to 1 decimal but I don’t think that will help you: Change precision of Nest sensors by michaeldavie · Pull Request #56993 · home-assistant/core · GitHub – you can use a template in the frontend to rounder further of you like.

@Neil_Brownlee @allenporter
There may very well be rounding differences from C to F between Nest & HA but even Celsius has discrepancy due to Nest rounding its internal Celsius temperature to nearest .5 on its display.



image

Folks with cameras, I’m curious if you have tried out LL HLS yet. In particular set ll_hls: True in you configuration.yaml under stream. This can get your latency down to 3sec or so.

See Stream - Home Assistant for more.

In my case it may stutter a little from time to time but I wanted to see how others see it.

EDIT: The huge latency win is worth it in my opinion.

I’ve just tried it, to new honest I don’t stream much. I have stuttering in all situations. I’ll try again when I move across to Mac Mini M1

Just tried it, stuttered a little at first but then ran pretty smooth. Didn’t check latency yet but when I go out to my grill later I’ll report back and see if it is an improvement.

Great thanks for the report. @uvjustin just an FYI on some feedback i’m collecting on LL HLS

About 5 second delay which is way better than before

Great news! Thx Allen. Is there any news about the term to support Nest Protect in the Nest SDM integration?

1 Like

I really want to try this feature.

But at the moment I only have integrated my nest cameras via

nest:

integration

Do I only have to use:

stream:
  ll_hls: true

in my config and then the nest cameras using these settings?

Hello, I’ve done exactly what you described and I confirm this works much better.

1 Like

@BernieV when they add support to the SDM API, I will commit to adding it to Home Assistant – the list of devices supported is here Supported Devices  |  Device Access  |  Google Developers

2 Likes

Hey folks,

I’ve got the following automation to send a notification on my phone when a motion event occurs including a snapshot of the image that cause the event:

- id: 'my_automation_id'
  alias: Notify on Kitchen Motion
  description: ''
  trigger:
  - platform: device
    device_id: my_device_id
    domain: nest
    type: camera_motion
  condition: []
  action:
  - service: notify.mobile_app_my_phone
    data:
      title: Motion Detected
      message: Kitchen Motion Detected
      data:
        image: /api/camera_proxy/camera.kitchen
  mode: single

Works great. I’d like to now display that same image in a card in lovelace. I think to do so, I’d need to copy the image to the www directory. I don’t actually see a directory called api though. Anyone know how I can put a copy of that image into the www directory? I can’t take a new snapshot as that has big latency and the object that caused the motion might not be there anymore by the time the snapshot finishes.

Thanks!

I have a proposed change Add an entity service for saving nest event related snapshots by allenporter · Pull Request #58369 · home-assistant/core · GitHub to add a new service for taking snapshots based on event IDs specifically

I’m also prototyping a media player integration for recent events, where maybe the media player urls could be returned in a Lovelace card. It was suggested a media player is a good way to expose events, or to set up config options to auto save images to disk, etc.

What would make sense to you for how this could work? I’d love to help add the components for what makes sense to you as I’m not a Lovelace expert. The other option is frigate but I think we also want a lighter weight Lovelace option like you described.

Doesn’t the camera entity placed on a card show the latest snapshot anyway?

@RogTP it shows the latest image, but then you won’t know what caused the motion event as the room may be empty at that point. Also, there is a 10-20 second load time (for me at least) before the card renders as it has to connect and obtain that snapshot

@allenporter I just made a workaround that works! This will show the latest image that caused a motion detection event inside any picture card in lovelace. Turns out that path /api/camera_proxy/camera.kitchen is already accessible at https://your_ha_url:port/api/camera_proxy/camera.kitchen
BUT…issue is it requires authentication. If you go there, you’ll get 401 unauthorized. But, you can add ?token=[the camera token] to the end of it, and that provides the needed auth. So, all we need to do is create an input_text to store your token, and when the motion event occurs, set the input_text to the token. You can also add a timestamp variable so that the card refreshes on every motion event, which I do below.

Now, with this workaround @allenporter I think we could also add an extra action to the automation that can run a script which will do a wget against the image and save it to the media directory for the media player’s usage, or any other directory that people want them.

Posting all the code below.

EDIT: See updated code two posts below this one. Below originally used token to show the image, but the token will expire. So new code in two posts below downloads the image with wget first so that it can always get displayed

Actually, that wget will be necessary because that token will expire at some point. I’ll add that in and repost

Ok, here is the updated code. This one will use wget to download the motion image to your /config/www directory and that’s what gets displayed in the card. If you’d like to keep a copy of each image (rather than overwriting each time), just download an extra copy with the the timestamp field tacked on to the file name.

This is also a picture glance card with the entity of the camera set, so on the footer will be the camera icon that you can click to open a live stream.

configuration.yaml

shell_command:
  download_camera_event: '/usr/bin/wget -O "{{destination_path}}" https://your_ha_url:port/api/camera_proxy/{{camera_entity}}?token={{token}}&v={{version_timestamp}}'

camera:
  - platform: local_file
    file_path: /config/www/snapshots/kitchen_motion.jpg
    name: kitchen_camera_latest_event


automations.yaml

- id: 'my_automation_id'
  alias: Notify on Kitchen Motion
  description: ''
  trigger:
  - platform: device
    device_id: my_device_id
    domain: nest
    type: camera_motion
  condition: []
  action:
  - service: shell_command.download_camera_event
    data_template:
      destination_path: '/config/www/snapshots/kitchen_event.jpg'
      camera_entity: 'camera.kitchen'
      token: '{{ states.camera.kitchen.attributes.access_token }}'
      version_timestamp: '{{ now().strftime("%Y%m%d_%H%M%S") }}'
  mode: single

lovelace:

  - type: picture-glance
    title: Kitchen
    entities:
      - entity: camera.kitchen
    camera_image: camera.kitchen_camera_latest_event
    tap_action:
      action: none
    hold_action:
      action: none

EDIT: Simplified it a bit. … And Simplified again.

1 Like

Hello again, it’s been some time now living with Nest integration on my HA instance. I am practically driven insane as I have tried double-checking every value a million times and I have cross-checked against the documentation another million times - yet I am still facing a problem in that my instance does not receive the nest_event from my 2 Nest Hub Max devices.

I go to Developer Tools > Events > input nest_event > click Start Listening
I dance in front of my cameras and … nothing.

Their stream works “fine”, albeit I still get some logs like “Error demuxing” and “Error opening rtsp stream” but I guess those won’t go away due to how the SDM works.

Recently I faced an issue of similar nature, with another integration, that of telegram_bot and particularly my HA instance being able to send telegram bot messages but unable to receive callback events from the Telegram API when an inline keyboard was used. Turns out my reverse proxy was slightly mis-configured for that use case and I made the corrective actions required thus resolving my issue.

Which makes me think. Given that there is nothing wrong with my Pub/Sub topic and my values inside of HA, could it be that I need to allow some specific IP of either Google API or SDM API in my reverse proxy configuration so that events will be received?

I even tried removing and re-adding the integration with logging on. Yet the logs provide nothing useful - I think:

2021-11-20 05:40:24 INFO (MainThread) [homeassistant.components.nest.config_flow] Successfully authenticated
2021-11-20 05:40:24 DEBUG (MainThread) [google_nest_sdm.google_nest_subscriber] Starting background watchdog thread
2021-11-20 05:40:25 DEBUG (ThreadPoolExecutor-0_0) [google_nest_sdm.google_nest_subscriber] Subscriber 'projects/nest-project-310123/subscriptions/mdhome' configured on topic 'projects/sdm-prod/topics/enterprise-21c1976f-eb4f-4936-80d6-df03252407d0'
2021-11-20 05:40:25 DEBUG (ThreadPoolExecutor-0_0) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Creating a stream, default ACK deadline set to 10 seconds.
2021-11-20 05:40:25 DEBUG (ThreadPoolExecutor-0_0) [google.cloud.pubsub_v1.subscriber._protocol.dispatcher] Started helper thread Thread-CallbackRequestDispatcher
2021-11-20 05:40:25 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:25 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 5.536732 seconds.
2021-11-20 05:40:25 DEBUG (ThreadPoolExecutor-0_0) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Started helper thread Thread-LeaseMaintainer
2021-11-20 05:40:25 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:40:25 DEBUG (ThreadPoolExecutor-0_0) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Started helper thread Thread-Heartbeater
2021-11-20 05:40:25 DEBUG (MainThread) [google_nest_sdm.auth] request[get]=https://smartdevicemanagement.googleapis.com/v1/enterprises/21c1976f-eb4f-4936-80d6-df03252407d0/structures
2021-11-20 05:40:26 DEBUG (MainThread) [google_nest_sdm.auth] request[get]=https://smartdevicemanagement.googleapis.com/v1/enterprises/21c1976f-eb4f-4936-80d6-df03252407d0/devices
2021-11-20 05:40:30 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:30 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.357993 seconds.
2021-11-20 05:40:36 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:36 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 5.875199 seconds.
2021-11-20 05:40:42 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:42 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.362808 seconds.
2021-11-20 05:40:49 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:49 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.513532 seconds.
2021-11-20 05:40:51 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:51 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.730278 seconds.
2021-11-20 05:40:52 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:52 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 5.017301 seconds.
2021-11-20 05:40:55 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:40:57 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:57 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 1.339181 seconds.
2021-11-20 05:40:58 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:40:58 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.506916 seconds.
2021-11-20 05:41:02 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:02 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.802220 seconds.
2021-11-20 05:41:03 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:03 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 7.481109 seconds.
2021-11-20 05:41:10 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:10 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.339780 seconds.
2021-11-20 05:41:14 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:14 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.069412 seconds.
2021-11-20 05:41:14 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:14 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.681177 seconds.
2021-11-20 05:41:23 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:23 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.162462 seconds.
2021-11-20 05:41:23 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:23 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.885498 seconds.
2021-11-20 05:41:25 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:41:27 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:27 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.490309 seconds.
2021-11-20 05:41:34 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:34 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.351381 seconds.
2021-11-20 05:41:34 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:34 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.510021 seconds.
2021-11-20 05:41:37 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:37 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.568618 seconds.
2021-11-20 05:41:43 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:43 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.809345 seconds.
2021-11-20 05:41:52 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:41:52 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.839623 seconds.
2021-11-20 05:41:55 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:42:01 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:01 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.164767 seconds.
2021-11-20 05:42:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 5.372241 seconds.
2021-11-20 05:42:14 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:14 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.659758 seconds.
2021-11-20 05:42:17 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:17 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.795479 seconds.
2021-11-20 05:42:25 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:42:26 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:26 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.849474 seconds.
2021-11-20 05:42:35 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:35 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 5.920426 seconds.
2021-11-20 05:42:41 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:41 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.784966 seconds.
2021-11-20 05:42:41 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:41 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.254146 seconds.
2021-11-20 05:42:48 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:48 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.272804 seconds.
2021-11-20 05:42:55 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:42:56 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:42:56 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.234424 seconds.
2021-11-20 05:43:02 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:02 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.376323 seconds.
2021-11-20 05:43:02 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:02 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.571404 seconds.
2021-11-20 05:43:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.345791 seconds.
2021-11-20 05:43:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 1.223584 seconds.
2021-11-20 05:43:11 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:11 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 5.154088 seconds.
2021-11-20 05:43:16 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:16 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.041059 seconds.
2021-11-20 05:43:19 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:19 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.170850 seconds.
2021-11-20 05:43:25 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:43:25 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:25 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.372690 seconds.
2021-11-20 05:43:28 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:28 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.932094 seconds.
2021-11-20 05:43:29 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:29 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 1.330194 seconds.
2021-11-20 05:43:31 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:31 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.984931 seconds.
2021-11-20 05:43:35 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:35 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.632216 seconds.
2021-11-20 05:43:37 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:37 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.506182 seconds.
2021-11-20 05:43:38 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:38 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.119650 seconds.
2021-11-20 05:43:41 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:41 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.543050 seconds.
2021-11-20 05:43:49 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:49 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.289959 seconds.
2021-11-20 05:43:55 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:43:58 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:43:58 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.228353 seconds.
2021-11-20 05:44:06 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:06 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.163149 seconds.
2021-11-20 05:44:12 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:12 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.145855 seconds.
2021-11-20 05:44:16 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:16 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.864846 seconds.
2021-11-20 05:44:20 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:20 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.031016 seconds.
2021-11-20 05:44:22 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:22 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.661794 seconds.
2021-11-20 05:44:25 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:44:27 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:27 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.800012 seconds.
2021-11-20 05:44:28 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:28 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.844811 seconds.
2021-11-20 05:44:32 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:32 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.547632 seconds.
2021-11-20 05:44:39 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:39 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.581946 seconds.
2021-11-20 05:44:46 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:46 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.570742 seconds.
2021-11-20 05:44:48 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:48 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.903508 seconds.
2021-11-20 05:44:51 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:51 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 6.003319 seconds.
2021-11-20 05:44:55 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.
2021-11-20 05:44:57 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:44:57 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.223696 seconds.
2021-11-20 05:45:00 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:00 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.603262 seconds.
2021-11-20 05:45:05 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:05 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.745205 seconds.
2021-11-20 05:45:06 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:06 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 3.616022 seconds.
2021-11-20 05:45:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:09 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 2.915308 seconds.
2021-11-20 05:45:12 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:12 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 4.970662 seconds.
2021-11-20 05:45:17 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:17 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.302701 seconds.
2021-11-20 05:45:17 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:17 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 1.291060 seconds.
2021-11-20 05:45:19 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:19 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.824498 seconds.
2021-11-20 05:45:20 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:20 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.756927 seconds.
2021-11-20 05:45:21 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:21 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 1.769009 seconds.
2021-11-20 05:45:23 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-11-20 05:45:23 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 7.502632 seconds.
2021-11-20 05:45:25 DEBUG (Thread-Heartbeater) [google.cloud.pubsub_v1.subscriber._protocol.heartbeater] Sent heartbeat.

My impression is that on the google side users are reporting that a nest hub max does not send events:

The pubsub events are not sent via your proxy. Instead, home assistant polls google with a streaming RPC, so no worries about that.

I’ve reported the issue to Google, and I would recommend doing the same so they get additional reports. You can also reproduce the issue in the google cloud console with a test subscription and pulling messages manually as described in the nest troubleshooting instructions.

Wow! How did I miss this?

Great stuff @allenporter thank you once again for your prompt reply! :clap:

And quite ironically “great stuff” Google … once again …! :unamused:

edit: How do I contact the Google team to alert them of the SDM not working properl with Nest Hub Max?