2 months ago I made the choice to migrate to HA because of the great customizable interface and flexibility with components. Currently I am still running Domoticz.
Most automation I have migrated and tested on HA. But there is one automation that I cannot fully port to HA.
On Domoticz I have a bash script running that is activated when someone presses my doorbell (433mhz)
Grab camera snapshot
Send it to a Telegram group
Rename the file to snapshot-date/time.jpg
copy this file to a (locally mounted) folder on my Synology NAS.
Delete the file from the SD card.
Taking a snapshot and sending it to Telegram is not the issue, but saving it to my NAS is.
Is there any way to achieve point 4 mentioned above in HASSIO?
Hello.
I am very interested in your work but I cannot configure the ānode-red-contrib-smbā.
My Home assistant is installed on a VMM in my Synology DS916 + NAS.
I want to copy the daily āSnapshotā to a āBackupā directory on my NAS.
Can you give me the details of your āFlowā please.
Best regards
Bruno
Hi Bruno,
I am not sure how this will work with snapshots. I am using the upload to dropbox addon for snapshots.
However, what I do, is get the photo via the IP camera snapshot URL with a HTTP request node. Then I use a function node to format the filename: snapshot_[date-time].jpg and finally I use a SMB create file node to upload it to the correct folder.
Possibly you can do the same thing via the SMB addon.
Could you please specify whatās your exact problem? What is it that you canāt configure in the SMB node?
I have exactely the same need as you and i canāt figure out how to use the SMB node to move the file from the Pi to the NAS.
Up to now, I only manage to create an empty file (1oct) on the NAS with the well formated file name (thanks to msg.filename). But how to pass the .jpg payload? all the example found on internet explain how to pass text payload (.csv JSON etc) but nothing about other file type.
And if I try to use the āmove fileā function instead of ācreate fileā function, I canāt figure out neither how to do it; it seem that the node do not accept Unix path format as an input. Or maybe it is due to the container limitation (docker)?
Well if you could explain how you manage to do it, I would be very gratefull!
I have no experience with moving filesā¦ In my flow I write the foto directly to the file in the share using the create file function. I guess whatās going wrong is that I think that both āPathā variables are pointing to your NAS. So a local path will not work.