diff --git a/lib/iosbplayer.js b/lib/iosbplayer.js index b70fe34..6c632e3 100755 --- a/lib/iosbplayer.js +++ b/lib/iosbplayer.js @@ -747,6 +747,13 @@ function ioSBPlayer(server,playerdata) { } } if (idParts[0] == 'cmdGoTime') { + // state.val needs to be a string, although the time is set in seconds + // when settings cmdGoTime via ioBroker.simple-api its not possible to submit a number as string + // if we receive a number, we need to cast this to a string + if (typeof state.val === 'number') { + state.val = state.val.toString(); + } + if (state.val.trim()!=='' && !isNaN(state.val.trim())) { this.request(this.playerid,['time', state.val.trim()]); this.setState(idParts[0],' ',this.statePath,this.playername,false);