Skip to content

Percentage of solar energy production #305

Answered by stepsolar
stepsolar asked this question in Q&A
Discussion options

You must be logged in to vote

this way works but still not a good result, thanks for helping me

            - name: panel1
              element: colorblu1
              entity: sensor.percentuale_produzione_panel_1_oggi
              state_action:
                action: call-service
                service: floorplan.style_set
                service_data:
                  style: |
                    >
                    return `
                      fill-opacity:${parseFloat((entity.state)/100)};
                    `; 

Replies: 3 comments 27 replies

Comment options

You must be logged in to vote
12 replies
@exetico
Comment options

@stepsolar
Comment options

@stepsolar
Comment options

@OzGav
Comment options

@stepsolar
Comment options

Comment options

You must be logged in to vote
14 replies
@stepsolar
Comment options

@stepsolar
Comment options

@exetico
Comment options

@stepsolar
Comment options

@stepsolar
Comment options

Answer selected by stepsolar
Comment options

You must be logged in to vote
1 reply
@exetico
Comment options

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