Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Rain1971/V2C_trydant
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain1971 committed May 20, 2023
2 parents 21fcdc6 + 28bc58b commit 79e331f
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 10 deletions.
7 changes: 5 additions & 2 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@ mode: single

# Ejemplos PANTALLA:

* Use [example.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example.yaml)
* For pvpc Control [example_pvpc.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example_pvpc.yaml)
* Usa [example.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example.yaml)
* Para Control pvpc [example_pvpc.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example_pvpc.yaml)
* Para Control pvpc, version compacta [example_pvpc_compact.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example_pvpc_compact.yaml)

![Charts](./images/example_pvpc_compact.png)
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,27 @@ If you want to use the price-based load control feature, you must install the fo
- [PVPC Hourly Pricing Card](https://github.com/danimart1991/pvpc-hourly-pricing-card)
- [multiple-entity-row](https://github.com/benct/lovelace-multiple-entity-row)



# Setup:

* Add this repository in HACS ( [https://github.com/Rain1971/V2C_trydant.git](https://github.com/Rain1971/V2C_trydant.git) )
![Charts](./images/install1.png)
![Charts](./images/install2.png)
* restart Home Assistant

<img src="./images/install1.png" width="300">

<img src="./images/install2.png" width="350">

* Restart Home Assistant
* Go to Configuration -> Integrations -> Add Integration
![Charts](./images/install3.png)
![Charts](./images/install4.png)
<img src="./images/install3.png" width="220">
<img src="./images/install4.png" width="350">

* Add integration and put there your device IP
* Go to the v2C integration. Now, there are 28 entities. Press on settings and set:
- Kwh x 100Km of your car (default: 22)
- kWh x 100Km of your car (default: 20.8 kWh/100km)
- Sensor.pvpc ->( add this only if you want to control your car charge based on the price of electricity. See PVPC Hourly Pricing Card )
![Charts](./images/install5.png)
- Car battery capacity (defaut: 75 kWh)
<img src="./images/install5.png" width="350">
* Press 'Send' and it create a new entity: sensor.v2c_precio_luz. Now there are 29 entities.
* Restart Home Assistant
# Entities:
Expand All @@ -52,7 +59,7 @@ The following entities are created:
| vc2_trydan_sensor_housepower | Sensor | R | N W | House power consumption in Watts.
| v2c_trydan_sensor_intensity \ v2c_intensity | Sensor Number | R \ W | N A | Intensity offered by Charge Point in Amps, **if Dynamic Charge is disabled**.
| v2c_trydan_sensor_locked | Sensor | R | N `values` | Disabling state of Charge Point: `0`-Enabled, `1`-Disabled
| v2c_trydan_sensor_maxintensity v2c_max_intensity | Sensor Number | R \ W | N A | Intensity offered maximun limit in Amps, **if Dynamic Charge is enabled**. (max default 32A)
| v2c_trydan_sensor_maxintensity v2c_max_intensity | Sensor Nuber | R \ W | N A | Intensity offered maximun limit in Amps, **if Dynamic Charge is enabled**. (max default 32A)
| v2c_trydan_sensor_minintensity v2c_min_intensity | Sensor Number | R \ W | N A | Intensity offered minimun limit in Amps, **if Dynamic Charge is enabled**. (max default 6A)
| v2c_trydan_sensor_paused | Sensor | R | N `values` | Pause state of current charging session: `0`-Enabled, `1`-Disabled
| v2c_trydan_sensor_pausedynamic | Sensor | R | N `values` | Dynamic Control Modulation Pause State: `0`-Modulating, `1`-No Modulating
Expand All @@ -63,6 +70,8 @@ The following entities are created:
| v2c_trydan_switch_paused | Switch | R/W | `on` `off` | Toggle to pause charge. Default `off`
| v2c_trydan_switch_locked | Switch | R/W | `on` `off` | Toggle to block the charger. Default `off`
| v2c_trydan_switch_v2c_carga_pvpc | Switch | R/W | `on` `off` | Toggle whether or not you want to charge while limiting by PVPC price . Default `off`
| v2c_trydan_switch_v2c_smart_charge | Switch | R/W | `on` `off` | Toggle whether or not you want to charge using the smart charge algorithm, which takes into account: current battery charge percentage, available charging power, assumes that battery must be at 80% within the following 12 hours. With all this information it will select the cheapest hours according to PVPC to charge the car. Default `off`



# Events:
Expand Down Expand Up @@ -99,4 +108,6 @@ mode: single

* Use [example.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example.yaml)
* For pvpc Control [example_pvpc.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example_pvpc.yaml)
* For pvpc Control, compacted version [example_pvpc_compact.yaml](https://raw.githubusercontent.com/Rain1971/V2C_trydant/main/lovelance/example_pvpc_compact.yaml)

![Charts](./images/example_pvpc_compact.png)
Binary file added images/example_pvpc_compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/install5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 126 additions & 0 deletions lovelance/example_pvpc_compact.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-chips-card
alignment: center
chips:
- type: entity
entity: sensor.v2c_trydan_sensor_intensity
use_entity_picture: false
tap_action:
action: more-info
- type: entity
entity: sensor.v2c_trydan_sensor_chargeenergy
use_entity_picture: false
tap_action:
action: more-info
- type: entity
entity: sensor.v2c_trydan_sensor_chargekm
use_entity_picture: false
tap_action:
action: more-info
- type: entity
icon: mdi:timer-outline
entity: sensor.v2c_trydan_sensor_chargetime
use_entity_picture: false
tap_action:
action: more-info
- type: horizontal-stack
cards:
- type: gauge
entity: sensor.v2c_trydan_sensor_fvpower
severity:
green: 0
yellow: 8000
red: 9500
needle: true
min: 0
max: 10000
name: Producción FV
- type: gauge
entity: sensor.v2c_trydan_sensor_housepower
name: Consumo hogar
severity:
green: 0
yellow: 6000
red: 9000
needle: true
min: 0
max: 12000
- type: gauge
entity: sensor.v2c_trydan_sensor_chargepower
name: Cargando en el coche
needle: true
min: 0
max: 8000
severity:
green: 0
yellow: 5000
red: 6500
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: switch.v2c_trydan_switch_paused
name: Pausar
- type: custom:mushroom-entity-card
entity: switch.v2c_trydan_switch_locked
name: Bloqueo
- type: custom:mushroom-entity-card
entity: switch.v2c_trydan_switch_dynamic
name: Dinamico
- type: entities
entities:
- entity: sensor.v2c_trydan_sensor_chargestate
name: Estado
icon: mdi:ev-station
- entity: number.v2c_km_to_charge
name: Km a Cargar
secondary_info: last-changed
icon: mdi:car-arrow-right
- entity: sensor.v2c_precio_luz
- entity: switch.v2c_trydan_switch_v2c_carga_pvpc
name: Carga por Precio
icon: mdi:cash
- type: conditional
conditions:
- entity: switch.v2c_trydan_switch_v2c_carga_pvpc
state: 'on'
card:
type: entities
entities:
- entity: number.v2c_maxprice
name: Precio MAX para cargar
- type: custom:multiple-entity-row
entity: sensor.v2c_precio_luz
name: Horas carga
icon: mdi:hours-24
show_state: false
entities:
- attribute: ValidHours
name: Hoy
hide_if: '-'
styles:
font-size: x-small
- attribute: ValidHoursNextDay
name: Mañana
hide_if: '-'
styles:
font-size: x-small
- attribute: TotalHours
name: Horas
styles:
font-size: x-small
- type: conditional
conditions:
- entity: switch.v2c_trydan_switch_dynamic
state: 'on'
card:
type: entities
entities:
- entity: number.v2c_min_intensity
name: Ajusta Imin dinámica
icon: mdi:current-ac
- entity: number.v2c_max_intensity
name: Ajusta Imax dinámica
icon: mdi:current-ac

0 comments on commit 79e331f

Please sign in to comment.