Commit graph

55 commits

Author SHA1 Message Date
Andreas Linde
28d60a5993
Honor advanced setting in templates defaults.yaml (#5965) 2023-01-31 22:44:40 +01:00
andig
06fdeab7a5 chore: copy usages 2023-01-17 22:22:45 +01:00
andig
fb899d33ae
Add capacity option to all battery templates (#5725) 2023-01-17 21:59:07 +01:00
andig
b508f5025f chore: fix typo 2023-01-17 20:00:29 +01:00
andig
b386fdd10f Fix race condition in loading templates 2022-11-06 12:15:56 +01:00
Andreas Linde
d408767b2d
Configure: fix handling of PV systems (#4806)
- The configure intents to present devices that implement multiple usages in a single device or have linked templates and provide an easier step by step configuration experience e.g. by not asking for the same data for different usages over and over again
- Commit 880557594f changes this behaviour and now presents all devices that have multiple usages, e.g. meters that could be used as battery or pv meter
- This change introduces a new property `allineone` that should be used with the `usage` `param` the identify a device that implements multiple usages in the same device
- The filter to present these devices is extended by checking for this property
2022-10-13 13:57:15 +02:00
andig
06fa749039 Templates: simplify shortening text 2022-10-02 20:28:41 +02:00
andig
2b5a0e41cf chore: use slices 2022-10-02 20:13:28 +02:00
andig
3a3f6cb4ec chore: fix title use 2022-10-02 19:55:20 +02:00
andig
cb3f393572
Templates: remove unused parameter dependencies (#4699) 2022-10-02 19:51:08 +02:00
andig
b5b73bd107 Templates: simplify language handling 2022-10-02 19:42:26 +02:00
andig
880557594f
Templates: simplify guided setup (#4698) 2022-10-02 19:09:30 +02:00
andig
f06922b298
Fronius Gen24: fix integer deprecated (#4602) 2022-09-27 17:43:27 +02:00
andig
8ca91959ae Templates: simplify rendering of instances 2022-09-25 12:05:26 +02:00
andig
a194c2302a Templates: simplify handling default values 2022-09-17 20:21:02 +02:00
andig
cd906fd8e1
Templates: allow keys in arbitrary case (#4499)
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
2022-09-17 19:25:31 +02:00
andig
2492e4b0ae Quote of leading zeros 2022-09-13 17:48:43 +02:00
andig
0344cf2b1c Templates: fix quoting strings with leading zeros 2022-09-12 17:18:15 +02:00
andig
5662d0e55b Fix defaults not applied and improve testability (#3777) 2022-07-22 11:00:33 +02:00
andig
815cc58555 chore: apply gofumpt 2022-07-12 11:20:05 +02:00
andig
886fe1843c
Document api.ChargerEx and api.Identifier capabilities (#3679) 2022-06-21 12:47:45 +02:00
andig
7335af2543
Templates: fix modbus defaults not applied to configuration (#3635) 2022-06-16 17:26:49 +02:00
andig
228521d5f0 Yaml: test leading # 2022-06-11 13:35:53 +02:00
andig
69bdae685c Yaml: selectively quote leading zeros (#3595) 2022-06-06 14:23:15 +02:00
andig
31eb3e25fd configure: handle modbus template errors 2022-05-17 09:06:50 +02:00
andig
1aaa80e69b
Mbmd: support non-Sunspec meters using ModbusTCP (#3354) 2022-05-11 08:23:50 +02:00
andig
bc4545e173 chore: fix linter 2022-04-17 22:36:22 +02:00
Michael Geers
d356298d53
Autoupdate Supported Brands on Website (#3133) 2022-04-12 16:35:37 +02:00
andig
50652f0833 Fix rendering yaml list 2022-04-12 09:07:12 +02:00
Markus Thierolf
ad836befed
Templates: rely on default.yaml and remove duplicate definitions (#3066) 2022-04-07 19:25:02 +02:00
andig
a419d2cc9d
Fix modbus docs (part 3) (#3085) 2022-04-06 08:28:42 +02:00
Michael Geers
ef82e20df5
fix modbus docs templates (#3084) 2022-04-04 23:22:01 +02:00
andig
ac301d8f5f
Fix modbus docs (#3082) 2022-04-04 22:04:46 +02:00
andig
2211582db3 Introduce covers attribute for obsolete templates (#3070) 2022-04-03 16:51:58 +02:00
andig
1bfd0f6355 Require Go 1.18 and use generics (#2116) 2022-04-02 12:47:26 +02:00
Michael Geers
f8a47d765b
Unify and correct templates for better results in docs (#3011) 2022-03-29 22:25:57 +02:00
andig
cef008f9af
Yaml: apply prettier (#3023) 2022-03-29 15:54:02 +02:00
andig
25fa0d6f62 Fronius Gen24: add grid meter integer access in advanced mode (#2893) 2022-03-17 16:40:58 +01:00
andig
edca31fd8f Run template tests per usage in parallel (delayed until races fixed) 2022-03-15 19:29:59 +00:00
andig
02550532dc Don't render example values for testing or timeouts will slow down tests 2022-03-15 19:26:18 +00:00
andig
6fe0331f38 chore: simplify 2022-03-02 18:55:13 +01:00
andig
29171842c8 Test and instantiate all template usages 2022-03-02 18:48:55 +01:00
Andreas Linde
33e6bd8531
Template Updates (#2447) 2022-02-17 18:16:20 +01:00
Andreas Linde
15534557a7
Configure MQTT bugfixes (#2499)
- Fix MQTT configure process crashing: This happened because it used the old language file definitions instead of the new templates defaultConfig data
- Fix MQTT meter template
- Add new valuetype `duration` to templates
2022-02-05 12:12:48 +01:00
Andreas Linde
ac8af9674e
Improve configure defaultValue handling
- simplify code
- fix comset defaults type presentation issues
2022-01-29 18:19:45 +01:00
Andreas Linde
a83d696926
Fix template handling with modbus params 2022-01-29 16:30:11 +01:00
Andreas Linde
eb67169436
Template Updates (#2392)
- Fix Powerdog template PV section
- Add Solax Hybrid X3 template
- Add Solax Cloud templates
- Add SMA Data Manager M Lite template
- Add Senec Wallbox pro s
- Update Victron template
- Improve text if no charge meter could be detected
- Add `phases` parameter for vehicles in advanced mode
2022-01-28 16:00:50 +01:00
Andreas Linde
a52f52b406
Template enhancements (#2274)
- Only add SMA HEMS Setup, if required values exist (e.g. machine-id). Also asks the user if this should be added
- New templates: Alfen, PC Electric Garo, go-e V3 (moved into separate template), Tasmota meter, Huawei inverter with Sdongle
- Updated templates: SolarEdge Inverter, Sunspec
- New capabilities can be assigned: 1p3p, RFID
- Added group information instead of `generic` flag. Used e.g. for marking power plugs or generic devices
- Requirement description text can now be markdown text (required for documentation page)
- Replaced `description` with product list, separating brand from description (required for documentation page)
- Generate newly structured documentation yaml files
- Fix https://github.com/evcc-io/evcc/issues/2385
2022-01-23 15:21:13 +01:00
Andreas Linde
cfb174f9f5
More template stuff (#2164)
Some checks failed
Default / Build (push) Failing after 2m0s
Default / Build UI (push) Failing after 13s
Release / Publish Docker :release (push) Has been cancelled
Release / call-build-workflow (push) Has been cancelled
Release / Publish Github & APT release (push) Has been cancelled
- Configure now asks for the users knowledge level, so advanced mode can be reached without calling with `--advanced`
- Add template for solaredge inverter
- Add beta template for sungrow inverter
- Add template for MQTT based meter
- Add more template documentation
- Add check and error message for invalid config properties when using templates
- Option to specify language specific template descriptions
- Option to make params dependent on values of other params 
- Option to add sponsortoken in advanced mode
- Option to set minCurrent in advanced mode
- Remove sponsorship requirement from Daheimladen wallbox
- Multiple fixes (FritzDect meter, Kostsal Piko meter, ...)
2022-01-09 12:59:54 +01:00
Andreas Linde
bfb61c4965
Various template improvements (#2119)
- Remove unused port param in senec-home template
- Support for multiple predefined param sets, also adds identifier params to Tesla, Tronity, OVMS, ...
- Properly handle optional number/float checks
- Add Dacia vehicle template
2021-12-26 17:33:32 +01:00