homebridge-econet-rheem 1.5.13 → 1.5.15

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
@@ -1,12 +1,29 @@
1
+ # Change Log
2
+
3
+ All notable changes to homebridge-econet-rheem will be documented in this file.
4
+
5
+ ## 1.5.15 (2025-08-11)
6
+
1
7
  ### HELP NEEDED! (no coding experience required)
2
8
 
3
9
  Do you have a leak sensor and/or shut off valve on your water heater? Click [here](https://github.com/mpatfield/homebridge-econet-rheem/issues/4) for instructions.
4
10
 
5
11
  Would you like to see Homebridge Econet Rheem in your language? Comment [here](https://github.com/mpatfield/homebridge-econet-rheem/issues/35) if you'd like to help.
6
12
 
7
- # Change Log
13
+ ### Fixed
14
+ - Broken header image in config UI
8
15
 
9
- All notable changes to homebridge-econet-rheem will be documented in this file.
16
+ ### Changed
17
+ - Update dependencies
18
+
19
+ ## 1.5.14 (2025-07-14)
20
+
21
+ ### Fixed
22
+ - Config UI styles in dark mode
23
+
24
+ ### Changed
25
+ - Force ui.js cache miss in config ui on each new version
26
+ - Update dependencies
10
27
 
11
28
  ## 1.5.13 (2025-06-25)
12
29
 
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://github.com/mpatfield/homebridge-econet-rheem/blob/latest/img/banner.png?raw=true" width="600">
2
+ <img src="https://raw.githubusercontent.com/mpatfield/homebridge-econet-rheem/refs/heads/latest/img/banner.png" width="600">
3
3
  </p>
4
4
 
5
5
  <span align="center">
@@ -1,6 +1,12 @@
1
+ <style>
2
+ .dark-mode {
3
+ background-color: #242424;
4
+ color: lightgrey;
5
+ }
6
+ </style>
1
7
  <p class="text-center">
2
8
  <img
3
- src="https://github.com/mpatfield/homebridge-econet-rheem/blob/latest/img/banner.png?raw=true"
9
+ src="https://raw.githubusercontent.com/mpatfield/homebridge-econet-rheem/refs/heads/latest/img/banner.png"
4
10
  alt="Homebridge Econet Rheem"
5
11
  style="width: 60%;"
6
12
  />
@@ -14,4 +20,4 @@
14
20
  </br><button type="button" class="btn btn-primary" id="introContinue" i18n="continue", i18n_replace="arrow"></button>
15
21
  </div>
16
22
 
17
- <script src="ui.js"></script>
23
+ <script src="ui.js?v=1.5.15"></script>
@@ -1 +1 @@
1
- "use strict";(()=>{var d={arrow:"&rarr;",github:'<a target="_blank" href="https://github.com/mpatfield/homebridge-econet-rheem/">GitHub</a>'},m=e=>{document.querySelectorAll("[i18n]").forEach(n=>{let t=n.getAttribute("i18n"),r=e.config[t],s=n.getAttribute("i18n_replace");s&&(r=r.replace("%s",d[s])),n.innerHTML=r})},u=(e,n)=>{let t=!1,r=["span","label","legend","option","p"];Array.from(window.parent.document.querySelectorAll(r.join(","))).sort((i,o)=>r.indexOf(i.tagName.toLowerCase())-r.indexOf(o.tagName.toLowerCase())).forEach(i=>{let o=i.innerHTML;o=o.replaceAll(/\$\{config\.(title|description|enumNames)\.([^}]+)\}/g,(l,a,c)=>e.config[a]&&typeof e.config[a]=="object"&&c in e.config[a]?e.config[a][c]:l),i.innerHTML!==o&&(i.innerHTML=o,t=!0)}),t&&n?.disconnect()},g=async e=>{homebridge.showSpinner(),document.getElementById("pageIntro").style.display="none",document.getElementById("support").style.display="block";let n=new MutationObserver(()=>{u(e,n)});n.observe(window.parent.document.body,{childList:!0,subtree:!0}),await homebridge.showSchemaForm(),homebridge.hideSpinner()},h=e=>{document.getElementById("introContinue").addEventListener("click",async()=>{g(e)}),document.getElementById("pageIntro").style.display="block",homebridge.hideSpinner()};(async()=>{homebridge.showSpinner();try{let e=await homebridge.i18nCurrentLang(),n=await homebridge.request("i18n",e);m(n);let t=await homebridge.getPluginConfig();t.length?await g(n):(t.push({name:n.brand}),await homebridge.updatePluginConfig(t),h(n))}catch(e){homebridge.toast.error(e.message),homebridge.hideSpinner()}})();})();
1
+ "use strict";(()=>{var d={arrow:"&rarr;",github:'<a target="_blank" href="https://github.com/mpatfield/homebridge-econet-rheem/">GitHub</a>'},m=e=>{document.querySelectorAll("[i18n]").forEach(n=>{let t=n.getAttribute("i18n"),r=e.config[t],s=n.getAttribute("i18n_replace");s&&(r=r.replace("%s",d[s])),n.innerHTML=r})},u=(e,n)=>{let t=!1,r=["span","label","legend","option","p"];Array.from(window.parent.document.querySelectorAll(r.join(","))).sort((i,o)=>r.indexOf(i.tagName.toLowerCase())-r.indexOf(o.tagName.toLowerCase())).forEach(i=>{let o=i.innerHTML;o=o.replaceAll(/\$\{config\.(title|description|enumNames)\.([^}]+)\}/g,(l,a,c)=>e.config[a]&&typeof e.config[a]=="object"&&c in e.config[a]?e.config[a][c]:l),i.innerHTML!==o&&(i.innerHTML=o,t=!0)}),t&&n?.disconnect()},g=async e=>{homebridge.showSpinner(),document.getElementById("pageIntro").style.display="none",document.getElementById("support").style.display="block";let n=new MutationObserver(()=>{u(e,n)});n.observe(window.parent.document.body,{childList:!0,subtree:!0}),await homebridge.showSchemaForm(),homebridge.hideSpinner()},h=e=>{document.getElementById("introContinue").addEventListener("click",async()=>{g(e)}),document.getElementById("pageIntro").style.display="block",homebridge.hideSpinner()};(async()=>{homebridge.showSpinner();try{let e=await homebridge.i18nCurrentLang(),n=await homebridge.request("i18n",e);m(n);let t=await homebridge.getPluginConfig();t.length?await g(n):(t.push({name:n.general.brand}),await homebridge.updatePluginConfig(t),h(n))}catch(e){homebridge.toast.error(e.message),homebridge.hideSpinner()}})();})();
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName": "Homebridge Econet Rheem",
5
5
  "description": "Homebridge plugin for control of Rheem thermostats and water heaters",
6
6
  "type": "module",
7
- "version": "1.5.13",
7
+ "version": "1.5.15",
8
8
  "homepage": "https://github.com/mpatfield/homebridge-econet-rheem#readme",
9
9
  "repository": {
10
10
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "main": "dist/homebridge/index.js",
21
21
  "scripts": {
22
22
  "build": "rimraf ./dist && tsc && npm run build:html && npm run build:ui",
23
- "build:html": "mkdir ./dist/homebridge-ui/public && cp -r ./src/homebridge-ui/public/* ./dist/homebridge-ui/public/",
23
+ "build:html": "node --loader ts-node/esm ./scripts/build-html.ts",
24
24
  "build:ui": "esbuild src/homebridge-ui/ui.ts --bundle --outfile=dist/homebridge-ui/public/ui.js --minify",
25
25
  "lint": "eslint . --max-warnings=0",
26
26
  "prepublishOnly": "npm run lint && npm run build"
package/eslint.config.ts DELETED
@@ -1,35 +0,0 @@
1
- import eslint from '@eslint/js';
2
- import tseslint from 'typescript-eslint';
3
-
4
- export default tseslint.config(
5
- {
6
- ignores: ['dist/**'],
7
- },
8
- {
9
- rules: {
10
- 'quotes': ['error', 'single'],
11
- 'indent': ['error', 2, { 'SwitchCase': 0 }],
12
- 'linebreak-style': ['error', 'unix'],
13
- 'semi': ['error', 'always'],
14
- 'comma-dangle': ['error', 'always-multiline'],
15
- 'dot-notation': 'error',
16
- 'eqeqeq': ['error', 'smart'],
17
- 'curly': ['error', 'all'],
18
- 'brace-style': ['error'],
19
- 'prefer-arrow-callback': 'warn',
20
- 'max-len': ['warn', 160],
21
- 'object-curly-spacing': ['error', 'always'],
22
- 'no-use-before-define': 'off',
23
- '@typescript-eslint/no-use-before-define': ['error', { 'classes': false, 'enums': false }],
24
- '@typescript-eslint/no-unused-vars': ['error', { 'caughtErrors': 'none' }],
25
- },
26
- },
27
- {
28
- languageOptions: {
29
- ecmaVersion: 2022,
30
- sourceType: 'module',
31
- },
32
- },
33
- eslint.configs.recommended,
34
- ...tseslint.configs.recommended,
35
- );
@@ -1,45 +0,0 @@
1
- {
2
- "options":{
3
- "@CONNECTIVITY":{
4
- "last_connected":1748457902331,
5
- "last_disconnected":1748459364489
6
- },
7
- "_id":"****redacted****",
8
- "account_id":"****redacted****",
9
- "address":"****redacted****",
10
- "allow_email_notifications":false,
11
- "allow_product_alert_emails":true,
12
- "allow_product_alert_text_msg":false,
13
- "allow_push_notifications":true,
14
- "allow_special_offers_emails":false,
15
- "allow_special_offers_text_msg":false,
16
- "allow_text_notifications":false,
17
- "app_brand":"rheem",
18
- "app_version":"6.9.0",
19
- "cb_service_account":false,
20
- "city":"****redacted****",
21
- "connected":false,
22
- "country":"US",
23
- "created_at":"2021-05-23T22:57:16.000Z",
24
- "creation_date":1621810634,
25
- "email":"****redacted****",
26
- "first_name":"****redacted****",
27
- "is_phone_verified":true,
28
- "last_name":"****redacted****",
29
- "legacy_user":0,
30
- "os_version":"ios",
31
- "phone_number":"****redacted****",
32
- "postal_code":"****redacted****",
33
- "receive_marketing_messages":false,
34
- "report_state":true,
35
- "role":0,
36
- "security_code":0,
37
- "state":"CA",
38
- "success":true,
39
- "temperature_display_unit":"Fahrenheit",
40
- "updated_at":"2025-05-28T19:09:24.489Z",
41
- "user_id":"****redacted****"
42
- },
43
- "user_id":"****redacted****",
44
- "user_token":"****redacted****"
45
- }