Bonjour, juste une petite info.
Sur mon raspi 4, je viens de passer la Home Assistant 2023.6.1
Supervisor 2023.06.2 Operating System 10.2
Quand je corrige mon configuration.yaml
# Speedtest
- platform: command_line
name: "SpeedTest CLI Data"
unique_id: speedtest_cli_data
command: "/config/3rdparty/speedtest/speedtest --format=json --accept-license --accept-gdpr"
# Every 4 hours, 60 * 60 * 4 = 14400
scan_interval: 14401
command_timeout: 60
value_template: >-
{{
{
"ping": value_json.ping.latency,
"download": value_json.download.bandwidth,
"upload": value_json.upload.bandwidth,
"isp": value_json.isp,
"country": value_json.server.country,
"location": value_json.server.location,
"id": value_json.server.id,
"server_name": value_json.server.name,
"server_host": value_json.server.host
}
| to_json
}}
par
command_line:
- sensor:
name: "SpeedTest CLI Data"
unique_id: speedtest_cli_data
command: "/config/3rdparty/speedtest/speedtest --format=json --accept-license --accept-gdpr"
# Every 4 hours, 60 * 60 * 4 = 14400
scan_interval: 14401
command_timeout: 60
value_template: >-
{{
{
"ping": value_json.ping.latency,
"download": value_json.download.bandwidth,
"upload": value_json.upload.bandwidth,
"server_name": value_json.server.name,
"server_host": value_json.server.host,
"url": value_json.result.url
}
| to_json
}}
J’ai des erreurs dans tous les sens.
S je remets mon code de départ, tout fonctionne bien mais j’ai juste le message dans paramètres de la correction à faire
Command Line YAML configuration has moved
Euh j’ai loupé quelque chose???
Merci à tous