Skip to content

New day new problems/ideas #412

Closed Answered by Trzinka
Trzinka asked this question in Q&A
Discussion options

You must be logged in to vote

The solution is as follows:

                    - entities:
                        - sensor.me_bo_current_consumption
                      tap_action: false
                      state_action:
                        action: call-service
                        service: floorplan.class_set
                        service_data:
                          class: >-
                            ${(parseFloat(entity.state) > 0.5) ? "switch-on" :
                            "switch-off"}
                    - entities:
                        - sensor.me_hora_current_consumption
                      tap_action: false
                      state_action:
                        action: call-ser…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Trzinka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants