7 Commits

Author SHA1 Message Date
dependabot[bot]
92e007df2d chore(deps): Bump pino-pretty from 13.1.1 to 13.1.2
Bumps [pino-pretty](https://github.com/pinojs/pino-pretty) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/pinojs/pino-pretty/releases)
- [Commits](https://github.com/pinojs/pino-pretty/compare/v13.1.1...v13.1.2)

---
updated-dependencies:
- dependency-name: pino-pretty
  dependency-version: 13.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 04:35:19 +00:00
Pascal Bourque
3b5dafeda9 fix: Fatal error when starting realtime updates. (#64)
Via https://github.com/bourquep/mysa-js-sdk/pull/144
2025-10-05 15:08:07 -04:00
Pascal Bourque
35f2effe9c chore(deps): Updated all dependencies to their latest versions (#62) 2025-10-05 11:43:49 -04:00
dependabot[bot]
c29eae97ed chore(deps-dev): Bump the dev-dependencies group with 9 updates (#57) 2025-10-05 15:22:33 +00:00
dependabot[bot]
6502b76b77 chore(deps): Bump pino-pretty from 13.0.0 to 13.1.1 (#55) 2025-10-05 15:09:30 +00:00
dependabot[bot]
39d0e64dc0 chore(deps): Bump axios from 1.9.0 to 1.12.1 in the npm_and_yarn group across 1 directory (#60) 2025-10-05 15:08:44 +00:00
dependabot[bot]
49c7a0fd8e chore(deps-dev): Bump tsx from 4.20.3 to 4.20.6 (#61) 2025-10-05 15:08:29 +00:00
7 changed files with 1142 additions and 1159 deletions

View File

@@ -213,13 +213,11 @@ When using Home Assistant, devices will be automatically discovered and appear i
### Common Issues ### Common Issues
1. **Authentication Failures** 1. **Authentication Failures**
- Verify your Mysa username and password - Verify your Mysa username and password
- Check if session.json exists and is valid - Check if session.json exists and is valid
- Try deleting session.json to force re-authentication - Try deleting session.json to force re-authentication
2. **MQTT Connection Issues** 2. **MQTT Connection Issues**
- Verify MQTT broker hostname and port - Verify MQTT broker hostname and port
- Check MQTT credentials if authentication is required - Check MQTT credentials if authentication is required
- Ensure the MQTT broker is accessible from your network - Ensure the MQTT broker is accessible from your network
@@ -364,7 +362,6 @@ copyright notice and license text in any copy of the software or substantial por
## Acknowledgments ## Acknowledgments
- [mysa-js-sdk](https://github.com/bourquep/mysa-js-sdk) - Mysa API client library - [mysa-js-sdk](https://github.com/bourquep/mysa-js-sdk) - Mysa API client library
- This library would not be possible without the amazing work by [@dlenski](https://github.com/dlenski) in his - This library would not be possible without the amazing work by [@dlenski](https://github.com/dlenski) in his
[mysotherm](https://github.com/dlenski/mysotherm) repository. He's the one who reversed-engineered the Mysa MQTT [mysotherm](https://github.com/dlenski/mysotherm) repository. He's the one who reversed-engineered the Mysa MQTT
protocol which is being used by this library. protocol which is being used by this library.

2248
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -46,29 +46,29 @@
"build": "tsup" "build": "tsup"
}, },
"dependencies": { "dependencies": {
"commander": "14.0.0", "commander": "14.0.1",
"dotenv": "17.2.1", "dotenv": "17.2.3",
"mqtt2ha": "4.1.0", "mqtt2ha": "4.1.2",
"mysa-js-sdk": "1.3.0", "mysa-js-sdk": "1.3.3",
"pino": "9.7.0", "pino": "10.0.0",
"pino-pretty": "13.0.0" "pino-pretty": "13.1.2"
}, },
"devDependencies": { "devDependencies": {
"@commander-js/extra-typings": "14.0.0", "@commander-js/extra-typings": "14.0.0",
"@eslint/js": "9.34.0", "@eslint/js": "9.37.0",
"@semantic-release/npm": "12.0.1", "@semantic-release/npm": "12.0.2",
"@types/node": "24.0.3", "@types/node": "24.6.2",
"conventional-changelog-conventionalcommits": "9.1.0", "conventional-changelog-conventionalcommits": "9.1.0",
"eslint": "9.29.0", "eslint": "9.37.0",
"eslint-plugin-jsdoc": "51.1.1", "eslint-plugin-jsdoc": "60.8.1",
"eslint-plugin-tsdoc": "0.4.0", "eslint-plugin-tsdoc": "0.4.0",
"prettier": "3.5.3", "prettier": "3.6.2",
"prettier-plugin-jsdoc": "1.3.2", "prettier-plugin-jsdoc": "1.3.3",
"prettier-plugin-organize-imports": "4.1.0", "prettier-plugin-organize-imports": "4.3.0",
"semantic-release": "24.2.5", "semantic-release": "24.2.9",
"tsup": "8.5.0", "tsup": "8.5.0",
"tsx": "4.20.3", "tsx": "4.20.6",
"typescript": "5.8.3", "typescript": "5.9.3",
"typescript-eslint": "8.41.0" "typescript-eslint": "8.45.0"
} }
} }

View File

@@ -22,7 +22,7 @@ SOFTWARE.
*/ */
import { Logger } from 'mqtt2ha'; import { Logger } from 'mqtt2ha';
import { pino } from 'pino'; import pino from 'pino';
export class PinoLogger implements Logger { export class PinoLogger implements Logger {
constructor(private readonly logger: pino.Logger) {} constructor(private readonly logger: pino.Logger) {}
@@ -32,7 +32,7 @@ export class PinoLogger implements Logger {
if (obj) { if (obj) {
this.logger.debug(obj, message, ...meta); this.logger.debug(obj, message, ...meta);
} else { } else {
this.logger.debug(message, ...meta); this.logger.debug(null, message, ...meta);
} }
} }
@@ -41,7 +41,7 @@ export class PinoLogger implements Logger {
if (obj) { if (obj) {
this.logger.info(obj, message, ...meta); this.logger.info(obj, message, ...meta);
} else { } else {
this.logger.info(message, ...meta); this.logger.info(null, message, ...meta);
} }
} }
@@ -50,7 +50,7 @@ export class PinoLogger implements Logger {
if (obj) { if (obj) {
this.logger.warn(obj, message, ...meta); this.logger.warn(obj, message, ...meta);
} else { } else {
this.logger.warn(message, ...meta); this.logger.warn(null, message, ...meta);
} }
} }
@@ -59,7 +59,7 @@ export class PinoLogger implements Logger {
if (obj) { if (obj) {
this.logger.error(obj, message, ...meta); this.logger.error(obj, message, ...meta);
} else { } else {
this.logger.error(message, ...meta); this.logger.error(null, message, ...meta);
} }
} }
} }

View File

@@ -76,7 +76,7 @@ async function main() {
serialNumbers.set(deviceId, serial); serialNumbers.set(deviceId, serial);
} }
} catch (error) { } catch (error) {
rootLogger.error(`Failed to retrieve serial number for device ${deviceId}`, error); rootLogger.error(error, `Failed to retrieve serial number for device ${deviceId}`);
} }
} }

View File

@@ -54,7 +54,6 @@ function getPackageVersion(): string {
* *
* @param value - The value to parse. * @param value - The value to parse.
* @returns The parsed integer value. * @returns The parsed integer value.
* @throws InvalidArgumentError if the value is not a valid integer.
*/ */
function parseRequiredInt(value: string) { function parseRequiredInt(value: string) {
const parsedValue = parseInt(value, 10); const parsedValue = parseInt(value, 10);

View File

@@ -8,6 +8,7 @@
"noEmit": true, "noEmit": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"module": "ESNext", "module": "ESNext",
"lib": ["ES2022"],
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }