-
-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Describe the bug
MediaMute toggles mute, the name of the command does not imply toggling but that's the current, wrong behavior.
I can't even make it a switch to be able to toggle it with a known state, because the SWITCH just returns to off after toggling!
To Reproduce
Steps to reproduce the behavior:
- Go to 'Commands'
- Click on 'Add New'
- Scroll down to
MediaMute - Store Command
- Call
MediaMuteseveral times - Observe toggling of mute instead of idempotent mute
Expected behavior
I'd expect the api to be idempotent, regardless of number of calls to MediaMute, it should JUST mute the computer.
Screenshots
If applicable, add screenshots to help explain your problem.
Misc info (please complete the following information):
- Windows build (ideally screenshot/info of
winver.exeoutput): - Windows' UI language: en-US
- HASS.Agent version: 2.1.1
Please check what's applicable (multiple answers possible):
- Installed via installer
- Installed manually
- Problem occurs in HASS.Agent
- Problem occurs in Satellite Service
Additional context
Idempotent API design makes is so much simpler to design things that call it, because you can just call it over and over with the same value and if the system is already in that state then NOTHING happens, no feedback needed, confirmed received at most is a nice to have.
Logs
N/A