Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Fork Unraid API-RE

Featured Replies

Both, disabled in settings and I dont have any

  • Replies 223
  • Views 44.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • @ABEIDO yes, I posted about it earlier.   @Orishas I can double check this

  • Thank you so much for picking up this plugin  I've setup HomeAssistant to get the data, and I just discovered a minor flaw in naming which I think is inconsistent: My server-name is (originall

  • Ive been awaiting somekind of a fix and was glad to see you fork it. So thank you for commiting your time to it.   Ive replaced it now and i have problems with not beeing able to control any

Posted Images

  • Author
3 hours ago, johntdyer said:

Both, disabled in settings and I dont have any

Could you try the following tag: bokker/unraidapi-re:6.12-no-vm 

 

I added the following 2 variables which can be set to false using docker env variables

 

VM_ENABLE, DOCKER_ENABLE

 

image.png.d39b9d54754b99f65417967fe783b3ad.png

 

This should disable VM checking for you. I will have to do more work on it, since I think its possible to have this work just by detecting if the VM tab is available or not in the UI, without using the env variable.

Still getting the error here is my config

 

image.thumb.png.e24486914c6bd2d39b60ffe0149c9f94.png

 

 

image.thumb.png.24f2c262552e4b56cb6aa9622eb29a5e.png

image.png

  • Author
19 minutes ago, johntdyer said:

Still getting the error here is my config

 

image.thumb.png.e24486914c6bd2d39b60ffe0149c9f94.png

 

 

image.thumb.png.24f2c262552e4b56cb6aa9622eb29a5e.png

image.png

Did you change the tag ? 

yes

 

image.thumb.png.dcbbffafb647856bdc8f168811bd00f5.png

  • Author

Could you check if there is an existing vm object in your config/servers.json file? If so could you remove it and restart the container 

hrm, where do I find this file ? 

  • Author

It should be in your appdata or docker folder

/mnt/user/appdata/Unraid-API/servers.json

 

```

{
    "https://unraid.xxxxx.xxxxx": {
        "serverDetails": {
            "arrayStatus": "Started",
            "moverRunning": true,
            "parityCheckRunning": true,
            "title": "vault",
            "cpu": "Common KVM  @ 2000 MHz",
            "memory": "32 GiB RAM Multi-bit ECC ",
            "motherboard": "  ",
            "diskSpace": "24.1 TB used of 58 TB (41.5 %)",
            "cacheSpace": "26.6 GB used of 265 GB (10.0 %)",
            "version": "6.12.3",
            "arrayUsedSpace": "24.1 TB",
            "arrayTotalSpace": "58 TB",
            "arrayFreeSpace": "33.9 TB",
            "cacheUsedSpace": "26.6 GB",
            "cacheTotalSpace": "265 GB",
            "cacheFreeSpace": "238.4 GB",
            "on": true
        },
        "docker": {
            "details": {
                "images": {
                    "245078241b19": {
                        "imageUrl": "/webGui/images/disk.png",
                        "imageId": "245078241b19",
                        "created": "Created 2 days ago"
                    },
                    "2ddd2e111d89": {
                        "imageUrl": "/webGui/images/disk.png",
                        "imageId": "2ddd2e111d89",
                        "created": "Created 2 days ago"
                    },
                    "df91f6deadde": {
                        "imageUrl": "/webGui/images/disk.png",
                        "imageId": "df91f6deadde",
                        "created": "Created 1 year ago"
                    },
                    "2154b5734a30": {
                        "imageUrl": "/webGui/images/disk.png",
                        "imageId": "2154b5734a30",
                        "created": "Created 1 year ago"
                    }
                },
                "containers": {
                    "f2cbb7d93588": {
                        "imageUrl": "/state/plugins/dynamix.docker.manager/images/proxmox-backup-server-icon.png",
                        "name": "proxmox-backup-server",
                        "status": "stopped",
                        "containerId": "f2cbb7d93588",
                        "tag": "v2.3.2",
                        "uptoDate": "up-to-date"
                    },
                
                    "ac662b94a351": {
                        "imageUrl": "/state/plugins/dynamix.docker.manager/images/Unraid-API-RE-icon.png",
                        "name": "Unraid-API-RE",
                        "status": "started",
                        "containerId": "ac662b94a351",
                        "tag": "6.12-no-vm",
                        "uptoDate": "up-to-date"
                    }
                    
                }
            }
        },
        "vm": {
            "details": {}
        },
        "pciDetails": [],
        "status": "offline",
        "usbDetails": []
    }
}

```

On 8/15/2023 at 4:54 PM, BoKKeR said:

Yes, just how the original repo worked 

Fair enough, good job. It's a pity that there isn't an actual API for Unraid. :(

On 8/13/2023 at 8:44 PM, BoKKeR said:

Do you get the free space data in the unraid-api dashboard? I will have to look into mqtt grouping.

 

image.thumb.png.ce70a6091e3721237270522094fdeeac.png

yes i do friend

874467304_Screenshot2023-08-17at23_06_43.thumb.png.41aa72c8f449eb7cff8bf044186d9ce2.png

 

  • Author
On 8/15/2023 at 10:59 PM, johntdyer said:

Still getting the error here is my config

 

image.thumb.png.e24486914c6bd2d39b60ffe0149c9f94.png

 

 

Sorry, I accidentally wrote the wrong variable in the code, if you update the container it should work as expected

 

EDIT: you can switch back to 6.12, and remove the env variables, it should work without them

Edited by BoKKeR

  • Author

I have pushed an update which should group all docker devices under a single mqtt entity and the unraid server info. There will be another entity for each VM and VM USB device

Edited by BoKKeR

On 7/28/2023 at 1:07 PM, valiente said:

I just updated and still seeing my HA logs spiking:

 

Logger: homeassistant
Source: helpers/entity_platform.py:750
First occurred: 12:51:59 (781 occurrences)
Last logged: 13:05:25

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 504, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    raise HomeAssistantError(f"Invalid entity ID: {entity.entity_id}")
homeassistant.exceptions.HomeAssistantError: Invalid entity ID: binary_sensor.brute_vm_home_assistant_usb_nbsp_nbsp_nbsp_nbsp_nbsp_nbsp_nbsp_input_type_checkbox_name_usbopt_0463_ffff_id_usbopt0_value_0463_ffff_nbsp_nbsp_nbsp_nbsp_nbsp_input_type_number_size_5_maxlength_5_id_usbboot0_class_narrow_bootorder_style_width_

 

Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:750
Integration: Binary Sensor (documentation, issues)
First occurred: 12:51:59 (461 occurrences)
Last logged: 13:07:22

Error adding entities for domain binary_sensor with platform mqtt
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 504, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    raise HomeAssistantError(f"Invalid entity ID: {entity.entity_id}")
homeassistant.exceptions.HomeAssistantError: Invalid entity ID: binary_sensor.brute_vm_home_assistant_usb_nbsp_nbsp_nbsp_nbsp_nbsp_nbsp_nbsp_input_type_checkbox_name_usbopt_0463_ffff_id_usbopt0_value_0463_ffff_nbsp_nbsp_nbsp_nbsp_nbsp_input_type_number_size_5_maxlength_5_id_usbboot0_class_narrow_bootorder_style_width_

 

781 entries in 15 minutes...

 

image.thumb.png.e3fb2c7c19edaf3cbebb957f04237d92.png

Any updates on this?

 

Just checked my HA logs and found this:

Logger: homeassistant

Source: helpers/entity_platform.py:712

First occurred: 20 August 2023 at 19:45:06 (40192 occurrences)

Last logged: 19:16:42

 

Error doing job: Task exception was never retrieved

Traceback (most recent call last):

  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities

    await asyncio.gather(*tasks)

  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 712, in _async_add_entity

    raise HomeAssistantError(f"Invalid entity ID: {entity.entity_id}")

homeassistant.exceptions.HomeAssistantError: Invalid entity ID: binary_sensor.brute_vm_home_assistant_usb_nbsp_nbsp_nbsp_nbsp_nbsp_nbsp_nbsp_input_type_checkbox_name_usbopt_0463_ffff_id_usbopt0_value_0463_ffff_nbsp_nbsp_nbsp_nbsp_nbsp_input_type_number_size_5_maxlength_5_id_usbboot0_class_narrow_bootorder_style_width_

 

  • Author

@valiente Can you try this docker tag: bokker/unraidapi-re:6.12-usb-device-name

Edited by BoKKeR

Hi,

first of all thanks to @BoKKeR for supporting this API again.
I just have a minor problem that when I shutdown UNRAID via the MQTT power_off switch it changes from the state on: true to on: false for a short time and directly back to on:true.
Means that the last MQTT state in Home Assistant is on:true and my POWER ON / OFF script does not work because there is a condition that checks if UNRAID is on or off state. Does anyone else have this problem?

Thanks
 

 

1 hour ago, Orishas said:

Hi,

first of all thanks to @BoKKeR for supporting this API again.
I just have a minor problem that when I shutdown UNRAID via the MQTT power_off switch it changes from the state on: true to on: false for a short time and directly back to on:true.
Means that the last MQTT state in Home Assistant is on:true and my POWER ON / OFF script does not work because there is a condition that checks if UNRAID is on or off state. Does anyone else have this problem?

Thanks
 

 

 

Not happening for me atleast. 

 

 

 

@BoKKeR

 

Have you added that all mqtt devices (dockers) ends up under the same device in HA? It seems that everything is moved under the same roof now.

 

i couldnt find any release info abou but if so, awsome job!

  • Author

@ABEIDO yes, I posted about it earlier.

 

@Orishas I can double check this

Hi @BoKKeR my Problem is solved it was an Home Assistant MQTT Bug wich is solved in the new beta 2023.9.0b
Thank you

  • 2 weeks later...

Hey, thanks for continuing this project!

 

One Question: After restarting HA the entities of unraid goes unknown until I restart the api docker. Is there a fix for this?

  • Author
2 hours ago, ZynanBob said:

Hey, thanks for continuing this project!

 

One Question: After restarting HA the entities of unraid goes unknown until I restart the api docker. Is there a fix for this?

 

I created a fix for this, could you try it by changing your docker tag from bokker/unraidapi-re:6.12 to bokker/unraidapi-re:6.12-retain

On 9/14/2023 at 11:51 AM, BoKKeR said:

 

I created a fix for this, could you try it by changing your docker tag from bokker/unraidapi-re:6.12 to bokker/unraidapi-re:6.12-retain

Hi,

 

i tested this release it fixes problem that the entity becomes unavailable after a HA restart, but now it always retains the status on:true

5 hours ago, Orishas said:

Hi,

 

i tested this release it fixes problem that the entity becomes unavailable after a HA restart, but now it always retains the status on:true

 

I tested it to but and the issues with unavailabe after HA restart seems fixed. What do you mean by that it retains statsus on:true?

Another reflection i had was the Shutdown, Reboot and Parity Check actions should be set as buttons and not as switches which they are now. Or am i missing something?

Edited by ABEIDO

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.