Hello,
I’m testing a simple light bulb on my floorplan svg card. The lightbulb svg should only turn on and off the light. I’ve so imported the lightbulb into my background svg, given the right id and then uploaded to my HA setup. It works, and the bulb changes correctly color pressing it, but strange is, the icon is not placed in the middle of the room, instead in the top left corner of the image. Ideas why?
Here the code:
config:
image: /local/community/lovelace-floorplan/xefilhome/xefilhometest.svg?v=1.1.14
log_level: error
rules:
- action:
service: homeassistant.toggle
element: light.dimmer_switch_15
entity: light.dimmer_switch_15
image_template: >-
/local/community/lovelace-floorplan/xefilhome/lightbulb_${entity.state}.svg
more_info: false
title: XefilHome TEST
type: 'custom:floorplan-card'
Thanks a lot!
Simon