Honor AllowControl setting (#662)

This commit is contained in:
premultiply 2021-02-12 08:07:32 +01:00 • committed by GitHub
parent cc335b1f9e
commit 1ef6528f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -368,7 +368,7 @@ func (s *SEMP) deviceStatus(id int, lp core.LoadPointAPI) DeviceStatus {
res := DeviceStatus{
DeviceID: s.deviceID(id),
EMSignalsAccepted: isPV,
EMSignalsAccepted: s.controllable && isPV,
PowerInfo: PowerInfo{
AveragePower: int(chargePower),
AveragingInterval: 60,