KSE: Disable 1p3p support (#3919)

This commit is contained in:
premultiply 2022-07-22 14:33:52 +02:00 • committed by GitHub
parent 4294fe3f0d
commit 157752ca98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 13 deletions

View file

@ -45,8 +45,9 @@ const (
kseRegActualPower = 0x18 // Aktuelle Ladeleistung (W)
kseRegFirmwareVersion = 0x30 // Firmware Version
kseRegRFIDinstalled = 0x31 // RFID-Leser vorhanden
kseRegRelayMode = 0x35 // Umschalten 1 phasiges oder 3 phasiges Laden
kseRegNFCTransactionID = 0x67 // Tag ID (8 Bytes)
// kseRegRelayMode = 0x35 // Umschalten 1 phasiges oder 3 phasiges Laden
)
func init() {
@ -202,18 +203,18 @@ func (wb *KSE) Currents() (float64, float64, float64, error) {
return curr[0], curr[1], curr[2], nil
}
var _ api.ChargePhases = (*KSE)(nil)
// var _ api.ChargePhases = (*KSE)(nil)
// Phases1p3p implements the api.ChargePhases interface
func (wb *KSE) Phases1p3p(phases int) error {
var b uint16 = 0
if phases == 1 {
b = 1 // 1p
}
// // Phases1p3p implements the api.ChargePhases interface
// func (wb *KSE) Phases1p3p(phases int) error {
// var b uint16 = 0
// if phases == 1 {
// b = 1 // 1p
// }
_, err := wb.conn.WriteSingleRegister(kseRegRelayMode, b)
return err
}
// _, err := wb.conn.WriteSingleRegister(kseRegRelayMode, b)
// return err
// }
// Identify implements the api.Identifier interface
func (wb *KSE) identify() (string, error) {

View file

@ -3,7 +3,7 @@ products:
- brand: KSE
description:
generic: wBX16
capabilities: ["1p3p", "rfid"]
capabilities: ["rfid"]
requirements:
evcc: ["sponsorship"]
params:

View file

@ -1,7 +1,7 @@
product:
brand: KSE
description: wBX16
capabilities: ["1p3p", "rfid"]
capabilities: ["rfid"]
requirements: ["sponsorship"]
render:
- default: |