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

Data updated too quickly #5

Open
manswiss opened this issue Mar 18, 2024 · 1 comment
Open

Data updated too quickly #5

manswiss opened this issue Mar 18, 2024 · 1 comment

Comments

@manswiss
Copy link

Hello

I am using the software. But there are 10-20 updates every second via MQTT. These almost always affect the "sensors" and "controls".
Is it possible to extend the software so that you can set a minimum time period in which the updates take place? For example, only every 5 or 10 seconds?

Thank you very much for your help and I am very happy about this software.

@klaudiusz223
Copy link
Owner

Hi @manswiss,
Try to remove sensors.
For example in this place

SENSOR_FAN_EXHAUST_DUTY : [("fan-exhaust-duty" ,"Exhaust Fan Duty" , "percentage" , None ,(),),
("fan-exhaust-duty-low-rate" ,"Exhaust Fan Duty" , "percentage" , slow_down ,('fan-exhaust-duty-low-rate',200,0.03,),),],

You can see 2 versions of the same sensor. The second one is throttled. So remove the first one.

SENSOR_FAN_EXHAUST_DUTY : [ ("fan-exhaust-duty-low-rate" ,"Exhaust Fan Duty" , "percentage" , slow_down ,('fan-exhaust-duty-low-rate',200,0.03,),),],

You have to find all similar sensors and remove the first definition. Only definition with slow_down should remain.
You can also change parameters for slow_down function
timeout (in seconds - how often the value should be reported) and treshold ( by what fraction the value must change to be reported)

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

No branches or pull requests

2 participants