Skip to content

Commit

Permalink
Added French
Browse files Browse the repository at this point in the history
  • Loading branch information
fonske committed Jul 16, 2024
1 parent fb70651 commit 380a1b7
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 1 deletion.
52 changes: 52 additions & 0 deletions esphome/clack-labels-fr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#French Translation v0.2 (work 2 missing item)
substitutions:
clack_select_chl_or_dpsw: Choix du mode
clack_distance: Distance Sel
clack_distance_tof: Distance Sel/Capteur TOF
clack_procent: Pourcentage de Sel
clack_animation: Hauteur Sel pour tableau de bord
clack_height: Hauteur Sel
clack_watermeter_total: Volume d'eau total
clack_m3_left: M3 d'eau adoucie restante
clack_l_left: Litres d'eau adoucie restante
clack_version: Version
clack_regeneration_last: Regéneré le
clack_fill_salt: Remplissage de Sel
clack_saltlevel_height_min: Hauteur Sel MIN
clack_saltlevel_height_max: Hauteur Sel MAX
clack_saltlevel_height_fill: Distance avant remplissage Sel
clack_capacity_liters: Capacité Restantate (LITRES)
clack_capacity_days: Capacité Restante (JOURS)
clack_chlorinator_delay: Temps d'activation du Chlorinateur
clack_watermeter_pulse: Impulsion du compteur d'eau
clack_regeneration_pulse: Impulsion regénération
clack_ip: Adresse IP adoucisseur
clack_wifi_signal_db: dB signal WiFi
clack_wifi_signal_db_percent: Signal WiFi
clack_uptime: Durée de fonctionnement
clack_chlorinator: Chlorinateur
clack_salt_level_measurement: Mesure du Sel
# clack_salt_measurent_in_brine_delay: Delay measure salt brine
hours: heures
days: jours
clack_yes: "oui"
clack_no: "non"
clack_on: "Allumé"
clack_off: "Eteint"
clack_power: Puissance
clack_current: Courant
clack_voltage: Tension
clack_shunt_voltage: Tension de dérivation
clack_restart: Redémarrer ESP
clack_regen: regénération clack
clack_brine: Pendant la saumure

text_sensor:
# Expose last regeneration information as sensor / already in English
- platform: template
name: ${clack_regeneration_last}
id: clack_regeneration_last
icon: mdi:clock-start
update_interval: never
lambda: |-
return id(regeneration_last);
3 changes: 2 additions & 1 deletion esphome/clack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ substitutions:
# pulse_per_liters: "17"

# In order to use other language fix clack-label filename below:
# Currently supported languages are en (english), nl (dutch).
# Currently supported languages are en (English), nl (Dutch), fr (French).
# ESP32-wemos-s3 is a wemos lolin S3 mini
packages:
remote_package:
Expand All @@ -24,6 +24,7 @@ packages:
esphome/.clack-base.yaml,
esphome/.clack-optional.yaml,
# esphome/.clack-labels-nl.yaml,
# esphome/.clack-labels-fr.yaml,
esphome/.clack-labels-en.yaml,
esphome/board-esp32-wemos-s3.yaml,
]
Expand Down
277 changes: 277 additions & 0 deletions home_assistant/lovelace_menu_fr_backwash2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
#French Translation V0.1 (not working TBF)
views:
- title: Water softener
path: watersoftener
cards:
- type: vertical-stack
cards:
- cards:
- type: entities
entities:
- entity: sensor.clack_water_meter
type: custom:multiple-entity-row
icon: mdi:cup-water
name: Adoucisseur d'eau
secondary_info:
entity: input_select.clack_water_softener_status
name: 'phase: '
state_header: used
entities:
- entity: sensor.time_to_regeneration
name: temps restant
- entity: sensor.clack_water_softener_m3_left
name: m3 restant
style: |
ha-card {
border-radius: 20px
}
.card-header {
font-size: 18px;
padding: 5px 25px;
font-weight: bold;
}
title: Water softener
- entities:
- entity: sensor.clack_water_softener_ltr_left
max: 3200
min: 0
name: L utilisé
height: 8px
decimal: false
positions:
icon: 'off'
indicator: 'off'
tap_action: info
name: 'off'
value: 'off'
style: |
ha-card {
border-radius: 20px
}
.card-content {
padding: 0px 10px 10px 10px;
}
type: custom:bar-card
mode: vertical
type: custom:stack-in-card
- type: conditional
conditions:
- entity: timer.timer_ws_total
state_not: idle
card:
type: entities
style: |
.card-content {
padding: 8px;
}
.card-content > div {
margin: 0 !important;
}
.card-header {
font-size: 18px;
padding: 5px 25px;
font-weight: bold;
}
.card-header {
font-size: 18px;
padding: 5px 25px;
font-weight: bold;
}
title: Regen. started
entities:
- conditions:
- entity: timer.timer_ws_backwash
state_not: idle
row:
entity: timer.timer_ws_backwash
icon: mdi:numeric-1-circle
name: 'Phase: Backwash'
type: conditional
- conditions:
- entity: timer.timer_ws_brine
state_not: idle
row:
entity: timer.timer_ws_brine
icon: mdi:numeric-2-circle
name: 'Phase: Brine'
type: conditional
- conditions:
- entity: timer.timer_ws_backwash2
state_not: idle
row:
entity: timer.timer_ws_backwash2
icon: mdi:numeric-3-circle
name: 'Phase: Backwash2'
type: conditional
- conditions:
- entity: timer.timer_ws_rinse
state_not: idle
row:
entity: timer.timer_ws_rinse
icon: mdi:numeric-4-circle
name: 'Phase: Rinse'
type: conditional
- conditions:
- entity: timer.timer_ws_fill
state_not: idle
row:
entity: timer.timer_ws_fill
icon: mdi:numeric-5-circle
name: 'Phase: Fill'
type: conditional
- type: section
- entity: timer.timer_ws_total
icon: mdi:timer-sand
name: Temps Restant Total (5 Phases)
- type: entities
entities:
- entity: sensor.clack_water_meter
name: Mesure d'eau
- entity: sensor.clack_water_softener_ltr_left
name: Litres d'eau adoucie restante
- entity: sensor.clack_water_softener_m3_left
name: M3 d'eau adoucie restante
- entity: sensor.clack_salt_level_distance_tof
name: Distance Sel/Capteur TOF
- entity: sensor.clack_salt_level_distance
name: Distance
- entity: sensor.clack_salt_level_height
name: Hauteur
- entity: sensor.clack_salt_level_percent
name: Pourcentage
- entity: sensor.clack_fill_salt
name: Remplissage de Sel
- entity: sensor.clack_regenerated_on
name: Regéneré le
- entity: binary_sensor.clack_watermeter_pulse
name: Impulsion du compteur d'eau
- entity: binary_sensor.clack_regeneration_pulse
name: Impulsion regénération
- entity: button.clack_test_button_use_pulse
name: Bouton de test UTILISATION
- entity: button.clack_test_button_regen_pulse
name: Bouton de test REGENERATION
- entity: sensor.clack_power
name: Puissance
- entity: sensor.clack_voltage
name: Tension
- entity: switch.clack_chlorinator
name: Chlorinateur / Dp-Sw relais
- entity: input_boolean.brine_almost_finished
- entity: input_boolean.clack_manual_regen
- elements:
- entity: sensor.clack_salt_level_for_dashboard
image: local/images/softener.png
state_image:
'0': local/images/softener0.png
'10': local/images/softener10.png
'20': local/images/softener20.png
'40': local/images/softener40.png
'60': local/images/softener60.png
'80': local/images/softener80.png
'100': local/images/softener100.png
style:
left: 0%
top: 0%
transform: scale(1,1)
tap_action:
action: none
type: image
image: local/images/softener.png
panel: true
type: picture-elements
- type: entities
entities:
- entity: sensor.clack_waterusage_this_quarter
name: Utilisation d'eau ( 1/4H )
- entity: sensor.clack_waterusage_this_hour
name: Utilisation d'eau ( 1h )
- entity: sensor.clack_waterusage_today
name: Utilisation d'eau aujourd'hui
- entity: sensor.clack_waterusage_this_month
name: Utilisation d'eau ce mois-ci
- entity: sensor.clack_waterusage_this_year
name: Utilisation d'eau cette année
- type: custom:apexcharts-card
graph_span: 7d
update_interval: 5m
cache: true
span:
end: day
offset: '-1sec'
header:
show: true
title: Water per day
apex_config:
xaxis:
labels:
format: dd-MM
show: true
showAlways: true
yaxis:
forceNiceScale: true
decimalsInFloat: 0
min: 0
chart:
type: area
height: 300
stroke:
show: true
width: 1
legend:
show: true
dataLabels:
enabled: false
distributed: true
fill:
type: gradient
gradient:
shadeIntensity: 0.1
opacityFrom: 0.25
opacityTo: 1
inverseColors: true
stops:
- 0
- 90
- 100
series:
- entity: sensor.clack_waterusage_today
name: Utilisation
type: column
float_precision: 2
group_by:
func: max
duration: 23h59m59s
- type: entities
entities:
- entity: select.clack_function_mode
name: Choix du mode
- entity: number.clack_chlorinator_active_time
name: Durée de fonctionnement du Chlorinateur
- entity: select.clack_salt_measurement
name: Mesure du Sel
- entity: input_number.brine_alert_time
- entity: number.clack_min_salt_distance
name: Hauteur Sel MIN
- entity: number.clack_max_salt_distance
name: Hauteur Sel MAX
- entity: number.clack_fill_salt_distance
name: Distance remplissage de Sel
- entity: number.clack_capacity_in_days
name: Capacité Restante (JOURS)
- entity: number.clack_capacity_in_liters
name: Capacité Restante (LITRES)
- entity: sensor.clack_version
name: Version
- entity: sensor.clack_water_softener_ip
name: Adresse IP
- entity: sensor.clack_wifi_signal
name: Signal WiFi
- entity: sensor.clack_wifi_signal_db
name: dB signal WiFi
- entity: light.clack_led
name: Led
- entity: sensor.clack_uptime
name: Durée de fonctionnement
title: Settings

0 comments on commit 380a1b7

Please sign in to comment.