Open patienttruth opened 3 months ago
I think the visual editor for the card is broken, but haven't had a chance to debug and fix it yet.
I think the visual editor for the card is broken, but haven't had a chance to debug and fix it yet.
Right on. Thanks for everything, just wanted to report so it can be on the radar.
I think the visual editor for the card is broken, but haven't had a chance to debug and fix it yet.
Right on. Thanks for everything.
Checklist:
Release with the issue: V3.3.0 Last working release (if known): NA Browser and Operating System:
Librewolf, Windows 10
Description of problem:
I created a custom slider card to control lights.
I set the light entity
Under icon I set the action to "Call Service"
Set Service to "light.turn_on".
Set Target to "light.example_light_entity".
Test by clicking light bulb icon
Result:![image](https://github.com/custom-cards/slider-button-card/assets/105557996/0499fad1-5b33-409e-bc26-76f54ed9839c)
Code generated:
Do a bunch of troubleshooting...
Find list of YAML on Github
modify "target:" to "service_data:"
Icon calls service properly.
So, I'm not sure if it's HA generating the YAML or the card generating it but depending on a different (possibly older) syntax, but it's not smooth and without an explanation in docs (that I found), it took me a bit to figure it out. I don't have the knowledge to dive into the code on this one, but just wanted to make mention in case anyone has the same issue, or is interested in finding a solution outside of manually changing the YAML each time a visual edit is made in that area of the card.
Thanks to everyone maintaining this! You all are awesome and appreciated. I wish I could be more helpful that just bringing this up.
Javascript errors shown in the web inspector (if applicable):
Additional information: