diff --git a/lib/converters/media_player.js b/lib/converters/media_player.js index fc9a25ded..1f6cb500b 100644 --- a/lib/converters/media_player.js +++ b/lib/converters/media_player.js @@ -450,7 +450,7 @@ exports.processMediaPlayer = function (id, control, name, room, func, _obj, obje setId: state.id, parseCommand: (entity, command, data, user) => new Promise((resolve, reject) => - adapterData.adapter.setForeignState(command.setId, data.service_data.is_volume_muted, false, {user}, err => + adapterData.adapter.setForeignState(command.setId, !data.service_data.is_volume_muted, false, {user}, err => err ? reject(err) : resolve())) });