@Tommy
Exact j’avais pensé à ça, mais il y a moyen de faire tourner sensors en tache de fond:
/etc/init.d/kmod start
donc le fichier à lire est mis à jour régulièrement
D’autre part (en root)
root@HAcq:~# sensors -j > /usr/share/hassio/homeassistant/packages/sensors_json.json
donne un beau fichier JSON, bien formaté:
{
"it8772-isa-0a30":{
"Adapter": "ISA adapter",
"in0":{
"in0_input": 2.220,
"in0_min": 0.456,
"in0_max": 0.588,
"in0_alarm": 1.000
},
"in1":{
"in1_input": 2.220,
"in1_min": 2.472,
"in1_max": 0.900,
"in1_alarm": 1.000
},
"in2":{
"in2_input": 3.000,
"in2_min": 2.280,
"in2_max": 1.620,
"in2_alarm": 1.000
},
"in3":{
"in3_input": 2.940,
"in3_min": 1.020,
"in3_max": 0.120,
"in3_alarm": 1.000
},
"in4":{
"in4_input": 2.220,
"in4_min": 1.620,
"in4_max": 1.392,
"in4_alarm": 1.000
},
"in5":{
"in5_input": 2.220,
"in5_min": 2.688,
"in5_max": 0.000,
"in5_alarm": 1.000
},
"in6":{
"in6_input": 2.220,
"in6_min": 2.088,
"in6_max": 0.504,
"in6_alarm": 1.000
},
"3VSB":{
"in7_input": 3.264,
"in7_min": 0.624,
"in7_max": 4.320,
"in7_alarm": 0.000
},
"Vbat":{
"in8_input": 3.288
},
"fan1":{
"fan1_input": 0.000,
"fan1_min": 27.000,
"fan1_alarm": 1.000
},
"fan2":{
"fan2_input": 0.000,
"fan2_min": 14.000,
"fan2_alarm": 1.000
},
"fan3":{
"fan3_input": 2848.000,
"fan3_min": 24.000,
"fan3_alarm": 0.000
},
"temp1":{
"temp1_input": -70.000,
"temp1_max": -99.000,
"temp1_min": 74.000,
"temp1_alarm": 1.000,
"temp1_type": 3.000,
"temp1_offset": 0.000
},
"temp2":{
"temp2_input": -70.000,
"temp2_max": 5.000,
"temp2_min": -117.000,
"temp2_alarm": 0.000,
"temp2_type": 3.000,
"temp2_offset": 0.000
},
"temp3":{
"temp3_input": 42.000,
"temp3_max": 14.000,
"temp3_min": -124.000,
"temp3_alarm": 1.000,
"temp3_type": 0.000,
"temp3_offset": 0.000
},
"intrusion0":{
"intrusion0_alarm": 1.000
}
},
"k10temp-pci-00c3":{
"Adapter": "PCI adapter",
"temp1":{
"temp1_input": 42.875,
"temp1_max": 70.000,
"temp1_crit": 100.000,
"temp1_crit_hyst": 97.000
}
}
}
je n ai pas poussé plus loin la lecture par yaml, puisque on est bloqué dans l exécution de la command_line, et pour l heure la lecture du fichier température dans un sensor de HA fonctionne.
@golfvert @AlexHass
J’ai bien compris ça, je cherche à comprendre justement, la transmission d’un container à un autre par SSH (en passant par HA).
PS: J’ai bien appris, dans l’ordre, l assembleur, le BATCH, le Basic, le Pascal, le C (pas trop !), VBA, LUA, AHK, je pourrais bien me mettre à LINUX.
Cesser d’apprendre, c’est commencer à vieillir.