Thanks for providing Nextcloud integration in version 0.108, this is great. Just wondering how I could go about integrating multiple instances into HA, because we have a personal one, one for the sports club and one for the company. So, if each instance could get an ID in the configuration, the sensor could incorporate that ID into its own ID and all should be fine.
i have same problem, need monitor 2 nextcloud instances.
This should be possible but will require some kind of unique identifier for each instance. The configuration could look like:
# Example configuration.yaml entry
nextcloud:
- name: instance_one
url: Https://YOUR_NEXTCLOUD_URL
username: YOUR_USERNAME
password: YOUR_APP_PASSWORD
- name: instance_two
url: Https://YOUR_NEXTCLOUD_URL
username: YOUR_USERNAME
password: YOUR_APP_PASSWORD
Then sensors would need to have a unique id like:
sensor.nextcloud.instance_one.storage_num_files
If i get some time this week i’ll be working on adding some documentation clarifications and functionality to allow configuration via the GUI. I’ll also look into the possibility of adding multiple instances.
@meichthys I’ve tried this but checking configuration complaints with this:
Invalid config for [nextcloud]: expected a dictionary for dictionary value @ data['nextcloud']. Got [OrderedDict([('name', 'myname'), ('url', 'https://cloud.myname.com'), ('username', 'myusername'), ('password', 'mypassword')])]. (See /config/configuration.yaml, line 161).
Sounds like your idea is great, but it’s not yet support. Is that the case?
That’s right. It’s not supported yet but i will be looking at the possibility sometime soon.
Also if you don’t already know about this, you should!
I haven’t had the chance to look at it yet. I’ll put it on my to-do list.
No promises tho.
ok thank you.
I happen to have the same question. Any status update on this?
I filed a Pull Request by today introducing the config flow (configuration via GUI and not via YAML config) and with that multiple instance support.
For those who want to be up to date about this topic, follow the PR:
Add Config Flow to the Nextcloud Integration by devPeete · Pull Request #84610 · home-assistant/core (github.com)