feat(plant): tsys3 GPU temp sensor - match nouveau hwmon too [#763]
Maxwell card runs in-tree nouveau on kernel 7.0.14 (no proprietary branch supports both 7.0 and Maxwell); regex widened with a non-capturing alternation, template downstream unchanged. Detail: https://projects.knownelement.com/issues/763
This commit is contained in:
@@ -513,7 +513,7 @@ sensor:
|
|||||||
accept_errors: true
|
accept_errors: true
|
||||||
unique_id: pfv_tsys3_gpu_temperature_raw
|
unique_id: pfv_tsys3_gpu_temperature_raw
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{% set m = value | regex_findall('(?s)nvidia.*?temp1:\s*\+?(-?\d+\.?\d*)') %}
|
{% set m = value | regex_findall('(?s)(?:nvidia|nouveau).*?temp1:\s*\+?(-?\d+\.?\d*)') %}
|
||||||
{{ m | first | float if m }}
|
{{ m | first | float if m }}
|
||||||
|
|
||||||
- platform: snmp
|
- platform: snmp
|
||||||
|
|||||||
Reference in New Issue
Block a user