iMicknl / ha-nest-protect

Nest Protect integration for Home Assistant. This will allow you to integrate your smoke, heat, co and occupancy status real-time in HA.
MIT License
336 stars 64 forks source link

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

Open galamarco opened 2 years ago

galamarco commented 2 years ago

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 _createconnection , 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

daxzor commented 1 year ago

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

iMicknl commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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

TinyShark commented 1 year ago

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

iMicknl commented 1 year ago

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 commented 1 year ago

FWIW, I had two Nest Protect smoke events (heads-up alerts that I silenced) while searing my Christmas rib roast. Both showed in the HA logbook. I've had my Protects set up for some time, and this is the first time I've had a smoke event and remembered to check HA.


From: Mick Vleeshouwer @.> Sent: Saturday, January 7, 2023 9:43 AM To: iMicknl/ha-nest-protect @.> Cc: Subscribed @.***> Subject: Re: [iMicknl/ha-nest-protect] The smoke alarm comes on but there is no trace in the home assistant (Issue #104)

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.

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiMicknl%2Fha-nest-protect%2Fissues%2F104%23issuecomment-1374502957&data=05%7C01%7C%7C3fefd9d703a345ebd31008daf0bd9090%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638086994219323552%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6Ynm%2FokFvszP4iptqiRZbBTB65NKwPlRfDFULLJowV8%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARIKP2MMYVLIFZQR6UKGYRDWRF6JVANCNFSM6AAAAAAQ5O3CLY&data=05%7C01%7C%7C3fefd9d703a345ebd31008daf0bd9090%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638086994219323552%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TBtI%2BEVUfil2EW%2BG4mG74h2IzMAYxz3qWTEmWuORgu4%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Roarrk commented 1 year ago

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 commented 1 year ago

@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 commented 10 months ago

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 commented 3 months ago

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'