JQuery call oneditprepare overwrites all initval with a specified default value. Hence, there is no initvalue but i.e. true in the relevant field. The problem is, if the node is dragged from the palette to the drawboard and immediately deployed (without ever opening the configuration), initval is set for those parameters using this mechanism, as oneditprepare has never been executed.
JQuery call
oneditprepare
overwrites allinitval
with a specified default value. Hence, there is noinitvalue
but i.e.true
in the relevant field. The problem is, if the node is dragged from the palette to the drawboard and immediately deployed (without ever opening the configuration),initval
is set for those parameters using this mechanism, asoneditprepare
has never been executed.Originally posted by @Kilill in https://github.com/danube/node-red-contrib-smarthome-powerswitch/issues/13#issuecomment-1837153017