iobroker.senec 1.1.1 → 1.3.3

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/LICENSE CHANGED
@@ -1,7 +1,9 @@
1
- Copyright (c) 2021 NoBl <github@bluemle.org>
1
+ Copyright (c) 2022 NoBl <github@bluemle.org>
2
2
 
3
3
  MIT License
4
4
 
5
+ Copyright (c) 2022 Author <author@mail.com>
6
+
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
8
  of this software and associated documentation files (the "Software"), to deal
7
9
  in the Software without restriction, including without limitation the rights
package/README.md CHANGED
@@ -5,13 +5,11 @@
5
5
  [![Downloads](https://img.shields.io/npm/dm/iobroker.senec.svg)](https://www.npmjs.com/package/iobroker.senec)
6
6
  ![Number of Installations (latest)](http://iobroker.live/badges/senec-installed.svg)
7
7
  ![Number of Installations (stable)](http://iobroker.live/badges/senec-stable.svg)
8
- [![Dependency Status](https://img.shields.io/david/nobl/iobroker.senec.svg)](https://david-dm.org/nobl/iobroker.senec)
9
8
  [![Known Vulnerabilities](https://snyk.io/test/github/nobl/ioBroker.senec/badge.svg)](https://snyk.io/test/github/nobl/ioBroker.senec)
10
9
 
11
10
  [![NPM](https://nodei.co/npm/iobroker.senec.png?downloads=true)](https://nodei.co/npm/iobroker.senec/)
12
11
 
13
12
  **Tests:** ![Test and Release](https://github.com/nobl/ioBroker.senec/workflows/Test%20and%20Release/badge.svg)
14
- **Tests Travis:** [![Travis-CI](http://img.shields.io/travis/nobl/ioBroker.senec/master.svg)](https://travis-ci.org/nobl/ioBroker.senec)
15
13
 
16
14
  ## senec adapter for ioBroker
17
15
 
@@ -40,7 +38,7 @@ Systems that might work:
40
38
  * Senec Business V2 3ph / Lithium
41
39
  * ADS Tec
42
40
  * OEM LG
43
- * Solarinvert Storage 10.0 / Blei,
41
+ * Solarinvert Storage 10.0 / Blei
44
42
 
45
43
  ## Installation
46
44
  You can either install the adapter via the ioBroker web interface or on your local machine via npm.
@@ -91,6 +89,41 @@ Here you can find a description of the states and how to use them. All states of
91
89
 
92
90
  *Read-only boolean which is true if the adapter is connected to the senec system.*
93
91
 
92
+ #### Channel: _calc
93
+ This channel contains calculated values. Currently these are day/week/month/year values at specific data points.
94
+
95
+ * xxx.refDay/Week/Month/Year
96
+
97
+ |Data type|Permission|
98
+ |:---:|:---:|
99
+ |number|W|
100
+
101
+ *Modifiable number indicating for which day/week/month/year the data is valid.
102
+
103
+ * xxx.refValue/Week/Mont/Year
104
+
105
+ |Data type|Permission|
106
+ |:---:|:---:|
107
+ |number|W|
108
+
109
+ *Modifiable number indicating what the reference value is for calculating the current value.
110
+
111
+ * xxx.today/week/month/year
112
+
113
+ |Data type|Permission|
114
+ |:---:|:---:|
115
+ |number|W|
116
+
117
+ *Modifiable number representing the current value for day/week/month/year of the corresponding data point.
118
+
119
+ * xxx.yesterday/lastWeek/lastMonth/lastYear
120
+
121
+ |Data type|Permission|
122
+ |:---:|:---:|
123
+ |number|W|
124
+
125
+ *Modifiable number representing the previous value for day/week/month/year of the corresponding data point.
126
+
94
127
  #### Channel: BMS
95
128
 
96
129
  * MODULES_CONFIGURED
@@ -337,6 +370,28 @@ Here you can find a description of the states and how to use them. All states of
337
370
  *Read-only number, which designates the number of wallbox [0..3]. This is only available on systems with configured wallboxes.*
338
371
 
339
372
  ## Changelog
373
+ ### 1.3.3 (NoBl)
374
+ * Updated to current template.
375
+
376
+ ### 1.3.2 (NoBl)
377
+ * Autarky without decimal places (again). They are causing more updates than we really need.
378
+ * Autarky values won't reset to 0 at change of timeframe (day, week, ...) anymore. They are calculated based on reference values anyways.
379
+ * Ensuring that only values meant to be changeable by user are defined so (attribute changes upon the next update of value)
380
+
381
+ ### 1.3.1 (NoBl) 20210513
382
+ * Added calculation of autarky for day/week/month/year
383
+
384
+ ### 1.3.0 (NoBl) 20210509
385
+ * Rewrote translations handling
386
+ * Added translations for wallbox status.
387
+ * Translated status get an extra datapoint with _Text as postfix. Former translations that didn't add an extra dp will now revert to their numeric representation and add the _Text DP.
388
+ * Translations are now handled via lib/state_trans.js for all 3 languages available in the senec system (german, english, italian).
389
+ * Language used is decided by the language of the SENEC appliance.
390
+
391
+ ### 1.2.0 (NoBl)
392
+ * Added datapoints for: PM1OBJ1, PM1OBJ2, EG_CONTROL, RTC, PM1, TEMPMEASURE, DEBUG, SOCKETS, CASC, WALLBOX, CONNX50, STECA (please report wrong / missing units).
393
+ * Adapter now calculates day/week/month/year-values for: STATISTIC.LIVE_GRID_EXPORT, STATISTIC.LIVE_GRID_IMPORT, STATISTIC.LIVE_HOUSE_CONS, STATISTIC.LIVE_PV_GEN, STATISTIC.LIVE_BAT_CHARGE_MASTER, STATISTIC.LIVE_BAT_DISCHARGE_MASTER. Calculated values can be found below the "_calc." datapoint. Information about daily values was removed from the API by SENEC in the past. So here we go again ...
394
+
340
395
  ### 1.1.1 (NoBl)
341
396
  * Object attributes are updated to what they are expected to be: unit, description, datatype (this will break anything that still relies on datapoints being STRING that aren't meant to be string)
342
397
 
@@ -345,77 +400,12 @@ Here you can find a description of the states and how to use them. All states of
345
400
  * Integrated GitHub Testing and auto npm publishing
346
401
  * Some other administrative updates
347
402
 
348
- ### 1.0.13 (NoBl)
349
- * Added System Description 19 for Senec.Home V3 Hybrid (Credits to noffycws)
350
- * Added Mode Descriptions for 86-91. (Credits to noffycws)
351
-
352
- ### 1.0.12 (NoBl)
353
- * Just set 'supportCustoms' to false so it won't show up in admin custom config.
354
-
355
- ### 1.0.11 (NoBl)
356
- * Update to current adapter template
357
- * Added Datapoints: PV1.MPP_CUR, MPP_VOL, MPP_POWER (former: MPP_INT which is unused at this moment but does still exist)
358
- * Added Datapoints (please feedback any improvements for their descriptions, ...): FEATURES.SGREADY, WIZARD.SETUP_WALLBOX_MAX_TOTAL_CURRENT_BY_GRID, WIZARD.SG_READY_CURR_MODE, BMS.ERROR, BMS.RECOVERLOCKED, BMS.SERIAL, BMS.START_SELFTEST, BAT1.RESET, BAT1.SELFTEST_ACT, BAT1.SELFTEST_LIMIT, BAT1.SELFTEST_OFF, BAT1.SELFTEST_OVERALL_STATE, BAT1.SELFTEST_STATE, BAT1.SELFTEST_STEP, BAT1.SELFTEST_TIME, BAT1.SERIAL, BAT1.TRIG_ITALY_SELF, BAT1OBJ1.COMM, GRIDCONFIG.AU_SOFT_RAMP_EN, GRIDCONFIG.AU_VRR_MAX, GRIDCONFIG.AU_VRR_MIN, GRIDCONFIG.AU_VVAR_PERCENTAGE, GRIDCONFIG.AU_VVAR_P_MAX, GRIDCONFIG.AU_VVAR_P_MIN, GRIDCONFIG.AU_VVAR_VOLTAGE, GRIDCONFIG.AU_VWC_VOLTAGE, GRIDCONFIG.AU_VWD_VOLTAGE, GRIDCONFIG.CEI_SEGNALE_ESTERNO, GRIDCONFIG.VDELVFRTDISABLE, GRIDCONFIG.VDEURMSMAX10
359
-
360
- ### 1.0.10 (NoBl, smartpran)
361
- * DateType objects are stored as date again
362
- * changed WIZARD.SETUP_POWER_RULE unit to '%'
363
- * changed name of STATISTIC.STAT_SUM_E_PU to "STAT_SUM Energy PowerUnit"
364
- * changed name of STATISTIC.STAT_SUM_E_WB to "STAT_SUM Energy Wallbox"
365
- * changed name of STATISTIC.LIVE_WB_ENERGY to "Live Wallbox Energy"
366
- * changed name of STATISTIC.LIVE_PU_ENERGY to "Live PowerUnit Energy"
367
- * changed name of WIZARD.PWRCFG_PEAK_PV_POWER to "Configured Peak PV Power"
368
- * enforcing conversion of number values to Number(). Otherwise they are created as String in ioBroker (manually delete existing datapoints in ioBroker to change them!)
369
- * fixed representation for temp values (off by *10)
370
- * json delivers a non-value (apparently an error message produced by senec itself). Ignoring that.
371
- * Added variable mpp_int to high priority and changed unit it. (smartpran)
372
-
373
- ### 1.0.9 (NoBl)
374
- * IP types are shown as IP again.
375
- * added datapoints for FACTORY along with more state descriptions for Battery Type, Country and System Type.
376
- * added datapoints for GRIDCONFIG
377
-
378
- ### 1.0.8 (NoBl)
379
- * Added more states to known states (please feedback if they need special handling (unit, special description, value modification, ...))
380
- * Bugfix in creating debug data
381
- * Unknown states are now reported in debug instead of info.
382
- * Code cleanup
383
-
384
- ### 1.0.7 (NoBl)
385
- * Reading all known states from SENEC.
386
- * Split states into high/low priority (heavy requesting the SENEC system renders it unable to sync with the SENEC datacenter!).
387
- * Updated adapter-core and testing versions along with current dev dependencies. Removed node 8 support.
388
- * Added more state descriptions to manual. But need input on these and those that are still not documented.
389
-
390
- ### 1.0.6 (NoBl)
391
- * Moved senec states and state attributes to libs
392
- * Added missing state descriptions
393
-
394
- ### 1.0.5 (2020-03-07) (NoBl)
395
- * Added States for: Energy: GUI_BAT_DATA_VOLTAGE, GUI_BAT_DATA_CURRENT, STAT_HOURS_OF_OPERATION; Sys_update: NPU_VER, NPU_IMAGE_VERSION, Wizard: APPLICATION_VERSION, INTERFACE_VERSION
396
- * Readme and Documentation (EN exists, now) updated
397
- * Changed behavior for unknown values completely. They will now be stored as string plus prefixed with "REPORT TO DEV:" so users can easily report back what needs updating.
398
- * added handling for "st_" values in json
399
- * added additional configuration options
400
- * changed retry-behaviour in case of connection issues, ...
401
-
402
- ### 1.0.4 (2020-03-06)
403
- * (NoBl) Repo URL updated
404
- ### 1.0.3 (2020-03-06)
405
- * (NoBl) added link to documentation in german
406
- ### 1.0.2 (2020-03-04)
407
- * (NoBl) added missing status codes (85 in total now)
408
- * (NoBl) added status code to status message for easier reference
409
- * (NoBl) added states for wallboxes and battery modules
410
- ### 1.0.1
411
- * (NoBl) updated readme
412
- ### 1.0.0
413
- * (NoBl) initial release
403
+ ### [Former Updates](CHANGELOG_old.md)
414
404
 
415
405
  ## License
416
406
  MIT License
417
407
 
418
- Copyright (c) 2021 Norbert Bluemle <github@bluemle.org>
408
+ Copyright (c) 2022 Norbert Bluemle <github@bluemle.org>
419
409
 
420
410
  Permission is hereby granted, free of charge, to any person obtaining a copy
421
411
  of this software and associated documentation files (the "Software"), to deal
@@ -51,6 +51,8 @@
51
51
  var $this = $(this);
52
52
  if ($this.attr('type') === 'checkbox') {
53
53
  obj[$this.attr('id')] = $this.prop('checked');
54
+ } else if ($this.attr('type') === 'number') {
55
+ obj[$this.attr('id')] = parseFloat($this.val());
54
56
  } else {
55
57
  obj[$this.attr('id')] = $this.val();
56
58
  }
package/admin/style.css CHANGED
@@ -1,32 +1,32 @@
1
1
  /* You can delete those if you want. I just found them very helpful */
2
- * {
3
- box-sizing: border-box
4
- }
5
- .m {
6
- /* Don't cut off dropdowns! */
7
- overflow: initial;
8
- }
9
- .m.adapter-container,
10
- .m.adapter-container > div.App {
11
- /* Fix layout/scrolling issues with tabs */
12
- height: 100%;
13
- width: 100%;
14
- position: relative;
15
- }
16
- .m .select-wrapper + label {
17
- /* The positioning for dropdown labels is messed up */
18
- transform: none !important;
19
- }
20
-
21
- label > i[title] {
22
- /* Display the help cursor for the tooltip icons and fix their positioning */
23
- cursor: help;
24
- margin-left: 0.25em;
25
- }
26
-
27
- .dropdown-content {
28
- /* Don't wrap text in dropdowns */
29
- white-space: nowrap;
30
- }
31
-
32
- /* Add your styles here */
2
+ * {
3
+ box-sizing: border-box
4
+ }
5
+ .m {
6
+ /* Don't cut off dropdowns! */
7
+ overflow: initial;
8
+ }
9
+ .m.adapter-container,
10
+ .m.adapter-container > div.App {
11
+ /* Fix layout/scrolling issues with tabs */
12
+ height: 100%;
13
+ width: 100%;
14
+ position: relative;
15
+ }
16
+ .m .select-wrapper + label {
17
+ /* The positioning for dropdown labels is messed up */
18
+ transform: none !important;
19
+ }
20
+
21
+ label > i[title] {
22
+ /* Display the help cursor for the tooltip icons and fix their positioning */
23
+ cursor: help;
24
+ margin-left: 0.25em;
25
+ }
26
+
27
+ .dropdown-content {
28
+ /* Don't wrap text in dropdowns */
29
+ white-space: nowrap;
30
+ }
31
+
32
+ /* Add your styles here */