This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
Finding out when a users deletes a device
This discussion has been closed.
Comments
module.exports.deleted = function( device_data ) { // run when the user has deleted the device from Homey }
module.exports.deleted (doesn't do anything)
module.exports.delete (in case the above was a typo..)
socket.on('delete')
socket.on('delete_device')
socket.on('delete_devices');
socket.on('deleted')
socket.on('device_delete')
socket.on('devices_delete')
socket.on('devices_deleted')
socket.on('device_deleted')
(and I'm probably missing a few)..
And many more things (hooking into the driver events directly etc).
So before I raise an Issue in Github, I'm trying to find out if anyone as ever gotten the documented methods to work.
Its just like documented:
deleted: function (device, callback) {
In my driver.js I now put the simplest of examples:
NOTHING logged in the output. I don't get it..
What version are you guys on? I'm on 0.8.29..
I didn't have the callback() in init()... Once I put it there, the deleted started working.... Right..
Thanks guys!