Skip to content

Sizing and caching #58

Answered by pkozul
Alfiegerner asked this question in Q&A
Mar 2, 2021 · 3 comments · 13 replies
Discussion options

You must be logged in to vote

Hi @Alfiegerner

You can now control the cache in several ways (using cache: true or cache: false):

  • Main floorplan SVG file and CSS file
title: Light
config:
  image:
    location: /local/floorplan/examples/light/light.svg
    cache: true
  stylesheet:
    location: /local/floorplan/examples/light/light.css
    cache: true
  • Loading images in your rules (floorplan.image_set)
    rules:
      - entity: light.garage
        state_action:
          action: call-service
          service: floorplan.image_set
          service_data:
            image: /local/floorplan/examples/home/light_${entity.state}.svg
            cache: true

Available in the latest version (v1.0.20): https://raw.githu…

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@Alfiegerner
Comment options

@pkozul
Comment options

pkozul Mar 2, 2021
Collaborator

Comment options

You must be logged in to vote
4 replies
@pkozul
Comment options

pkozul Mar 2, 2021
Collaborator

@Alfiegerner
Comment options

@pkozul
Comment options

pkozul Mar 2, 2021
Collaborator

@Alfiegerner
Comment options

Comment options

You must be logged in to vote
7 replies
@pkozul
Comment options

pkozul Mar 20, 2021
Collaborator

@pkozul
Comment options

pkozul Mar 20, 2021
Collaborator

@exetico
Comment options

@Alfiegerner
Comment options

@pkozul
Comment options

pkozul Mar 21, 2021
Collaborator

Answer selected by pkozul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants