Bonjour @Jean-Marc_Collin,
J’ai reçu mon chargeur de voiture vu dans le post Feyree Fey123 : intégration dans HA via Tuya Local
J’essaye maintenant de le configuré dans SO mais j’ai une erreur.
En entity_id, SO attend absolument un type switch, or, sur ce chargeur, nous n’avons qu’une entité type select.
As tu une iddée de comment on pourait contourner ca STP?
Entité dans le solar_optimizer.yaml:
- name: "Voiture"
entity_id: "select.chargeur_voiture_toggle_charging"
# The minimum load power is 237 W (i.e. 1 Amp because convert_power_divide_factor=237 too)
power_min: 1896
# The minimum load power is 3792 W (i.e. 16 Amp (= 33792/237) )
power_max: 3792
# the step of 237 or 1 Amp after division by convert_power_divide_factor
power_step: 237
# Usable if the charging mode is "Solar" and the car is plugged into the charger and it is charged at less than 90% (so it stops by itself at 90%)
check_usable_template: "{{ is_state('sensor.chargeur_voiture_etat', 'plugged_in') or is_state('sensor.chargeur_voiture_etat', 'charging') }}"
# 1 hour minimum charge
duration_min: 30
# 15 min minimum stop charge
duration_stop_min: 15
# The entity that drives the load amperage
power_entity_id: "number.chargeur_voiture_set_charge_current"
# 5 min minimum between 2 power changes
duration_power_min: 1
# activation is done by a service call
action_mode: "service_call"
activation_service: "select/Start charging"
deactivation_service: "select/Stop charging"
# the power change is done by a service call
change_power_service: "number/set_value"
# the factor used to convert the set power into Amps (number.tesla_charging_amps takes Amps)
convert_power_divide_factor: 237
# We do not start a charge if the battery of the solar installation is not at least 50% charged
#battery_soc_threshold: 50
# 4h par day minimum ...
#min_on_time_per_day_min: 240
# ... starting at 23:00
#offpeak_time: "22:00"
Et le message d’erreur: