homebridge-homeassistant-things 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,24 @@ Todos los cambios relevantes de este proyecto se documentan aquí.
10
10
 
11
11
  ---
12
12
 
13
+ ## [2.4.0] - 2026-04-04
14
+
15
+ ### Added / Añadido
16
+ - **EN** Plugin officially **verified by Homebridge** ✅ — badge updated in README.
17
+ - **EN** Added PayPal donate button (appears in Homebridge UI plugin tile).
18
+ - **ES** Plugin **verificado oficialmente por Homebridge** ✅ — badge actualizado en el README.
19
+ - **ES** Añadido botón de donación PayPal (aparece en la ficha del plugin en la UI de Homebridge).
20
+
21
+ ---
22
+
23
+ ## [2.3.0] - 2026-04-02
24
+
25
+ ### Added / Añadido
26
+ - **EN** Platform-level `haUrl` and `haToken` defaults — set them once at platform level and all devices inherit them. Individual devices can still override with their own values.
27
+ - **ES** Valores por defecto de `haUrl` y `haToken` a nivel de plataforma — se configuran una vez y todos los dispositivos los heredan. Cada dispositivo puede sobrescribirlos con sus propios valores si es necesario.
28
+
29
+ ---
30
+
13
31
  ## [2.2.0] - 2026-04-02
14
32
 
15
33
  ### Added / Añadido
package/README.md CHANGED
@@ -4,11 +4,7 @@ Homebridge plugin to control Home Assistant devices as native HomeKit accessorie
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/homebridge-homeassistant-things)](https://www.npmjs.com/package/homebridge-homeassistant-things)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
7
- [![Homebridge Verified](https://img.shields.io/badge/homebridge-verification%20pending-yellow)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
8
-
9
- > **EN** This plugin has been submitted for **official Homebridge verification**. Once approved, it will appear as a verified plugin in the Homebridge plugin catalogue.
10
- >
11
- > **ES** Este plugin ha sido enviado para **verificación oficial de Homebridge**. Una vez aprobado, aparecerá como plugin verificado en el catálogo de plugins de Homebridge.
7
+ [![verified-by-homebridge](https://img.shields.io/badge/homebridge-verified-blueviolet?color=%23491F59&style=flat&logoColor=%23FFFFFF&logo=homebridge)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
12
8
 
13
9
  ---
14
10
 
@@ -10,13 +10,24 @@
10
10
  "type": "string",
11
11
  "default": "HA Things"
12
12
  },
13
+ "haUrl": {
14
+ "title": "Default Home Assistant URL",
15
+ "type": "string",
16
+ "placeholder": "http://homeassistant.local:8123",
17
+ "description": "Default HA URL for all devices. Can be overridden per device."
18
+ },
19
+ "haToken": {
20
+ "title": "Default Long-Lived Access Token",
21
+ "type": "string",
22
+ "description": "Default HA token for all devices. Can be overridden per device."
23
+ },
13
24
  "devices": {
14
25
  "title": "Devices",
15
26
  "type": "array",
16
27
  "items": {
17
28
  "title": "Device",
18
29
  "type": "object",
19
- "required": ["name", "deviceType", "haUrl", "entityId", "haToken"],
30
+ "required": ["name", "deviceType", "entityId"],
20
31
  "properties": {
21
32
  "name": {
22
33
  "title": "Name",
package/index.js CHANGED
@@ -44,6 +44,17 @@ class HomeAssistantThingsPlatform {
44
44
  }];
45
45
  }
46
46
 
47
+ // Apply platform-level defaults for haUrl and haToken
48
+ const defaultHaUrl = this.config.haUrl;
49
+ const defaultHaToken = this.config.haToken;
50
+ if (defaultHaUrl || defaultHaToken) {
51
+ devices = devices.map(d => ({
52
+ haUrl: defaultHaUrl,
53
+ haToken: defaultHaToken,
54
+ ...d,
55
+ }));
56
+ }
57
+
47
58
  const configuredUUIDs = new Set();
48
59
 
49
60
  for (const deviceConfig of devices) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-homeassistant-things",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "Homebridge plugin to control Home Assistant devices (switches, thermostats, blinds, garage doors) as native HomeKit accessories",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -32,5 +32,9 @@
32
32
  "pluginAlias": "HomeAssistantThing",
33
33
  "pluginType": "platform"
34
34
  },
35
+ "funding": {
36
+ "type": "paypal",
37
+ "url": "https://paypal.me/torresyago"
38
+ },
35
39
  "dependencies": {}
36
40
  }