vervallsweg / cast-web-api

Quick and dirty web API for Google Cast enabled devices.
GNU General Public License v3.0
141 stars 74 forks source link

Unable to add devices : Bad state (deviceNetworkId unique error) #86

Closed kurtwarwick closed 5 years ago

kurtwarwick commented 5 years ago

Hi

I have been trying to use this awesome DH for ST, but I seem to always get stuck at the same place. I can successfully add the SmartApp and save it without adding devices, and I am also able to discover devices, but if I try to select a device I see the following in the Logs in the ST Graph API:

9:16:52 PM: error grails.validation.ValidationException: Validation Error(s) occurred during save(): Field error in object 'physicalgraph.device.Device' on field 'deviceNetworkId': rejected value [B---------4]; codes [physicalgraph.device.Device.deviceNetworkId.unique.error.physicalgraph.device.Device.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.error.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.error.java.lang.String,physicalgraph.device.Device.deviceNetworkId.unique.error,device.deviceNetworkId.unique.error.physicalgraph.device.Device.deviceNetworkId,device.deviceNetworkId.unique.error.deviceNetworkId,device.deviceNetworkId.unique.error.java.lang.String,device.deviceNetworkId.unique.error,physicalgraph.device.Device.deviceNetworkId.unique.physicalgraph.device.Device.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.deviceNetworkId,physicalgraph.device.Device.deviceNetworkId.unique.java.lang.String,physicalgraph.device.Device.deviceNetworkId.unique,device.deviceNetworkId.unique.physicalgraph.device.Device.deviceNetworkId,device.deviceNetworkId.unique.deviceNetworkId,device.deviceNetworkId.unique.java.lang.String,device.deviceNetworkId.unique,unique.physicalgraph.device.Device.deviceNetworkId,unique.deviceNetworkId,unique.java.lang.String,unique]; arguments [deviceNetworkId,class physicalgraph.device.Device,B---------4]; default message [{0} must be unique] @line 126 (addDevices) 9:16:52 PM: debug getChildDevices(false), children=0 9:16:52 PM: debug No cast-web-api installed

Any ideas as to what may be causing this?

Thanks!

kurtwarwick commented 5 years ago

Found others had the same issue in the thread and got it sorted out. It was because I had a bridge installed with the the same networkid.