I’m looking for a little help with the Nest integration.
I am all setup and able to view 5 camera entities, all added into the dashboard with no issues, however despite several attempts, I am unable to see any motion sensor entities from the cameras - I’m just seeing the cameras themselves:
I’m having exactly the same issue, with the same events in my log as Andy:
2021-01-19 16:27:03 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-01-19 16:27:03 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 8.887169 seconds.
2021-01-19 16:27:04 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Processing 1 received message(s), currently on hold 0 (bytes 0).
2021-01-19 16:27:05 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Sent request(s) over unary RPC.
2021-01-19 16:27:05 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Released held message, scheduling callback for it, still on hold 0 (bytes 0).
2021-01-19 16:27:05 DEBUG (MainThread) [homeassistant.components.nest] Event Update dict_keys(['sdm.devices.events.CameraMotion.Motion'])
2021-01-19 16:27:05 DEBUG (Thread-CallbackRequestDispatcher) [google.cloud.pubsub_v1.subscriber._protocol.dispatcher] Handling 1 batched requests
2021-01-19 16:27:05 DEBUG (Thread-CallbackRequestDispatcher) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Sent request(s) over unary RPC.
2021-01-19 16:27:12 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] The current deadline value is 10 seconds.
2021-01-19 16:27:12 DEBUG (Thread-LeaseMaintainer) [google.cloud.pubsub_v1.subscriber._protocol.leaser] Snoozing lease management for 0.354556 seconds.
Would appreciate any assistance! Would love to get the motion sensor events up and running.
Got it, thanks mate! I was expecting them to come through on the event bus, I think.
I found this thread that suggested using Node Red and the events:all node filtered by event_type: nest_event to grab them, as a slightly more powerful alternative to Automations.
I was looking at pulling in the nest_event as a trigger to an automation, but couldn’t figure out how to distinguish the cameras that way. The solution you suggested is perfect for what I need - so thanks!
I didn’t occur to me that HA had already picked them up as trigger events!!
@Drewgy, I know this thread is kind of old but I just faced the same issue and solved it using some template sensors. I found this as I was being lazy and tried to find template configuration in the forum to save me 5min going through the documentation…lol
Here is how to transform Nest Doorbell events into binary sensors using template sensors. Just include the text bellow in your configuration.yaml, replacing <replace by your device id> by your device id.
# Templates
template:
# Front Door Motion
- trigger:
- platform: event
event_type: nest_event
event_data:
device_id: <replace by your device id>
type: camera_motion
- platform: event
event_type: nest_event
event_data:
device_id: <replace by your device id>
type: person_detected
- platform: event
event_type: nest_event
event_data:
device_id: <replace by your device id>
type: doorbell_chime
binary_sensor:
- name: "Front Door Motion Sensor"
device_class: motion
auto_off: 60
state: "on"
#Front Door Doorbell
- trigger:
- platform: event
event_type: nest_event
event_data:
device_id: <replace by your device id>
type: doorbell_chime
binary_sensor:
- name: "Front Door Doorbell"
auto_off: 15
state: "true"
I really want to do this and get it to work but despite my config.yaml indicating I have no errors when I set it up, it doesn’t populate my entities with the new motion options.
Any further ideas? I can share screenshots of how I set it up if you would like to take a look.
First gen indoor (wired) Nest camera with people and motion detection. They are recognized through the Nest Google API I set up, e.g., I can see all my nest devices there now but don’t have entities like “no motion detected” which is what I need for my automation ideas.
@allenporter - Unfortunately I do not have a separate template ymal. Someone along this path the instructions indicated that the templates go in this configuration file. Should I make a separate location?