Code Monkey home page Code Monkey logo

Comments (12)

ttaidapos avatar ttaidapos commented on June 24, 2024 1

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.

BebeMischa avatar BebeMischa commented on June 24, 2024

image

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.

ttaidapos avatar ttaidapos commented on June 24, 2024

image

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.

BebeMischa avatar BebeMischa commented on June 24, 2024

ok, then I don't know, wait for the devs... ;-)

from homeassistant-openmediavault.

tomaae avatar tomaae commented on June 24, 2024

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.

ttaidapos avatar ttaidapos commented on June 24, 2024

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.

tomaae avatar tomaae commented on June 24, 2024

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.

ttaidapos avatar ttaidapos commented on June 24, 2024

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.

jes1417 avatar jes1417 commented on June 24, 2024

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.

tomaae avatar tomaae commented on June 24, 2024

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.

ttaidapos avatar ttaidapos commented on June 24, 2024

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
image

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.

tomaae avatar tomaae commented on June 24, 2024

nice :)

from homeassistant-openmediavault.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.