'Google Home shows my smart devices loading for around 10 seconds
I am using Google smarthome washer code to control my ESP8266 with SSR. Everything works fine but every time I open my Google Home app or Home Control in Nest Hub 2, devices are shown loading for around 10 seconds or more. But devices from other vendors like Philips Hue are shown in 2-3 seconds.
Any suggestions on what I might be doing wrong.
Here is the link to the code I used. https://github.com/googlecodelabs/smarthome-washer
Solution 1:[1]
I would recommend checking if you are able to handle the Query response in time and in the correct format. Also, can you check the backend logs for the query requests and response for the status of all the devices.
Solution 2:[2]
You can check the log files and see if you are handling the request and response properly or having any issue in that.
Solution 3:[3]
I guess b/c both BaseI and ChildI are ~marker interfaces, pushing the [T]? symbol hint down into ChildImpl itself allows TypeScript realize that "it's the same T" and the extends BaseI now works:
class ChildImpl<T> implements ChildI<T> {
name!: T;
[T]?: T;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Siddhant Priyadarshi |
| Solution 2 | AbdullahWins |
| Solution 3 | Stephen Haberman |
