Skip to content

Commit 0c35acc

Browse files
Merge release v1.3.3
2 parents d9435ec + ed86aa4 commit 0c35acc

File tree

7 files changed

+40
-6
lines changed

7 files changed

+40
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## [1.3.3] - 2026-01-01
3+
- Add support for Venus A and Venus D
4+
25
## [1.3.2] - 2025-11-08
36
- Fixed Venus 3 devices (VNSE3) working on firmware version 139
47

brokers.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
"HMM": 135,
4343
"HMN": 135,
4444
"JPLS": 135,
45-
"VNSE3": 0
45+
"VNSE3": 0,
46+
"VNSA": 0,
47+
"VNSD": 0
4648
}
4749
}
4850
}

hassio-addon/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Hame Relay"
2-
version: "1.3.2"
2+
version: "1.3.3"
33
slug: "hame_relay"
44
description: "Connect B2500 storage to Home Assistant while keeping mobile app functionality"
55
url: "https://github.com/tomquist/hame-relay"

release.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,19 @@ git checkout develop
175175
print_info "Syncing develop with main to include release changes"
176176
git merge main --no-ff -m "Sync develop with main after release v${VERSION}"
177177

178+
needs_amend=false
179+
180+
# Ensure the Home Assistant addon version is set to 'next' on develop
181+
print_info "Setting hassio-addon/config.yaml version to 'next' on develop"
182+
yq eval --inplace '.version = "next"' hassio-addon/config.yaml
183+
184+
if ! git diff --quiet hassio-addon/config.yaml; then
185+
git add hassio-addon/config.yaml
186+
needs_amend=true
187+
else
188+
print_info "hassio-addon/config.yaml already set to 'next'"
189+
fi
190+
178191
# Add new [Next] section to CHANGELOG if it doesn't exist
179192
if ! grep -q "\[Next\]" CHANGELOG.md; then
180193
print_info "Adding new [Next] section to CHANGELOG.md"
@@ -184,9 +197,16 @@ if ! grep -q "\[Next\]" CHANGELOG.md; then
184197
\
185198
' CHANGELOG.md
186199
rm CHANGELOG.md.bak
187-
200+
188201
git add CHANGELOG.md
189-
git commit -m "Add new [Next] section to CHANGELOG.md"
202+
needs_amend=true
203+
fi
204+
205+
if [ "$needs_amend" = true ]; then
206+
print_info "Amending develop sync commit with version and changelog updates"
207+
git commit --amend --no-edit
208+
else
209+
print_info "No additional updates required on develop"
190210
fi
191211

192212
print_info "Pushing updated develop branch"

src/hame_api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ export class HameApi {
187187

188188
const data = (await resp.json()) as HameApiResponse;
189189

190+
if (data.code === "4") {
191+
throw new Error(
192+
`Incorrect password for ${mailbox}. Please double-check the credentials configured for the add-on and try again. (${data.code} - ${data.msg})`,
193+
);
194+
}
195+
190196
if (data.code !== "2" || !data.token) {
191197
throw new Error(
192198
`Unexpected API response code: ${data.code} - ${data.msg}`,

src/topic.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,9 @@ class CommonHelper {
367367
return version >= 126.0;
368368
}
369369

370-
if (normalizedVid.startsWith("VNSE3")) {
371-
// Venus 3 devices (VNSE3) are confirmed to work starting with firmware v139.
370+
// All Venus series devices (VNSE3, VNSA, VNSD) support CommonHelper.cq encryption
371+
// starting with firmware v139.
372+
if (normalizedVid.startsWith("VNS")) {
372373
return version >= 139.0;
373374
}
374375

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export const deviceTypes = [
1616
"HMM",
1717
"HMN",
1818
"VNSE3",
19+
"VNSA",
20+
"VNSD",
1921
] as const;
2022
export type DeviceType = (typeof deviceTypes)[number];
2123

0 commit comments

Comments
 (0)