Closed RussNelson closed 10 years ago
It looks like I'm doing the same think as (say) the blink1 does. It sets up an 'info' hash/dict (or whatever javascript calls them) with info.deviceType = '/device/lighting/blink1/led'; and then calls devices.discover after it has set devices.makers['/device/lighting/blink1/led'] = Blink1 ......
Oh. Except that I'm NOT setting info.deviceType. I'm doing what the template does, which is to set info.DeviceType to '/device/lighting/LIFX/led' and then ALSO set info.DeviceType to 'LIFX'.
YAY! notice: [devices] adding Office deviceType=/device/lighting/LIFX/led
I'm getting new bulbs found! But I'm getting this message: "warning: [devices] no maker registered for LIFX". I checked and in the start() function, I'm calling devices.discover(info); after I set devices.makers['/device/lighting/LIFX/led'] = LIFX; and info.deviceType = '/device/lighting/LIFX/led'; So I'm not understanding why it's not finding the maker.