MQTT Volume Control
The MQTT Volume Control Android app allows you to control the volume control levels (and mute) of an Android device from HomeAssistant via MQTT.
The app supports HomeAssistant MQTT auto discovery, so the volume control will automatically appear as number (slider) entities, and mute as switches.
You can configure a few simple things:
- Server address: The server name or IP address of your MQTT broker. This field is required.
- Port number: The MQTT broker’s port number – the default is 1883. This field is required.
- Username: If you need a username to log on to your MQTT broker.
- Password: If you need a password to log on to your MQTT broker.
- Automatically connect on app start & reboot: Check this to automatically attempt to connect when the app is started or after a device reboot.
- Reconnect indefinitely: If the connection is lost, try to reconnect indefinitely. If unchecked, retry up to 3 times.
Once you’ve configured this, click Connect and then have a look in HomeAssistant — you should see your volume- and mute settings as new entities.
Google Play Store description
This description is from MQTT Volume Control on Google Play Store:
Remote control the audio volume of the Android device where this app is running – from HomeAssistant via MQTT.
The app solves a home automation issue I’ve had for years: In my house we have a wall-mounted Android tablet in the kitchen. This tablet is used for things like grocery lists, looking up recipes – and as our “internet radio” (via a set of active loudspeakers). However, I couldn’t mute or control the volume while eating at the dinner table – at least not until now. This is the specific problem MQTT Volume Control app solves: Remote control the audio volume in HomeAssistant.
Once the application is connected, it will launch a service that stays connected in the background so you don’t need to keep the app open. The service will try to keep the device alive, so it may cause the power usage to increase. Personally for me, this is fine as the wall-mounted tablet is always connected to a charger. You can also tell the application to automatically start when the device has booted.
The app uses HomeAssistant MQTT auto discovery. This means the volume control entities should automatically appear in HomeAssistant (see screenshot). The app provides volume level controls for the media-, call-, alarm- and notifications audio streams, as well as a mute/unmute for media and notifications – depending on what the particular device supports.
Prerequisites: You will need an MQTT broker and the HomeAssistant home automation application. HomeAssistant must also be configured to use the MQTT broker. If you don’t know what MQTT or HomeAssistant is, this app is probably not for you.
Drop me an email on firstname.lastname@example.org.
The app does not communicate with anything but the configured MQTT broker.
The data you enter (server name, port, username, password, etc.) will be saved on the local Android device, and will be sent to the configured MQTT broker.
The MQTT data contains:
- the Android device name (Bluetooth name), the Android ID, model, and manufacturer
- volume control level settings
- volume mute settings
The device identifiers are used for HomeAssistant MQTT auto discovery.