Configured vue2-1,2 with ckts.
This commit is contained in:
@@ -2,6 +2,56 @@ substitutions:
|
||||
device_name: emp-vue2-1
|
||||
dn: emp-vue2-1
|
||||
friendly_name: Emporia Vue2 1
|
||||
cir01name: Solar
|
||||
#TODO
|
||||
cir01phase: phase_a
|
||||
cir01mult: "1"
|
||||
cir02name: Solar
|
||||
#TODO
|
||||
cir02phase: phase_b
|
||||
cir02mult: "1"
|
||||
cir03name: Irrigation
|
||||
cir03phase: phase_a
|
||||
cir03mult: "1"
|
||||
cir04name: Heat-Pump
|
||||
cir04phase: phase_b
|
||||
cir04mult: "2"
|
||||
cir05name: Garage-Door-Opener
|
||||
cir05phase: phase_b
|
||||
cir05mult: "1"
|
||||
cir06name: Forced-Air-Unit
|
||||
cir06phase: phase_a
|
||||
cir06mult: "1"
|
||||
cir07name: Oven
|
||||
cir07phase: phase_b
|
||||
cir07mult: "2"
|
||||
cir08name: 3rd-Floor-GFI
|
||||
cir08phase: phase_b
|
||||
cir08mult: "1"
|
||||
cir09name: Refrigerator
|
||||
cir09phase: phase_a
|
||||
cir09mult: "1"
|
||||
cir10name: MBR-GFI
|
||||
cir10phase: phase_a
|
||||
cir10mult: "1"
|
||||
cir11name: Sec-Bath-GFI
|
||||
cir11phase: phase_b
|
||||
cir11mult: "1"
|
||||
cir12name: Garaga-GFI
|
||||
cir12phase: phase_b
|
||||
cir12mult: "1"
|
||||
cir13name: Dryer
|
||||
cir13phase: phase_b
|
||||
cir13mult: "1"
|
||||
cir14name: Dishwasher
|
||||
cir14phase: phase_b
|
||||
cir14mult: "1"
|
||||
cir15name: Garbage-Disposal
|
||||
cir15phase: phase_a
|
||||
cir15mult: "1"
|
||||
cir16name: Washer
|
||||
cir16phase: phase_a
|
||||
cir16mult: "1"
|
||||
|
||||
<<: !include .wifi-oss.yaml
|
||||
|
||||
@@ -142,22 +192,22 @@ sensor:
|
||||
id: phase_b_power
|
||||
filters: [*moving_avg, *pos]
|
||||
# Pay close attention to set the phase_id for each breaker by matching it to the phase/leg it connects to in the panel
|
||||
- { phase_id: phase_a, input: "1", power: { name: "Circuit 1 Power", id: cir1, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_b, input: "2", power: { name: "Circuit 2 Power", id: cir2, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_a, input: "3", power: { name: "Circuit 3 Power", id: cir3, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_a, input: "4", power: { name: "Circuit 4 Power", id: cir4, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_a, input: "5", power: { name: "Circuit 5 Power", id: cir5, filters: [ *moving_avg, *pos, multiply: 2 ] } }
|
||||
- { phase_id: phase_a, input: "6", power: { name: "Circuit 6 Power", id: cir6, filters: [ *moving_avg, *pos, multiply: 2 ] } }
|
||||
- { phase_id: phase_a, input: "7", power: { name: "Circuit 7 Power", id: cir7, filters: [ *moving_avg, *pos, multiply: 2 ] } }
|
||||
- { phase_id: phase_b, input: "8", power: { name: "Circuit 8 Power", id: cir8, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_b, input: "9", power: { name: "Circuit 9 Power", id: cir9, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_b, input: "10", power: { name: "Circuit 10 Power", id: cir10, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_a, input: "11", power: { name: "Circuit 11 Power", id: cir11, filters: [ *moving_avg, *pos, multiply: 2 ] } }
|
||||
- { phase_id: phase_a, input: "12", power: { name: "Circuit 12 Power", id: cir12, filters: [ *moving_avg, *pos, multiply: 2 ] } }
|
||||
- { phase_id: phase_a, input: "13", power: { name: "Circuit 13 Power", id: cir13, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_a, input: "14", power: { name: "Circuit 14 Power", id: cir14, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_b, input: "15", power: { name: "Circuit 15 Power", id: cir15, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: phase_a, input: "16", power: { name: "Circuit 16 Power", id: cir16, filters: [ *moving_avg, *pos ] } }
|
||||
- { phase_id: "${cir01phase}", input: "1", power: { name: "${cir01name} Power", id: cir01, filters: [ *moving_avg, *pos, multiply: "${cir01mult}" ] } }
|
||||
- { phase_id: "${cir02phase}", input: "2", power: { name: "${cir02name} Power", id: cir02, filters: [ *moving_avg, *pos, multiply: "${cir02mult}" ] } }
|
||||
- { phase_id: "${cir03phase}", input: "3", power: { name: "${cir03name} Power", id: cir03, filters: [ *moving_avg, *pos, multiply: "${cir03mult}" ] } }
|
||||
- { phase_id: "${cir04phase}", input: "4", power: { name: "${cir04name} Power", id: cir04, filters: [ *moving_avg, *pos, multiply: "${cir04mult}" ] } }
|
||||
- { phase_id: "${cir05phase}", input: "5", power: { name: "${cir05name} Power", id: cir05, filters: [ *moving_avg, *pos, multiply: "${cir05mult}" ] } }
|
||||
- { phase_id: "${cir06phase}", input: "6", power: { name: "${cir06name} Power", id: cir06, filters: [ *moving_avg, *pos, multiply: "${cir06mult}" ] } }
|
||||
- { phase_id: "${cir07phase}", input: "7", power: { name: "${cir07name} Power", id: cir07, filters: [ *moving_avg, *pos, multiply: "${cir07mult}" ] } }
|
||||
- { phase_id: "${cir08phase}", input: "8", power: { name: "${cir08name} Power", id: cir08, filters: [ *moving_avg, *pos, multiply: "${cir08mult}" ] } }
|
||||
- { phase_id: "${cir09phase}", input: "9", power: { name: "${cir09name} Power", id: cir09, filters: [ *moving_avg, *pos, multiply: "${cir09mult}" ] } }
|
||||
- { phase_id: "${cir10phase}", input: "10", power: { name: "${cir10name} Power", id: cir10, filters: [ *moving_avg, *pos, multiply: "${cir10mult}" ] } }
|
||||
- { phase_id: "${cir11phase}", input: "11", power: { name: "${cir11name} Power", id: cir11, filters: [ *moving_avg, *pos, multiply: "${cir11mult}" ] } }
|
||||
- { phase_id: "${cir12phase}", input: "12", power: { name: "${cir12name} Power", id: cir12, filters: [ *moving_avg, *pos, multiply: "${cir12mult}" ] } }
|
||||
- { phase_id: "${cir13phase}", input: "13", power: { name: "${cir13name} Power", id: cir13, filters: [ *moving_avg, *pos, multiply: "${cir13mult}" ] } }
|
||||
- { phase_id: "${cir14phase}", input: "14", power: { name: "${cir14name} Power", id: cir14, filters: [ *moving_avg, *pos, multiply: "${cir14mult}" ] } }
|
||||
- { phase_id: "${cir15phase}", input: "15", power: { name: "${cir15name} Power", id: cir15, filters: [ *moving_avg, *pos, multiply: "${cir15mult}" ] } }
|
||||
- { phase_id: "${cir16phase}", input: "16", power: { name: "${cir16name} Power", id: cir16, filters: [ *moving_avg, *pos, multiply: "${cir16mult}" ] } }
|
||||
- platform: template
|
||||
name: "Total Power"
|
||||
lambda: return id(phase_a_power).state + id(phase_b_power).state;
|
||||
@@ -174,15 +224,15 @@ sensor:
|
||||
name: "Balance Power"
|
||||
lambda: !lambda |-
|
||||
return max(0.0f, 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(cir01).state -
|
||||
id(cir02).state -
|
||||
id(cir03).state -
|
||||
id(cir04).state -
|
||||
id(cir05).state -
|
||||
id(cir06).state -
|
||||
id(cir07).state -
|
||||
id(cir08).state -
|
||||
id(cir09).state -
|
||||
id(cir10).state -
|
||||
id(cir11).state -
|
||||
id(cir12).state -
|
||||
@@ -199,19 +249,19 @@ sensor:
|
||||
name: "Balance Daily Energy"
|
||||
power_id: balance_power
|
||||
accuracy_decimals: 0
|
||||
- { power_id: cir1, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 1 Daily Energy" }
|
||||
- { power_id: cir2, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 2 Daily Energy" }
|
||||
- { power_id: cir3, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 3 Daily Energy" }
|
||||
- { power_id: cir4, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 4 Daily Energy" }
|
||||
- { power_id: cir5, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 5 Daily Energy" }
|
||||
- { power_id: cir6, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 6 Daily Energy" }
|
||||
- { power_id: cir7, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 7 Daily Energy" }
|
||||
- { power_id: cir8, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 8 Daily Energy" }
|
||||
- { power_id: cir9, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 9 Daily Energy" }
|
||||
- { power_id: cir10, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 10 Daily Energy" }
|
||||
- { power_id: cir11, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 11 Daily Energy" }
|
||||
- { power_id: cir12, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 12 Daily Energy" }
|
||||
- { power_id: cir13, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 13 Daily Energy" }
|
||||
- { power_id: cir14, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 14 Daily Energy" }
|
||||
- { power_id: cir15, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 15 Daily Energy" }
|
||||
- { power_id: cir16, platform: total_daily_energy, accuracy_decimals: 0, name: "Circuit 16 Daily Energy" }
|
||||
- { power_id: cir01, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir01name} Daily Energy" }
|
||||
- { power_id: cir02, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir02name} Daily Energy" }
|
||||
- { power_id: cir03, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir03name} Daily Energy" }
|
||||
- { power_id: cir04, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir04name} Daily Energy" }
|
||||
- { power_id: cir05, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir05name} Daily Energy" }
|
||||
- { power_id: cir06, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir06name} Daily Energy" }
|
||||
- { power_id: cir07, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir07name} Daily Energy" }
|
||||
- { power_id: cir08, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir08name} Daily Energy" }
|
||||
- { power_id: cir09, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir09name} Daily Energy" }
|
||||
- { power_id: cir10, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir10name} Daily Energy" }
|
||||
- { power_id: cir11, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir11name} Daily Energy" }
|
||||
- { power_id: cir12, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir12name} Daily Energy" }
|
||||
- { power_id: cir13, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir13name} Daily Energy" }
|
||||
- { power_id: cir14, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir14name} Daily Energy" }
|
||||
- { power_id: cir15, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir15name} Daily Energy" }
|
||||
- { power_id: cir16, platform: total_daily_energy, accuracy_decimals: 0, name: "${cir16name} Daily Energy" }
|
||||
|
||||
Reference in New Issue
Block a user