ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

New sayit instance does not react to script

Open meistermopper opened this issue 3 years ago • 5 comments

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.

meistermopper avatar Jul 17 '22 06:07 meistermopper

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!!

Apollon77 avatar Jul 17 '22 07:07 Apollon77

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.

meistermopper avatar Jul 17 '22 07:07 meistermopper

Sotrry, but what kind of scripts you mean? Can you please show such a script? How sayit is configured?

Apollon77 avatar Jul 17 '22 08:07 Apollon77

It's blockly script

grafik

And here's the code:

grafik

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: grafik

meistermopper avatar Jul 17 '22 08:07 meistermopper

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.

klein0r avatar Jul 17 '22 14:07 klein0r