Skip to content

Total kWh from CT1 and CT2 only? #158

Answered by pyrodex
zwizard asked this question in Q&A
Discussion options

You must be logged in to vote

Are you running ESPHome? If so you could do the following:

This should be in your configuration already:

#Total Watts
  - platform: template
    name: ${disp_name} Total Watts
    id: totalWatts
    lambda: return id(ct1Watts).state + id(ct2Watts).state + id(ct3Watts).state + id(ct4Watts).state + id(ct5Watts).state + id(ct6Watts).state ;
    accuracy_decimals: 1
    unit_of_measurement: W
    device_class: energy
    update_interval: ${update_time}

Just copy and paste it and in the lambda line just remove the ones you don't care about in the SUM, also don't forget to rename it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zwizard
Comment options

@CircuitSetup
Comment options

@zwizard
Comment options

Answer selected by CircuitSetup
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