I recently started using HA and yesterday I tried to get the synologydsm integration to work.
It works great, except that the update interval is fixed to 15min. I found a thread on Reddit explaining to create a custom_components/ folder and inside that folder a new folder called sensor. Within the sensor folder the synologydsm.py
This didn’t work, probably because the synologydsm structure changed. It’s now synologydsm/sensor.py
I tried both folder structures anyway, but it seems HA is not even noticing the custom_components folder. I’m not seeing any message regarding the override.
I’ve got HA running on a Pi 3. I placed the custom_components folder here: config/custom_components/synologydsm/
I also read that you must include all original files in that folder, even the files you don’t want to change. So these files are in the synologydsm folder: __init__.py manifest.json sensor.py
However, still no luck.
Can anyone help me getting this to work?
All help greatly appreciated!
You can just add scan_interval: and the time in seconds to the SynologyDSM config and it will update as often as you like.
My example (updates every hour):
Fixed it eventually. My failure was that I downloaded the files from github through right mouse button > copy link, and then did a wget on that link via ssh in config/custom_components/synologydsm/
Instead I should have chosen the ‘RAW’ option on github. It opened up a new window, then copied the url and did a wget on that url.
After rebooting HA it showed me the Custom component message in the Log. I then changed the scan interval in the sensor.py file and rebooted again.
Now my Synology sensors refresh every 60 seconds.