Skip to content

Commit

Permalink
Add ADC sensor support for D105
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Sep 5, 2024
1 parent 33a670e commit 5a68250
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/smart_maic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ def channel_description(index) -> dict[str, SensorEntityDescription]:
**point_description("5"),
**channel_description("1"),
**channel_description("2"),
"ADC": SensorEntityDescription(
key="ADC",
translation_key="adc",
state_class=SensorStateClass.MEASUREMENT,
),
# Common
"Temp": SensorEntityDescription(
key="Temp",
Expand Down
3 changes: 3 additions & 0 deletions custom_components/smart_maic/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
},
"total_channel": {
"name": "Total channel"
},
"adc": {
"name": "ADC"
}
},
"switch": {
Expand Down

0 comments on commit 5a68250

Please sign in to comment.