vojtamolda / homebridge-ecobee3-sensors

Homebridge plugin that exposes Ecobee 3 sensors as HomeKit accessories.
https://www.npmjs.com/package/homebridge-ecobee3-sensors
MIT License
26 stars 15 forks source link

Update Frequency Parm Not Being Read #52

Open funetn opened 7 months ago

funetn commented 7 months ago

First thank you for the plug-in. Just installed and happy to see my sensors in HomeKit now. However I noticed when I changed the "update_frequency": 30 value to something else (I can live with 5+ min updates so changed to 300 and rebooted) that the plug-in still is polling ever 30 seconds per the log ("wait | 30 seconds").

I'm not a coder but I see in the code (platform.js) the following line of code: this.updateFrequency = this.config.update_frequency || 30;

Is the JSON value (update_frequency) not getting correctly read by the program?

Updated (added JSON & log capture):

JSON: "exclude_equipment_sensors": false, "update_frequency": 600, "log_level": 1

LOG [28/01/2024, 13:18:09] [Ecobee 3 Sensors] [Main Floor] [28/01/2024, 13:18:09] [Ecobee 3 Sensors] [Master Bedroom] [28/01/2024, 13:18:09] [Ecobee 3 Sensors] [Basement] [28/01/2024, 13:18:09] [Ecobee 3 Sensors] [My ecobee] [28/01/2024, 13:18:09] [Ecobee 3 Sensors] Update equipments [28/01/2024, 13:18:09] [Ecobee 3 Sensors] [Ecobee auxHeat1] - false [28/01/2024, 13:18:09] [Ecobee 3 Sensors] [Ecobee fan] - false [28/01/2024, 13:18:09] [Ecobee 3 Sensors] Wait | 30 seconds [28/01/2024, 13:18:39] [Ecobee 3 Sensors] Update sensors [28/01/2024, 13:18:39] [Ecobee 3 Sensors] [Main Floor] [28/01/2024, 13:18:39] [Ecobee 3 Sensors] [Master Bedroom] [28/01/2024, 13:18:39] [Ecobee 3 Sensors] [Basement] [28/01/2024, 13:18:39] [Ecobee 3 Sensors] [My ecobee] [28/01/2024, 13:18:39] [Ecobee 3 Sensors] Update equipments [28/01/2024, 13:18:39] [Ecobee 3 Sensors] [Ecobee auxHeat1] - false [28/01/2024, 13:18:39] [Ecobee 3 Sensors] [Ecobee fan] - false [28/01/2024, 13:18:39] [Ecobee 3 Sensors] Wait | 30 seconds [28/01/2024, 13:19:09] [Ecobee 3 Sensors] Update sensors [28/01/2024, 13:19:09] [Ecobee 3 Sensors] [Main Floor] [28/01/2024, 13:19:09] [Ecobee 3 Sensors] [Master Bedroom] [28/01/2024, 13:19:09] [Ecobee 3 Sensors] [Basement] [28/01/2024, 13:19:09] [Ecobee 3 Sensors] [My ecobee] [28/01/2024, 13:19:09] [Ecobee 3 Sensors] Update equipments [28/01/2024, 13:19:09] [Ecobee 3 Sensors] [Ecobee auxHeat1] - false [28/01/2024, 13:19:09] [Ecobee 3 Sensors] [Ecobee fan] - false [28/01/2024, 13:19:09] [Ecobee 3 Sensors] Wait | 30 seconds

Thanks, David