Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Temperature update interval TH16 #106

Open
minws13 opened this issue Jun 14, 2020 · 3 comments
Open

Temperature update interval TH16 #106

minws13 opened this issue Jun 14, 2020 · 3 comments

Comments

@minws13
Copy link

minws13 commented Jun 14, 2020

Hello,

is there a way to define in the config file the time interval at which the TH16 checks for and reports temperature?
Thanks

@bwp91
Copy link

bwp91 commented Jun 14, 2020

From my (still limited) knowledge of this plugin, I can give my thoughts --

I don't think this plugin performs regular polling checks to update devices, rather, external updates are sent to the plugin through a websocket in real time.
But i could be wrong :)

@howanghk
Copy link
Owner

Hi @minws13, The plugin only check temperature when you use the Home app. It does not check in background periodically. Instead, the ewelink server would push updates to the plugin via a websocket connection. The ewelink server control when to push such updates.

@minws13
Copy link
Author

minws13 commented Jun 17, 2020

@howanghk @thepotterfamily thanks. I monitored a bit to see if there is any specific interval that ewelink checks in the background, and there is not. I noticed however that if there is a sudden change in temperature it is reported, therefore it somehow reports the temperature if there is a big change rather than every a specified time (it could be six hours). If someone takes a look at the log, it seems that regardless the time, the temperature is reported if it reaches a difference of max 0.7 celcius.

So my question would be if instead of opening the home app every 5 minutes to get more frequent readings, could it be done by "simulating" the opening of home.app through homebridge or the ewelink plugin?

[6/16/2020, 1:55:33 AM] [eWeLink] setting temperature: 24.9
[6/16/2020, 1:55:33 AM] [eWeLink] setting temperature: 24.9
[6/16/2020, 1:57:23 AM] [eWeLink] setting temperature: 25.5
[6/16/2020, 1:57:23 AM] [eWeLink] setting temperature: 25.5
[6/16/2020, 2:00:54 AM] [eWeLink] setting temperature: 26.1
[6/16/2020, 2:00:54 AM] [eWeLink] setting temperature: 26.1
[6/16/2020, 2:07:54 AM] [eWeLink] setting temperature: 26.6
[6/16/2020, 2:07:54 AM] [eWeLink] setting temperature: 26.6
[6/16/2020, 2:29:36 AM] [eWeLink] setting temperature: 27.2
[6/16/2020, 2:29:36 AM] [eWeLink] setting temperature: 27.2
[6/16/2020, 3:58:02 AM] [eWeLink] setting temperature: 27.8
[6/16/2020, 3:58:02 AM] [eWeLink] setting temperature: 27.8
[6/16/2020, 9:33:16 AM] [eWeLink] setting temperature: 27.2
[6/16/2020, 9:33:16 AM] [eWeLink] setting temperature: 27.2
[6/16/2020, 9:33:46 AM] [eWeLink] setting temperature: 26.5
[6/16/2020, 9:33:47 AM] [eWeLink] setting temperature: 26.5

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants