Ok, something definitely weird going on here.
But, I did find one issue. This plugin still used deviceCreted() and was not testing for dev.created. So, when the config dialog first opened it threw an error. I added deviceStartComm() and deleted deviceCreated().
But, when the device is first created, it still throws the errors:
Error device "new device 1" state key humidityInput1 not defined (ignoring update request)
Error device "new device 1" state key humidityInputsAll not defined (ignoring update request)
Error device "new device 1" state key humidityInput1 not defined (ignoring update request)
Those go away after a plugin restart.
In the meantime, to fix an error reported by a user, I commented out the
hvacHeaterIsOn and
hvacCoolerIsOn states from Devices.xml - that fixed the errors he was seeing:
Error (client) illegal state key hvacHeaterIsOn defined by plugin -- native state keys cannot be overriden (ignoring)
Error (client) illegal state key hvacCoolerIsOn defined by plugin -- native state keys cannot be overriden (ignoring)
That fixed his issue.
But, now when I try to create a new thermostat device I get
Error device "new device 1" state key hvacHeaterIsOn not defined (ignoring update request)
Error device "new device 1" state key hvacCoolerIsOn not defined (ignoring update request)
and had to add the states back to Devices.xml.
Very, very odd.