[APP][Pro] Synology

Problem is solved!
For some reason the ip adress of my Homey was set on the blacklist on my NAS.
Removed the ip adress from the blacklist and added it to the Whitelist and all is working again.

Can’t check the script now because my NAS is set to off (at work right now). So on/off setting is working again.

Because of many DOS attacks lately I have set it to go to the blacklist after one wrong password. Must be related to this but can’t happen no more, I think/hope.

Thanks for thinking with me.

This also solved my FTP client issue :blush:

1 Like

Nice ! :smiley:

Hi again Martijn,

I still notice that the CPU usage (14 days old value) and disk usage (7 months old value) don’t get updated. When I check my NAS, the disk usage has a different value that the app is showing. Any idea?

@Bert_Wissink
Can you do a update data and send a report after that?

Here you go

9cc6566b-c641-480a-85f2-65f8f0b7a99c

@Bert_Wissink I checked the logs, but according to the API you synology is at 100% CPU.

 "cpu": {
      "15min_load": 249,
      "1min_load": 289,
      "5min_load": 265,
      "device": "System",
      "other_load": 35,
      "system_load": 8,
      "user_load": 57
    },

The app calculates it as follows:

other_load + system_load + user_load = 100

@Bert_Wissink for the disk_usage:

vol_info: [
    {
      desc: '',
      inode_free: '121078714',
      inode_total: '121798656',
      name: 'volume_1',
      status: 'normal',
      total_size: '1964237742080',
      used_size: '1578918449152',
      volume: 'volume_1'
    }
  ],

The app calculates it as follows:

(used_size / total_size) * 100

Thanks for checking this, Martijn!
I will have a look into my NAS itself to validate if those numbers are in synch with those.
Thanks!

1 Like

I created a flow to turn off my NAS in the night, and back on in the morning. The off-flow works without any issues, but not the on-flow. And I cannot turn it on using the button in the app neither.
It reports I have to wait up to 10 minutes, before the NAS is shown as ON. But before it gets to that, it shows as OFF again, and nothing else happens.

@Daniel_Aaborg did you enable WOL on your NAS?

Make sure you have enabled WOL in your NAS.

DSM → control panel → hardware & power → WOL on lan 1

If you want to use WOL. You can find the mac address here:

DSM → control panel → info center → network → Lan 1 → mac address.

Fill this mac address in the device settings in Homey

@martijnpoppen , may I ask, is the REBOOT button really REBOOT or it’s Shutdown ? I realized already twice that I had to send “Wake-up” (via ON - works fine) call to my Synology to get again operational… I think in both cases I was waiting like 5 or 10 min. Would debug logs make any sense next time ? Not sure…

When using Homey to “reboot button” from your app

When doing Reboot from DSM :

@Sharkys it should really reboot. It uses the reboot function from the API

Thank you Martijn, it’s weird, because in log under given Homey user, I see it initiated shutdown… ?
Now I tested again - I wait 5min, then I had to do WOL.

adb37a9f-5e4d-486b-90d8-170d42457833

I’m using DSM 7.1.1-42962 Update 5 on DS220+

1 Like

Will check with DSM 7 :slight_smile:

1 Like

Sorry if its already done/supoorted or answered.

Will/Does it support SRM of the synology routers (please) ?

I Would like to be able to (re)start and monitor my router from my Homey Pro 23

1 Like

@DoctorBazinga no it doesnt.
Not sure if i’ll implement that. Got the request only 2 times. So not sure about that.

Depends on the amount of users who want this :wink:

1 Like

Can I maybe persuade you with some cup of Coffees or Cans of beer ?? :wink:

@DoctorBazinga
[PayPal.Me] :wink::wink:

But i think that Martijn needs more requests.

1 Like

Hi @martijnpoppen what I’ve noticed for a while when I turn my nas on or off is the double notifications and illogical notifications.

When I turn it on, I see that the nas is turned on and turned off again a minute later, after which it is turned on again.
Same thing when powering off but off on off.

In practice this is not the case at all so the question is why does the log see it differently?

f66dbed5-23ca-451a-aa35-a54eaf93aece

Thanks

Hey @Heula (English topic :wink: )

Hmm only thing what i can think of. Homey can’t really see if the NAS is booting or not. There’s a timer which checks every now and then if it is up again.

I think that’s why it flashes. For Reboot I have some logic in place, but for turning on not really.

So what happens:

  • send turn on
  • homey checks status
  • nas is booting, but not up
  • status will be OFF
  • when NAS is up, status will change to ON.