Try the revised script.
openweathermap_weatheridfix.plugin (8.9 KB)
It was lines 61, 101, & 125 that was breaking it. Those were overwriting the device object Id
. That is reserved & should not be written to in a plugin. I changed the Id
attribute that was being used to WeatherId
. Everything should work again once you load the new script.
Old
currentlyDevice.Id = currently.weather[0].id;
dayDevice.Id= dayData.weather[0].id;
dayDevice.Id= null;
New
currentlyDevice.WeatherId = currently.weather[0].id;
dayDevice.WeatherId= dayData.weather[0].id;
dayDevice.WeatherId = null;