-
Notifications
You must be signed in to change notification settings - Fork 283
Description
Issue does not already exist?
I have searched and found no existing issue
Select Environment
Docker
Home Assistant related?
No
Description
Hi,
Not really a bug per se, but a bad practice to me.
Over the past two days of discovering and testing diyHue, I experimented with various settings and devices.
However, I couldn't understand why my changes were sometimes reflected in the configuration files and other times not... especially when I was trying to verify whether my modifications had actually been applied due to some odd behavior.
This also led to lost modifications whenever I restarted either diyHue itself or HAOS.
After some investigation, I finally realized that the configuration files are only updated once every hour, on the hour (1:00, 2:00, ...).
I later discovered the Force Config Dump option in the Bridge Control area, but honestly, it doesn’t make sense not to save the configuration immediately.
Configuration files should be updated as soon as a change is made to prevent any data loss.
That said, I’m unsure about automatically saving on app shutdown. At times, it's been necessary for me to restart the app to reload a manually modified configuration file. In that case, an automatic save would have overwritten those manual changes.
Perhaps you could add a Force Config Reload button in the Bridge Control area? Similar to how HA allows reloading its YAML files.
That would be a nice solution, and would mean the app saves automatically on shutdown, which would be a good practice.
Let me know your thoughts!
Regards.
Errorlog:
N/A
Steps to reproduce
N/A
Please enter your operating system details here
Hue-Emulator Version: 2025-03-15 14:15:43.000000000
WebUI Version: 2025-03-15 14:15:45.000000000
Architecture: x86_64
OS: Linux
Linux version: #1 SMP PREEMPT_DYNAMIC Mon Mar 17 11:16:31 UTC 2025
Linux release: 6.12.18-haos
Upload debug tar
N/A
What DiyHue version(branch) are you using?
master (latest)