Removing and re-adding doesn't do the trick either. How did you guys swap out stephack's driver for the new built in driver? Completely remove stephack's driver code first?
So the first time I did this, I removed all my child components first and it worked fine.
I just did my Bedroom fan and it seemed to work as well..however it only created the fan component. I had to turn the component feature Off and then On again and then both component devices appeared.
What steps did you take initially before choosing the new driver? Did you remove the component devices first..are the component devices from my driver still listed?
Interesting, I can't remove the children. The "Remove" button is pink (greyed out red if you will) and I get the "ghostbusters" sign when I hover over it.
I've tried changing the driver on the parent, it keeps the old children. I've tried deleting the parent completely and that deletes the children. However when I try to add device it defaults to your driver to add it back and when added the children are already there.
I had to change one bit of code to allow manual deletion of the components first. It doesn't seem to matter anyway because I tried it again with another fan without removing the components and it worked.
This probably works like ST and defaults to a User driver over the built in driver if both are present for a device.
Delete the fan completely again.
Then delete my driver.
Re-pair the device.
There is probably a simpler way, but I'm pretty sure this would works. I personally hate completely removing these controllers because they can be so difficult to re-pair
If you want to try to delete the component devices first. Change the following on lines 129 and 141 of the fan controller parent driver:
Change isComponent: true to false.
You should now be able to delete the component devices.
Yes, I forgot that step.
Sorry you are having this issue, but that's all I can think of right now. If something else puts in my head I'll shoot you a message. Good luck.
Took the plunge... Whacked all 4 fans... Removed stephack drivers... Added all 4 fans back. STILL can't turn on the "will create two additional devices" switch.
I have "Enable debug logging" on for the parent device. Nothing at all shows up in logs when I save the parent with the "create two additional devices" switch "on".
If a child device is set "component=true" you can only delete if via the parent device.
As for the built in driver, like all drivers there are two "Save" buttons. If you turn on the "create additional devices" toggle you need to click the first save button in the that preferences section. Not the save in the section name section below.
This should create two devices with the same DNI name as the parent device but with a "-Light" and a "-Fan" and a display name of the parent device name with a " Fan" and " Light" added.