SynologyDSM Sensor errors

When using the SynologyDSM sensor, I get an error when trying to use the “volume_disk_temp_avg” monitored condition. With that commented out the other conditions update properly, but with that in I get:

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 268, in _async_add_entity
    yield from entity.async_update_ha_state()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 215, in async_update_ha_state
    state = self.state
  File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/synologydsm.py", line 228, in state
    return round(attr * 1.8 + 32.0, 1)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Here is the code for my sensor:

- platform: synologydsm
  host: !secret host
  username: !secret username
  password: !secret password
  monitored_conditions:
    - cpu_total_load
    - memory_real_usage
    - network_up
    - network_down
    - cpu_15min_load
    - volume_percentage_used
    - volume_disk_temp_avg
    - volume_disk_temp_max

I am experiencing the same exact issue. The only condition that is affected is volume_disk_temp_avg. Have you had any success in resolving that issue? I find it to be more useful than the volume_disk_temp_max option. Here is the error that I get repeatedly when volume_disk_temp_avg is enabled:

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity.py", line 208, in async_update_ha_state
    state = self.state
  File "/usr/src/app/homeassistant/components/sensor/synologydsm.py", line 228, in state
    return round(attr * 1.8 + 32.0, 1)
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Nope, I never found a solution. It actually spurred me to look into Grafana for monitoring my Synology. There wasn’t even any replies to my github issue.

lets bump this then :wink:
I have related errors on
volume_disk_temp_avg and on volume_disk_temp_max:

47

Average always shows as Unknown, Max always 0 degrees.

no errors in the log though.

same here. volume_disk_temp_max gives 0 always

Did anyone ever resolve this? I have the same issue with sensors showing unknown and no errors in the log. Wondering if it is a synology permission issue with the user I set up…

yes this was all solved a few version ago (now on 105.5)

what’s your issue, see any errors in the log, got any sensors at all? which HA version are you running?

The sensors appear but they all have unknown next to them. I’m running Core 0.106.1, the only log I can see is

Update of sensor.synology_ds216j_memory_usage_real is taking over 10 seconds.

Any pointers would be great?

all I can see is it works as expected on my side.

turn on debug for the integration in the logger and see what the log tells you?

Having the same issue: all sensors are showing “unknown”. No errors in the log.