Skip to content

Commit

Permalink
Merge pull request #2 from tsunglung/main
Browse files Browse the repository at this point in the history
Add device_class and flow ISO 4217 in Unit
  • Loading branch information
cnstudio authored Aug 8, 2021
2 parents 2f5c25a + eaee59b commit b12591d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ sensor:
{% endif %}
{% endif %}
friendly_name: "目前總電費"
unit_of_measurement: "NTD"
unit_of_measurement: "TWD"
device_class: monetary
```

## 2) 重啟 (Reboot) Home Assistant,
Expand Down
5 changes: 3 additions & 2 deletions config/add_to_Configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ sensor:
{% endif %}
{% endif %}
friendly_name: "目前總電費"
unit_of_measurement: "NTD"

unit_of_measurement: "TWD"
device_class: monetary

- platform: integration
source: sensor.your_W_sensor # 這是您的用電 "W (瓦特)" 偵測器
name: total_power
Expand Down

0 comments on commit b12591d

Please sign in to comment.