I've been experimenting with devices in order to extend the capabilities of Domoticz a little bit

I could achieve the result by using a LUA script but when trying to do the same in Python something went horribly wrong.
After the Python action the device went missing and when I ask for its status I get:
Code: Select all
{
"ActTime" : 1564516643,
"AstrTwilightEnd" : "01:24",
"AstrTwilightStart" : "01:56",
"CivTwilightEnd" : "22:18",
"CivTwilightStart" : "05:02",
"DayLength" : "15:48",
"NautTwilightEnd" : "23:20",
"NautTwilightStart" : "03:60",
"ServerTime" : "2019-07-30 21:57:23",
"SunAtSouth" : "13:40",
"Sunrise" : "05:46",
"Sunset" : "21:34",
"app_version" : "4.11020",
"status" : "OK",
"title" : "Devices"
}
I discovered that when I ask for the status of a device with an ID that is certainly not in the database I get the same result.
So does this mean the device is erased from the database? If yes, I'm fine with that. If no, how do I remove it completely?
On a side note:
Take a look at the "NautTwilightStart" in the output: the value "03:60" must be some sort of rounding error. Apparently it's supposed to be "04:00", which is about right for my location in this time of the year.