Skip to content

Commit

Permalink
Added previous, current and next electricity rates to assist.
Browse files Browse the repository at this point in the history
Update #99
  • Loading branch information
dannytsang committed Jun 3, 2024
1 parent 1caf2cd commit f96a1da
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/integrations/energy/energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,14 @@ conversation:
- "When will the battery run out"
getBatterySummary:
- "Battery summary"
getCurrentElectricityRates:
- "[What is the current] [electricity] [unit] rates"
getInverterMode:
- "[What is the] inverter mode"
getNextElectricityRates:
- "[What is the] next [electricity] [unit] rates"
getPreviousElectricityRates:
- "[What was the] (old|previous|last) [electricity] [unit] rates"
getSolarForecastLeft:
- "[How much] solar [generation is] (left|remaining) [today]"
- "Remaining solar [generation] [forecast] [today]"
Expand All @@ -346,10 +352,25 @@ intent_script:
text: >-
{{ states('sensor.growatt_sph_battery_state_of_charge', with_unit=True) }}
and will run out in {{ states('sensor.battery_charge_remaining_hours') }}
getCurrentElectricityRates:
speech:
text: >-
{{ states('sensor.electricity_current_rate')|float(0)|round(2) }}
{{ state_attr('sensor.electricity_current_rate', 'unit_of_measurement') }}.
getInverterMode:
speech:
text: >-
{{ states('sensor.growatt_sph_inverter_mode') }}
getNextElectricityRates:
speech:
text: >-
{{ states('sensor.electricity_next_rate')|float(0)|round(2) }}
{{ state_attr('sensor.electricity_next_rate', 'unit_of_measurement') }}.
getPreviousElectricityRates:
speech:
text: >-
{{ states('sensor.electricity_previous_rate')|float(0)|round(2) }}
{{ state_attr('sensor.electricity_previous_rate', 'unit_of_measurement') }}.
getSolarForecastLeft:
speech:
text: >-
Expand Down

0 comments on commit f96a1da

Please sign in to comment.