Describe the bug
The Heatstrip convector heater uses ‘level_1’ and ‘level2’ for the Low and High setting on dpRotationSpeed. ConvectorAccessory.js has an Alphanumeric test on line 32 that doesn’t include - so the accessory doesn’t get added.
Expected behavior
Changing the test for CmdLow (and similarly for CmdHigh) to the following allows the ‘level_1’ and ‘level_2’ string to work, and ensures the heater gets added when the plugin initialises.
if (/^[a-z0-9_]+$/i.test(this.device.context.cmdLow)) this.cmdLow = ('' + this.device.context.cmdLow).trim();
Describe the bug The Heatstrip convector heater uses ‘level_1’ and ‘level2’ for the Low and High setting on dpRotationSpeed. ConvectorAccessory.js has an Alphanumeric test on line 32 that doesn’t include - so the accessory doesn’t get added.
Expected behavior
Changing the test for CmdLow (and similarly for CmdHigh) to the following allows the ‘level_1’ and ‘level_2’ string to work, and ensures the heater gets added when the plugin initialises.
if (/^[a-z0-9_]+$/i.test(this.device.context.cmdLow)) this.cmdLow = ('' + this.device.context.cmdLow).trim();