165 lines
3.9 KiB
Markdown
165 lines
3.9 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 coexist with the official MQTT integration.
|
|
|
|
## Installation
|
|
|
|
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**.
|
|
|
|
## 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
|
|
|
|
## License
|
|
|
|
Based on Home Assistant Core. See the accompanying license information.
|