Comments (12)
ok, then I don't know, wait for the devs... ;-)
Thanks for trying though! Appreciate the quick response :) I'm sure i'm doing something wrong.
from homeassistant-openmediavault.
In this,
Host is the IP address of your OMV server. Most likely not the one from the example. You need to enter correct IP of your OMV server.
from homeassistant-openmediavault.
In this,
Host is the IP address of your OMV server. Most likely not the one from the example. You need to enter correct IP of your OMV server.
I do enter correct information, the screenshot I included is to note how the field names are not shown and only json code is. Please note that the integration configures successfully, I'm just not able to see any values to any sensors (2nd screenshot).
from homeassistant-openmediavault.
ok, then I don't know, wait for the devs... ;-)
from homeassistant-openmediavault.
Can you check your HA log? There should be more info.
Missing references for language file is weird tho. Never seen that happen.
from homeassistant-openmediavault.
Hopefully I did the debug correctly :)
2021-11-10 09:01:35 DEBUG (SyncWorker_9) [custom_components.openmediavault.helper] Processing source [{'ts': 1636556495, 'time': 'Wed 10 Nov 2021 09:01:35 AM CST', 'hostname': 'OMVnas'}]
2021-11-10 09:01:35 DEBUG (SyncWorker_9) [custom_components.openmediavault.helper] Processing entry {'ts': 1636556495, 'time': 'Wed 10 Nov 2021 09:01:35 AM CST', 'hostname': 'OMVnas'}
2021-11-10 09:01:35 INFO (SyncWorker_3) [googleapiclient.discovery] URL being requested: GET
2021-11-10 09:01:38 DEBUG (SyncWorker_6) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.50.99 query: FileSystemMgmt, enumerateFilesystems, {}, {'updatelastaccess': False}
2021-11-10 09:01:38 DEBUG (SyncWorker_6) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.50.99 query response: {'response': None, 'error': {'code': 0, 'message': 'Invalid context role.', 'trace': "OMV\\HttpErrorException: Invalid context role. in /usr/share/php/openmediavault/rpc/serviceabstract.inc:212\nStack trace:\n#0 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(68): OMV\\Rpc\\ServiceAbstract->validateMethodContext(Array, Array)\n#1 [internal function]: Engined\\Rpc\\OMVRpcServiceFileSystemMgmt->enumerateFilesystems(Array, Array)\n#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('enumerateFilesy...', Array, Array)\n#4 /usr/sbin/omv-engined(537): OMV\\Rpc\\Rpc::call('FileSystemMgmt', 'enumerateFilesy...', Array, Array, 1)\n#5 {main}"}}
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.sensor] Updating sensor OMVnas-system_cpuUsage
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.sensor] Updating sensor OMVnas-system_memUsage
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.sensor] Updating sensor OMVnas-system_uptimeEpoch
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] Updating binary_sensor OMVnas-system_pkgUpdatesAvailable
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] Updating binary_sensor OMVnas-system_rebootRequired
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] Updating binary_sensor OMVnas-system_configDirty
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.sensor] New sensor OMVnas (system_cpuUsage)
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.sensor] New sensor OMVnas (system_memUsage)
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.sensor] New sensor OMVnas (system_uptimeEpoch)
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] New sensor OMVnas (system_pkgUpdatesAvailable)
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] New sensor OMVnas (system_rebootRequired)
2021-11-10 09:01:41 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] New sensor OMVnas (system_configDirty)
2021-11-10 09:02:40 DEBUG (SyncWorker_11) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.50.99 query: System, getInformation, {}, {'updatelastaccess': False}
2021-11-10 09:02:40 DEBUG (SyncWorker_11) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.50.99 query response: {'response': {'ts': 1636556560, 'time': 'Wed 10 Nov 2021 09:02:40 AM CST', 'hostname': 'OMVnas'}, 'error': None}
2021-11-10 09:02:40 DEBUG (SyncWorker_11) [custom_components.openmediavault.helper] Processing source [{'ts': 1636556560, 'time': 'Wed 10 Nov 2021 09:02:40 AM CST', 'hostname': 'OMVnas'}]
2021-11-10 09:02:40 DEBUG (SyncWorker_11) [custom_components.openmediavault.helper] Processing entry {'ts': 1636556560, 'time': 'Wed 10 Nov 2021 09:02:40 AM CST', 'hostname': 'OMVnas'}
2021-11-10 09:02:40 DEBUG (SyncWorker_2) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.50.99 query: FileSystemMgmt, enumerateFilesystems, {}, {'updatelastaccess': False}
2021-11-10 09:02:40 DEBUG (SyncWorker_2) [custom_components.openmediavault.omv_api] OpenMediaVault 192.168.50.99 query response: {'response': None, 'error': {'code': 0, 'message': 'Invalid context role.', 'trace': "OMV\\HttpErrorException: Invalid context role. in /usr/share/php/openmediavault/rpc/serviceabstract.inc:212\nStack trace:\n#0 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(68): OMV\\Rpc\\ServiceAbstract->validateMethodContext(Array, Array)\n#1 [internal function]: Engined\\Rpc\\OMVRpcServiceFileSystemMgmt->enumerateFilesystems(Array, Array)\n#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('enumerateFilesy...', Array, Array)\n#4 /usr/sbin/omv-engined(537): OMV\\Rpc\\Rpc::call('FileSystemMgmt', 'enumerateFilesy...', Array, Array, 1)\n#5 {main}"}}
2021-11-10 09:02:40 DEBUG (MainThread) [custom_components.openmediavault.sensor] Updating sensor OMVnas-system_cpuUsage
2021-11-10 09:02:40 DEBUG (MainThread) [custom_components.openmediavault.sensor] Updating sensor OMVnas-system_memUsage
2021-11-10 09:02:40 DEBUG (MainThread) [custom_components.openmediavault.sensor] Updating sensor OMVnas-system_uptimeEpoch
2021-11-10 09:02:40 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] Updating binary_sensor OMVnas-system_pkgUpdatesAvailable
2021-11-10 09:02:40 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] Updating binary_sensor OMVnas-system_rebootRequired
2021-11-10 09:02:40 DEBUG (MainThread) [custom_components.openmediavault.binary_sensor] Updating binary_sensor OMVnas-system_configDirty```
from homeassistant-openmediavault.
it does not capture the issue you have. But there seems to be an error when enumerating filesystem.
"Invalid context role"
This would mean that user does not gave OMV administrator role.
I would guess, it is the same issue that is causing other blank sensors.
from homeassistant-openmediavault.
it does not capture the issue you have. But there seems to be an error when enumerating filesystem. "Invalid context role" This would mean that user does not gave OMV administrator role. I would guess, it is the same issue that is causing other blank sensors.
Thanks! Any idea what specific permissions the account needs to have in omv? I assumed since I was able to setup the integration I was ok. Any idea why during the setup I'm seeing JSON variables vs. field names?
from homeassistant-openmediavault.
it does not capture the issue you have. But there seems to be an error when enumerating filesystem. "Invalid context role" This would mean that user does not gave OMV administrator role. I would guess, it is the same issue that is causing other blank sensors.
Thanks! Any idea what specific permissions the account needs to have in omv? I assumed since I was able to setup the integration I was ok. Any idea why during the setup I'm seeing JSON variables vs. field names?
I am seeing the same weird text on my instance as well
from homeassistant-openmediavault.
For API access needed by integration, it has to be "OMV_ADMINISTRATOR_ROLE".
Not sure about those variables. Those are references to build in values in HA. Looks like something messed up in your install.
from homeassistant-openmediavault.
k finally got this to work, still get goofy json showing in the add integration but it's working. Tried reinstalling hacs and omv integration but same issue. Whatever blah
Here are the perms you need in OMV
After perms are set and applied in omv you'll need to delete "sudo rm .omv_cookies.json" in hass. Then add your integration and wala.
P.S I'm guessing something changed in a OMV update with the permissions because this was working for me for a long time.
from homeassistant-openmediavault.
nice :)
from homeassistant-openmediavault.
Related Issues (20)
- [Bug] "Ignoring invalid device info" with homeassistant 2023.8.x HOT 2
- [Bug] When OMV Instance is unreachable, this integration makes HA hang on bootup HOT 2
- [Bug] OMV 6.7 has modified the cpu load, which cannot be displayed now HOT 8
- After upgrade of Home Assistant Core to latest version integration stopped working HOT 15
- CPU stuck at 0% on 1.4.2 update version HOT 1
- [Bug] All multiple OMV instances share the Services device, giving errors HOT 1
- [Bug] Entity names are generic, do not match device overview page. HOT 4
- [Bug] OMV Integration gives "Unknown error occurred" when trying to add the integration after instalation. HA 23.11 + OMV6 HOT 3
- [Bug] Error 500 on SMART attributes HOT 16
- [Feature] Enable configuration of port of the webgui HOT 3
- [Bug] - CPU load and System wlanRX and TX doesn't have data HOT 8
- Change the way the Disk sensors are created in HA [Feature] HOT 6
- Sensors not working with SMART enabled [Bug] HOT 15
- [Bug] Cannot add OMV integration. Error! HOT 5
- [Lokalise] Add new translations language HOT 2
- [Bug]Doesn't work with OMV in NanoPC T6 (FriendlyElec) HOT 11
- [Bug] Entities unavailable HOT 10
- [Bug] HA integration is not working with OMV 7 HOT 14
- Prevents disk spindown on Raspberry Pi 4.
- Prevents disk spindown on Raspberyy Pi 4 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-openmediavault.