Skip to content

Create new entity based on math operation #296

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

You must be logged in to vote

This seems to be working: to get the approximation of the AC power:

 - platform: template
    name: "Power AC"
    id: ACPower
    unit_of_measurement: "W"
    update_interval: 10s
    lambda: return id(total_power).state-id(cir1).state-id(cir2).state-id(cir3).state-id(cir4).state-id(cir5).state-id(cir6).state-id(cir7).state-id(cir8).state-id(cir9).state-id(cir10).state-id(cir11).state-id(cir12).state-id(cir13).state-id(cir14).state-id(cir15).state-id(cir16).state;

And the for the AC energy, I added one line under - platform: total_daily_energy

- { power_id: ACPower, platform: total_daily_energy, accuracy_decimals: 0, name: "Energy AC Power" }

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ganzziani
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gekkehenkie11
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
2 participants