Sian-Lee-SA / honeycomb-menu

Honeycomb menu is a Home Assistant module (not a card) that can be applied to any lovelace card. When activated by the defined action on said card, the module will display a 'rounded' list of honeycomb buttons with an optional XY pad to make interfacing with lovelace more fluent
Other
203 stars 11 forks source link

XYPad unable to access variables #72

Closed hilburn closed 1 month ago

hilburn commented 1 month ago

Playing around with the XYPad I've found that it seems unable to access the 'variables' defined in the honeycomb menu servicedata

Minimal reproducible code:

action: call-service
service: honeycomb
service_data:
  variables: 
    temperature: 15
  xy_pad:
    x:
      service: notify.persistent_notification
      service_data:
        data:
          notification_id: "test"
        message: '[[[ return JSON.stringify(variables) ]]]'

Output: image

The variables are being set as the buttons are able to access them normally, but I can't seem to get anything within the xy_pad key to return anything other than an empty object.

Sian-Lee-SA commented 1 month ago

Added in 0.13.3