Open lageorgem opened 1 month ago
Well, unfortunately you are correct. I broke this functionality in the last refactoring, thank you for reporting it.
You can use the following workaround until this issue is fixed:
tiles:
- label: Change map
icon: mdi:shower
entity: script.change_vacuum_map
tooltip: Change map to Bathroom
order: 4
translations:
"off": Bathroom
"on": Bathroom
tap_action:
action: call-service
service: script.change_vacuum_map
service_data:
map_id: 1
Checklist
The problem
I am trying to create a tile that displays a value from internal_variables, as documented in the readme. It seems, however, that a tile cannot display values from internal_variables, as they cannot be rendered without an entity_id, and will not display the internal_variable value with an entity_id.
At this line you can see the code will not continue without an entity, but at this line you can see the branch of the code that looks up internal_variables cannot be reached with an entity set.
What version of a card has described problem?
v2.2.2
What was the last working version card?
No response
What vacuum model do you have problems with?
roborock.vacuum.s5e
Which integration do you use to control your vacuum (link)?
https://www.home-assistant.io/integrations/xiaomi_miio/
What browser (browsers/apps) does have this problem?
Chrome
What version of Home Assistant do you use?
core-2024.5.5
What type of installation are you running?
Home Assistant OS
Card's configuration
Javascript errors shown in the browser's console (if applicable)
No response
Additional information
No response