Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after update to 1.7.2, sayit "doorbell script" doesn't work anymore #30

Closed
Qlink84 opened this issue Jul 23, 2018 · 4 comments
Closed

Comments

@Qlink84
Copy link

Qlink84 commented Jul 23, 2018

here is the error log:
host.iobroker 2018-07-23 08:24:37.347 error instance system.adapter.sonos.0 terminated with code 0 (OK) Caught 2018-07-23 08:24:37.347 error by controller[0]: at Timer.listOnTimeout (timers.js:290:5) Caught 2018-07-23 08:24:37.347 error by controller[0]: at tryOnTimeout (timers.js:323:5) Caught 2018-07-23 08:24:37.347 error by controller[0]: at ontimeout (timers.js:508:15) Caught 2018-07-23 08:24:37.347 error by controller[0]: at Timeout.playOnSonos [as _onTimeout] (C:\ioBroker\node_modules\iobroker.sonos\main.js:987:9) Caught 2018-07-23 08:24:37.347 error by controller[0]: at fadeOut (C:\ioBroker\node_modules\iobroker.sonos\main.js:805:20) Caught 2018-07-23 08:24:37.347 error by controller[0]: TypeError: Cannot create property 'actual' on boolean 'false' sonos.0 2018-07-23 08:24:37.299 info terminating sonos.0 2018-07-23 08:24:37.299 error at Timer.listOnTimeout (timers.js:290:5) sonos.0 2018-07-23 08:24:37.299 error at tryOnTimeout (timers.js:323:5) sonos.0 2018-07-23 08:24:37.299 error at ontimeout (timers.js:508:15) sonos.0 2018-07-23 08:24:37.299 error at Timeout.playOnSonos [as _onTimeout] (C:\ioBroker\node_modules\iobroker.sonos\main.js:987:9) sonos.0 2018-07-23 08:24:37.299 error at fadeOut (C:\ioBroker\node_modules\iobroker.sonos\main.js:805:20) sonos.0 2018-07-23 08:24:37.299 error TypeError: Cannot create property 'actual' on boolean 'false' sonos.0 2018-07-23 08:24:37.299 error uncaught exception: Cannot create property 'actual' on boolean 'false'

here is the doorbell script:
`var vol ="sayit.0.tts.volume";

function esklingelt() {
var idSonosfav = getState("sonos.0.root.192_168_30_17.favorites_set").val; //speichern des aktuellen Senders
var idSonosplay = getState ("sonos.0.root.192_168_30_17.state_simple").val; //Status des Speakers
if (idSonosplay) { //Wenn Radio läuft
sendTo('sonos', 'send', '50;http://192.168.30.9:8082/sayit.0/tts.userfiles/maus.mp3'); //Mp3 Ausgabe mit Lautstärke 60
setState ("sonos.0.root.192_168_30_17.favorites_set", idSonosfav); //nach 23 Sekunden gespeicherten Favoriten Sender wieder stellen
setStateDelayed ("sonos.0.root.192_168_30_17.state_simple", idSonosplay, 23000); //nach 23 Sekunden wieder starten
} else { //Wenn Radio nicht läuft
sendTo('sonos', 'send', '50;http://192.168.30.9:8082/sayit.0/tts.userfiles/maus.mp3'); //Mp3 Ausgabe mit Lautstärke 60
}
}

on({id: "hm-rpc.0.LEQ01xxxxx.1.PRESS_SHORT"/Taster_Haustuer_Klingel.PRESS_SHORT/, val: true}, esklingelt); //bei kurzem Tastendruck "esklingelt" aufrufen
on({id: "hm-rpc.0.LEQ01xxxxx.1.PRESS_LONG"/Taster_Haustuer_Klingel.PRESS_LONG/, val: true}, esklingelt); //bei langem Tastendruck "esklingelt" aufrufen`

with older versions of sonos adapter the script is working fine ...

@GermanBluefox
Copy link
Contributor

Should be fixed in 1.7.4

@iotathome
Copy link

iotathome commented Aug 20, 2018

Not fixed in 1.76. See also Bug #31.

@stale
Copy link

stale bot commented Nov 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions.
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

@stale stale bot added the wontfix label Nov 8, 2020
@stale
Copy link

stale bot commented Nov 15, 2020

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions.
Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.

@stale stale bot closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants