Files
visquitto-mqtt/README.md
T
2026-11-03 16:56:37 +03:30

207 lines
5.0 KiB
Markdown

# Visquitto MQTT
A custom Home Assistant MQTT integration based on the official Home Assistant MQTT integration.
Visquitto MQTT provides a separate MQTT integration under the `vmqtt` domain, allowing it to
connect to [Visquitto](https://gitea.viratak.com/bitopa/virarepo/src/branch/main/visquitto) app
and coexist with the official MQTT integration.
## Installation
### HACS (recommended)
1. Open HACS in Home Assistant.
2. Open the three-dot menu and select **Custom repositories**.
3. Add this repository URL:
`https://github.com/cloudihome/visquitto-mqtt`
4. Select **Integration** as the category.
5. Click **Add**.
6. Search for **Visquitto MQTT** in HACS and download it.
7. Restart Home Assistant.
8. Go to **Settings → Devices & services → Add integration**.
9. Search for **Visquitto MQTT** and follow the setup steps.
### Manual installation
1. Download or clone this repository.
2. Copy the `custom_components/vmqtt` directory into your Home Assistant configuration directory:
```text
/config/custom_components/vmqtt/
```
Restart Home Assistant.
Then go to **Settings → Devices & services → Add integration** and search for **Visquitto MQTT**.
## Configuration
Visquitto MQTT is configured independently of the built-in MQTT
integration.
The discovery prefix can be configured separately from the default
Home Assistant MQTT discovery prefix.
For example, you can use:
- Built-in MQTT: `homeassistant`
- Visquitto MQTT: `vmqtt`
Devices publishing discovery messages under the `vmqtt` prefix
can then be discovered by Visquitto MQTT.
## Maintaining the upstream fork
This integration is derived from the official [Home Assistant MQTT integration](https://github.com/home-assistant/core/tree/dev/homeassistant/components/mqtt).
The upstream source is maintained in a separate local Git workspace named `ha-mqtt-work`.
The distribution repository (`visquitto-mqtt`) contains the installable integration.
### Repository layout
Both repositories should be located in the same parent directory:
```text
parent/
├── ha-mqtt-work/
│ └── homeassistant/components/mqtt/
│
└── visquitto-mqtt/
└── custom_components/vmqtt/
```
### Updating from a new Home Assistant release
When Home Assistant releases a new version, follow these steps.
#### 1. Fetch upstream changes
Go to the original Home Assistant workspace:
```bash
cd ha-mqtt-work
git fetch origin --tags
```
or use this to significantly reduce download size:
```bash
git fetch --depth=1 origin tag 2026.11.1 # Replace 2026.11.1 with the release you want.
```
#### 2. Check that your working tree is clean
```bash
git status
```
Make sure there are no uncommitted changes.
#### 3. Rebase your custom integration onto the new release
For example, to update to `2026.11.1`:
```bash
git switch vmqtt-port
git rebase 2026.11.1
```
Replace `2026.11.1` with the actual Home Assistant release tag.
Git will replay your custom modifications on top of the new upstream release.
If there are conflicts:
```bash
git status
```
Resolve the conflicts in the affected files, then:
```bash
git add <resolved-files>
git rebase --continue
```
To cancel the rebase if necessary:
```bash
git rebase --abort
```
#### 4. Test the updated integration
Test the integration in Home Assistant before distributing it.
Pay particular attention to MQTT connections, configuration flow, discovery, publishing, subscriptions, and triggers.
#### 5. Synchronize the updated integration into the distribution repository
From the parent directory containing both repositories:
```bash
rsync -av --delete ha-mqtt-work/homeassistant/components/mqtt/ visquitto-mqtt/custom_components/vmqtt/
```
This copies the updated integration source, including your rebased custom modifications.
The destination should contain only the integration files being synchronized. Do not store distribution-only files inside `custom_components/vmqtt/` unless they are also maintained in the upstream workspace.
#### 6. Update the integration version
Edit:
```text
visquitto-mqtt/custom_components/vmqtt/manifest.json
```
Increment the custom integration version, for example:
```json
"version": "0.1.1"
```
#### 7. Commit and push the updated distribution
```bash
cd visquitto-mqtt
git status
git diff
git add .
git commit -m "Update from Home Assistant 2026.11.1"
git push origin main
```
Use your actual distribution branch name if it is not `main`.
#### 8. Publish a new release
Create a release in the distribution repository using the new integration version, for example `0.1.1`.
Include a short description of the upstream changes and your own modifications.
## Versioning
Visquitto MQTT maintains its own version number, independently of Home Assistant Core.
For example:
- `0.1.0` — Initial release
- `0.1.1` — First update
- `0.2.0` — New functionality or significant changes
## Project repositories
- [GitHub mirror (HACS)](https://github.com/cloudihome/visquitto-mqtt)
- [Primary repository](https://gitea.viratak.com/bitopa/visquitto-mqtt)
## License
Based on Home Assistant Core. See the accompanying license information.