dianlight / hassio-addons

Hassio.io
MIT License
139 stars 48 forks source link

πŸ› [Samba NAS] MQTT keeps a USB HDD spinning (prevents sleep) #240

Closed Lukanex closed 2 days ago

Lukanex commented 6 months ago

Addon

SambaNAS

Description

MQTT keeps an external USB HDD spinning (prevents sleep), the sleep works with the MQTT disabled.

Would it be possible to check the free space and other parameters only when the USB drive in not sleeping please?

Reproduction steps

1. Connect a USB external HDD (mechanical) (WD My Book in this case)
2. Enable 'mqtt_enable'
3. Enable 'mqtt_nexgen_entities'
4. save and restart Samba NAS Add-On
5. Observe that the external HDD does not stop spinning the entire day while the sleep timer is set to 10 min.

The same drive goes to sleep correctly with the MQTT disabled ('mqtt_enable' = off)

Addon Logs

Nothing different prints after the add-on starts within or after the sleep period

Addon Config

workgroup: WORKGROUP
username: <******>
password: <******>
allow_hosts:
  - 192.168.0.0/16
automount: true
moredisks:
  - DATA_4TB
mountoptions:
  - nosuid
  - relatime
  - noexec
available_disks_log: true
medialibrary:
  enable: true
veto_files:
  - ._*
  - .DS_Store
  - .Trashes
compatibility_mode: false
recyle_bin_enabled: false
wsdd2: false
mqtt_nexgen_entities: true
autodiscovery: {}
other_users:
  - username: <******>
    password: <******>
  - username: <******>
    password: <******>
acl:
  - share: addon
    disabled: false
    users:
      - <******>
  - share: DATA_4TB
    disabled: false
    users:
      - <******>
interfaces: []
mqtt_use_legacy_entities: false
mqtt_enable: true

Architecture

armv7

OS

HaOS

Lukanex commented 5 months ago

Bump

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Lukanex commented 3 months ago

Hello, could you help me with this one, please?

dianlight commented 2 weeks ago

Hello, have you try the hdd_idle_seconds parameters?

dianlight commented 1 week ago

I release a fixed version in beta channel. Please try and give me a feedback if you issue is resolved

dianlight commented 2 days ago

Closed in ver 12.3.2-nas