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

The smoke alarm comes on but there is no trace in the home assistant #104

Open
galamarco opened this issue Oct 5, 2022 · 12 comments
Open
Labels
bug Something isn't working

Comments

@galamarco
Copy link

galamarco commented Oct 5, 2022

The problem

I received the alarm notification of a Nest Protect that has detected smoke (push notification from Nest app) but there is no trace of the alarm in the logs in the home assistant.
Screenshot from Nest app: https://prnt.sc/SDcufmNljrNh
Screenshot from Home Assistant: https://prnt.sc/uDqxosQIIoPr

What version of this integration (ha-nest-protect) has the issue?

0.3.8

What version of Home Assistant Core has the issue?

2022.9.7

Device / Model

Nest protect Topaz-2.33 (with cable power supply)

Diagnostics information

No response

Home Assistant log

Questo errore ha avuto origine da un'integrazione personalizzata.

Logger: homeassistant
Source: custom_components/nest_protect/init.py:202
Integration: Nest Protect (documentation, issues)
First occurred: 28 settembre 2022 11:29:47 (1 occurrences)
Last logged: 28 settembre 2022 11:29:47

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection
hosts = await asyncio.shield(host_resolved)
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 880, in _resolve_host
addrs = await self._resolver.resolve(host, port, family=self._family)
File "/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve
infos = await self._loop.getaddrinfo(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 860, in getaddrinfo
return await self.run_in_executor(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/nest_protect/init.py", line 202, in _async_subscribe_for_data
await entry_data.client.authenticate(entry_data.client.auth.access_token)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host home.nest.com:443 ssl:default [Try again]

Additional information

No response

@galamarco galamarco added the bug Something isn't working label Oct 5, 2022
@daxzor
Copy link

daxzor commented Nov 3, 2022

I too am experiencing this. It is the worst way the integration could fail

@iMicknl
Copy link
Owner

iMicknl commented Nov 3, 2022

@daxzor happy to look at this, but in the past there was no one that could test this for me.

Do you have the same issues as above, or does it just not show up?

@galamarco
Copy link
Author

galamarco commented Jan 3, 2023

Months later a fire alarm happened again which I heard about from the Nest app, but there is no trace in Home Assistant.
@daxzor that's a serious problem

How can we help solve the problem?

Greetings
Marco

@geert36
Copy link

geert36 commented Jan 3, 2023

Same problem here.
Yesterday I had a smoke alarm, but no trace in Home Assistant.

@TinyShark
Copy link

Adding to this that my smoke sensors also do not update/display within home assistant. Occupancy sensors working as normal however.

@iMicknl
Copy link
Owner

iMicknl commented Jan 7, 2023

As mentioned before, it helps to have a diagnostic log of the moment that the smoke sensor are triggered. And good to understand if it is still a warning or an actual trigger.

In my last (accidental) test, it did show up for me in HA, so I need more logs.

@jeffdeal
Copy link

jeffdeal commented Jan 7, 2023 via email

@Roarrk
Copy link

Roarrk commented Jun 10, 2023

I just had this happen to me - smoke alarm in Nest and no event triggered in HA. It has worked in the past. No errors in any logs - just no event triggering in HA and nothing to see in state changes.

@iMicknl
Copy link
Owner

iMicknl commented Jun 11, 2023

@Roarrk do you use the cookie method or older version? And same as all the others in this thread, please download your diagnostics at the time that your alarm is going off. :)

@iMicknl
Copy link
Owner

iMicknl commented Dec 17, 2023

I would love to debug this, but I would need some help. Anyone willing to trigger their smoke alarm? Please download your diagnostics in HA, while your alarm is triggered.

@lordbah
Copy link

lordbah commented Jun 23, 2024

I am willing, but I think we'll have to get past issue #338 first.

2024-06-23 16:49:58.044 ERROR (MainThread) [custom_components.nest_protect] Unknown exception. Please create an issue on GitHub with your logfile. Updates paused for 5 minutes.
Traceback (most recent call last):
  File "/config/custom_components/nest_protect/__init__.py", line 208, in _async_subscribe_for_data
    dict(b, **buckets.get(b.object_key, {})) for b in [data.updated_buckets]
                          ^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'object_key'
2024-06-23 16:49:58.163 ERROR (MainThread) [custom_components.nest_protect] Unknown exception. Please create an issue on GitHub with your logfile. Updates paused for 5 minutes.
Traceback (most recent call last):
  File "/config/custom_components/nest_protect/__init__.py", line 208, in _async_subscribe_for_data
    dict(b, **buckets.get(b.object_key, {})) for b in [data.updated_buckets]
                          ^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'object_key'

@tjoll
Copy link

tjoll commented Oct 29, 2024

Let me give this issue a bump.

Last week I've had a small cooking incident in the kitchen were the Nest app reported an emergency situation, right away.

Screenshot_20241029_210941_Nest

Now I've checked the HA entity but it did not report the situation.

Screenshot_20241029_211024_Home Assistant

The other sensors like battery status are updating fine. But the smoke or CO detection is having issues.

I'm also willing to do some testing if necessary.

HA: 2024.10.2
Protect: 0.4.0b7
Auth: cookie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants