Ok…done quite a few more updates…including a re release of the groovy files…I did have some organically grown bugs on discovering bulbs in the smart app. I have reduced the logging in the server, hope I don’t regret that.
Ah…The ‘Scene’ Setting on the Smart App (which does nothing yet) is mandatory…Ill fix that now, but if you set it to anything it should allow the bulbs to be created
Just pushed another set of changes…Mainly allowing the Transition effects supported by Yeelights to be supported. There are two settings Transition and Transition Speed. Transition can be either smooth or sudden and if smooth…then transition speed should be the number of milliseconds that the relevant action will take.
I am afraid all files changed…so a full release will be needed
Hi @Davec when I try to update the DTH I am given this error:
Org.springframework.dao.DuplicateKeyException: a different object with the same identifier value was already associated with the session: [physicalgraph.device.CapabilityDeviceType#physicalgraph.device.CapabilityDeviceType : (unsaved)]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [physicalgraph.device.CapabilityDeviceType#physicalgraph.device.CapabilityDeviceType : (unsaved)]
Blimey…never seen anything like that before… At what point did you get that? was that when you were saving the devicehandler? Maybe delete it and recreate?
I think it is because the capablities are duplicated - I commented out the duplicates and was able to publish. I’m still trying to discover devices at this moment as just finished setting up the server on my RPi…how long does it usually take to discover the bulbs?
5 mins…you should see the server (syslog) discover them first (Provided the bulbs are in developer mode)
the syslog should look at bit like this
server.js[24149]: onDevConnected: Creating SSDP Server for did=0x00000000035ac1c1 name= MAC=34CE0080E462 location=http://192.168.1.55:8082/light dev location=192.168.1.66:55443
server.js[24149]: onDevConnected: Creating SSDP Server for did=0x00000000035c3205 name= MAC=34CE008254A6 location=http://192.168.1.55:8082/light dev location=192.168.1.67:55443
So I’m starting the server and check status and it looks like it’s active but then checking the status again then shows that it has stopped - any ideas:
I think this is an IDE/Smartthings eccentricity…I suspect your environment has become a little confused. If this was me I would attempt to remove all trace of the yeelight stuff, first make sure there are no devices present (in the device list) then remove the smartapp then the device handler and then restart the hub
Again, if this was me and I still had problems, I would rename the device handler…but this would put me in uncharted territory from a support perspective.
Sorry, I guess I need to add instructions on how to update the device handler and smart app. When I release a new version (of either dh or smarthandler), I go into edit mode on the ide, clear the current code and paste in the new code.
Yikes! ok progress is slow sorry…
can you post the output from yeelight-connect and the smartbulb (using livelogging in the ide)
and also the server log from syslog