I can’t work out what’s causing the issue. Is there a way to see the actual service call including the data that is sent when the button is pressed, to see how it looks? Can anyone spot what the issue might be? It’s been puzzling me for days and there isn’t much to go on searching for Honeycomb menu.
Incidentally (and to satisfy my curiosity), I just thought I’d try using javascript (I’m no expert but it’s used in some of my custom cards) and tried this and it works…
data:
domain: system_log
service: write
service_data:
logger: frontend.js.latest.202401040
message: >-
Unhandled promise rejection from Edge 120.0.0.0 on Windows 10
HoneyCombJSTemplateError: ReferenceError: state_attr is not defined in
'return `${state_attr['climate.lounge'].temperature}`'
eval (/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1757)
/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1834
ct (/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:2027)
/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1626
ct (/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1609)
/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1626
ct (/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1609)
/hacsfiles/honeycomb-menu/honeycomb-menu.js:24:1626
level: debug
origin: LOCAL
Unfortunately I’m not qualified to interpret this error, but I’m confused why the service call works despite the error. Is it an ‘acceptable’ error, if there is such a thing?
All you really need to understand here is that the frontend is the wild wild west with templates. A general rule is: You cannot use any template in any frontend card unless the documents mention that you can.