homebridge-econet-rheem 1.5.13-beta.1 → 1.5.14

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
@@ -8,7 +8,16 @@ Would you like to see Homebridge Econet Rheem in your language? Comment [here](h
8
8
 
9
9
  All notable changes to homebridge-econet-rheem will be documented in this file.
10
10
 
11
- ## 1.5.13 (####-##-##)
11
+ ## 1.5.14 (2025-07-14)
12
+
13
+ ### Fixed
14
+ - Config UI styles in dark mode
15
+
16
+ ### Changed
17
+ - Force ui.js cache miss in config ui on each new version
18
+ - Update dependencies
19
+
20
+ ## 1.5.13 (2025-06-25)
12
21
 
13
22
  ### Changed
14
23
  - Dynamic translations
@@ -1,3 +1,9 @@
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
9
  src="https://github.com/mpatfield/homebridge-econet-rheem/blob/latest/img/banner.png?raw=true"
@@ -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.14"></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/dist/i18n/en.js CHANGED
@@ -8,7 +8,7 @@ const en = {
8
8
  wh_sim_disable: 'See documentation for details',
9
9
  },
10
10
  needed: 'You will need your Rheem username and password',
11
- support: 'For help and support please visit %s',
11
+ support: 'For documentation and support please visit %s',
12
12
  thankYou: 'Thank you for installing Homebridge Econet Rheem',
13
13
  title: {
14
14
  email: 'Email',
@@ -78,7 +78,7 @@ const en = {
78
78
  'Please ★ this plugin on GitHub if you\'re finding it useful! https://github.com/mpatfield/homebridge-econet-rheem',
79
79
  'Would you like to sponsor this plugin? https://github.com/sponsors/mpatfield',
80
80
  'Please rate us on HOOBS! https://plugins.hoobs.org/plugin/homebridge-econet-rheem',
81
- 'Want to see this plugin in your own language? Please create a ticket! https://github.com/mpatfield/homebridge-econet-rheem/issues',
81
+ 'Want to see this plugin in your own language? Please visit https://github.com/mpatfield/homebridge-econet-rheem/issues/35',
82
82
  ],
83
83
  },
84
84
  };
@@ -1 +1 @@
1
- {"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAAA,MAAM,EAAE,GAAG;IAET,MAAM,EAAE;QACN,QAAQ,EAAE,aAAa;QAEvB,WAAW,EAAE;YACX,KAAK,EAAE,4DAA4D;YACnE,QAAQ,EAAE,+BAA+B;YACzC,OAAO,EAAE,iCAAiC;YAC1C,cAAc,EAAE,+BAA+B;SAChD;QAED,MAAM,EAAE,gDAAgD;QACxD,OAAO,EAAE,sCAAsC;QAC/C,QAAQ,EAAE,kDAAkD;QAE5D,KAAK,EAAE;YACL,KAAK,EAAE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;QACpE,UAAU,EAAE,YAAY;QACxB,WAAW,EAAE,0BAA0B;QACvC,WAAW,EAAE,gCAAgC;QAC7C,gBAAgB,EAAE,oBAAoB;QACtC,WAAW,EAAE,cAAc;KAC5B;IAED,OAAO,EAAE;QACP,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,WAAW;KACvB;IAED,IAAI,EAAE;QACJ,WAAW,EAAE,4BAA4B;QACzC,cAAc,EAAE,8BAA8B;QAC9C,cAAc,EAAE,+BAA+B;QAC/C,YAAY,EAAE,2BAA2B;QACzC,cAAc,EAAE,yCAAyC;QACzD,cAAc,EAAE,yCAAyC;KAC1D;IAED,IAAI,EAAE;QACJ,WAAW,EAAE,sBAAsB;QACnC,WAAW,EAAE,eAAe;QAC5B,SAAS,EAAE,sCAAsC;QACjD,gBAAgB,EAAE,mBAAmB;QACrC,eAAe,EAAE,qBAAqB;QACtC,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,sBAAsB;QACpC,WAAW,EAAE,0BAA0B;QACvC,kBAAkB,EAAE,0CAA0C;QAC9D,kBAAkB,EAAE,0CAA0C;QAC9D,kBAAkB,EAAE,kCAAkC;KACvD;IAED,OAAO,EAAE;QACP,SAAS,EAAE,6FAA6F;QACxG,YAAY,EAAE,oBAAoB;QAClC,WAAW,EAAE,oBAAoB;QACjC,YAAY,EAAE,kBAAkB;QAChC,eAAe,EAAE,mBAAmB;QACpC,aAAa,EAAE,mBAAmB;QAClC,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE;YACP,mHAAmH;YACnH,8EAA8E;YAC9E,mFAAmF;YACnF,2HAA2H;SAC5H;KACF;CACF,CAAC;AAEF,eAAe,EAAE,CAAC"}
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-beta.1",
7
+ "version": "1.5.14",
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
- }