From e087276bebdc56472303bc5cca7d1e72f44414f1 Mon Sep 17 00:00:00 2001 From: andig Date: Fri, 24 Oct 2025 15:01:28 +0200 Subject: [PATCH] Messaging: resolve pointer values --- push/hub.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/push/hub.go b/push/hub.go index ff6b65b57..64c0fcc67 100644 --- a/push/hub.go +++ b/push/hub.go @@ -2,6 +2,7 @@ package push import ( "fmt" + "reflect" "strings" "text/template" @@ -72,7 +73,14 @@ func (h *Hub) apply(ev Event, tmpl string) (string, error) { // get all values from cache for _, p := range h.cache.All() { if p.Loadpoint == nil || ev.Loadpoint == p.Loadpoint { - attr[p.Key] = p.Val + val := p.Val + + // resolve pointers (https://github.com/evcc-io/evcc/issues/24688) + if rv := reflect.ValueOf(p.Val); rv.Kind() == reflect.Pointer && !rv.IsNil() { + val = rv.Elem().Interface() + } + + attr[p.Key] = val } }