Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
graham22 committed Oct 3, 2020
2 parents 5364f1c + 7ebe2b2 commit a04dd77
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Please refer to the <a href="https://github.com/ClassicDIY/ClassicMQTT/wiki">Cla
<h3>Classic Monitor MQTT Subscriber app for Android is available here.</h3>

<p>
https://drive.google.com/drive/folders/1S2BWLFn_nU0NmxXmyhJaz97h0K1_OY6B
https://drive.google.com/drive/folders/1FPijqIw0VuKCE0gOxg3Z0YIddFnxmAuN?usp=sharing
</p>

<p>
Expand Down
20 changes: 18 additions & 2 deletions code/HomeAssistant/sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,23 @@
state_topic: ClassicMQTT/classic/stat/readings
value_template: '{{ value_json.ChargeState }}'
qos: 0


- platform: mqtt
name: ClassicMQTT_ChargeStateText
state_topic: ClassicMQTT/classic/stat/readings
value_template: >
{{ {
0: "Resting",
3: "Absorb",
4: "Bulk MPPT",
5: "Float",
6: "Float MPPT",
7: "Equalize",
10: "HyperVOC",
18: "Equalize MPPT"}[value_json.ChargeState]
}}
qos: 0

- platform: mqtt
name: ClassicMQTT_BatCurrent
state_topic: ClassicMQTT/classic/stat/readings
Expand Down Expand Up @@ -68,4 +84,4 @@
name: ClassicMQTT_ShuntTemperature
state_topic: ClassicMQTT/classic/stat/readings
value_template: '{{value_json.ShuntTemperature}}'
qos: 0
qos: 0
1 change: 1 addition & 0 deletions code/Python/classic_mqtt_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
- "1883:1883"
classic_mqtt:
image: classic_mqtt
restart: always
build: .
environment:
- LOGLEVEL=DEBUG
Expand Down

0 comments on commit a04dd77

Please sign in to comment.