ioBroker.javascript
ioBroker.javascript copied to clipboard
New sayit instance does not react to script
I added a new sayit instance, but the voice output does not work with the new device. If I delete the command for the voice output, save the script, add the command again and save the script, the device speaks.
Imho this can only be due to the javascript adapter.
Ok, honestly ... if you would be the developer ... what would you do with such a report? Please provide much more etails like your config, how the script works and such. Give us context please!!
Ok, you're right.
My config: js-controller: 4.0.23 Admin adapter: 5.3.8 SayIt adapter: 1.12.3 Stable repository Node.js: 14.20.0 npm: 6.14.17
The error occurs in any existing script with Sayit devices (all instances).
If the voice output block is renewed (delete, save, insert, save) the script works with the newly added devices. New scripts work immediately.
It looks like all instances will capture and save the currently present devices when the script is first saved. Newly added devices are ignored.
Sotrry, but what kind of scripts you mean? Can you please show such a script? How sayit is configured?
It's blockly script

And here's the code:

It would be nice not to have to change the code afterwards after adding new devices. Depending on the number, this is a time-consuming procedure.
Configuration of sayit:

It would be nice not to have to change the code afterwards after adding new devices. Depending on the number, this is a time-consuming procedure.
This is a feature request for the sayIt adapter to implement the blockly code via sendTo instead of multiple setState.