It does not need to be a human readable sensor, but assume it reports correctly even though it doesn't seem possible to change it, and use if for the temperature unit. PR #1696
@@ -21,20 +21,14 @@ secondary_entities:
type: integer
class: measurement
mapping:
- - scale: 10
- unit: C
- - entity: sensor
- name: Temperature unit
- category: diagnostic
- dps:
+ - scale: 10
- id: 9
- name: option
+ name: unit
type: string
- - dps_val: "f"
- value: fahrenheit
- - dps_val: "c"
- value: celsius
+ - dps_val: f
+ value: F
+ - value: C
- entity: sensor
class: battery
category: diagnostic