Experimentelle geführte Erstellung der Konfigurationsdatei (#1888)
Dies ist eine experimentelle Umsetzung im folgenden aufgeführten Ziele. Wie es verwendet: - Start über `evcc configure` - Die Konfiguration wird in evcc.yaml geschrieben. Falls diese existiert kann ein alternativer Dateiname angegeben werden Was es kann: - Eine geführte Erstellung der Konfigurationsdatei - Direktes Testen ob die Konfiguration jedes Gerätes auch funktioniert - Konfigurationsabhängigkeiten durch direkte Konfiguration der Abhängigkeit lösen (z.B. Sponsorshipt required) - Konfiguration in für Anwender bekannte Informationen und möglichst wenig Informationseingabe zu ermöglichen, z.B. anhand von Produkten anstatt aus der Implementierungssicht - Bisherige Konfiguration funktioniert weiter
This commit is contained in:
parent
3c311b6234
commit
7e41a970d5
37 changed files with 2951 additions and 71 deletions
|
|
@ -20,6 +20,13 @@ import (
|
|||
"github.com/grandcat/zeroconf"
|
||||
)
|
||||
|
||||
var EEBUSDetails = communication.ManufacturerDetails{
|
||||
BrandName: "EVCC",
|
||||
DeviceName: "EVCC",
|
||||
DeviceCode: "EVCC_HEMS_01",
|
||||
DeviceAddress: "EVCC_HEMS",
|
||||
}
|
||||
|
||||
type EEBusClientCBs struct {
|
||||
onConnect func(string, ship.Conn) error
|
||||
onDisconnect func(string)
|
||||
|
|
@ -100,12 +107,7 @@ func NewEEBus(other map[string]interface{}) (*EEBus, error) {
|
|||
}
|
||||
|
||||
func (c *EEBus) DeviceInfo() communication.ManufacturerDetails {
|
||||
return communication.ManufacturerDetails{
|
||||
BrandName: "EVCC",
|
||||
DeviceName: "EVCC",
|
||||
DeviceCode: "EVCC_HEMS_01",
|
||||
DeviceAddress: "EVCC_HEMS",
|
||||
}
|
||||
return EEBUSDetails
|
||||
}
|
||||
|
||||
func (c *EEBus) Register(ski string, shipConnectHandler func(string, ship.Conn) error, shipDisconnectHandler func(string)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue