forked from TonyApuzzo/home-assistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add MQTT entities based on amridm information coming from my rp…
…i with SDR. Add additional properties to the OpenEVSE total energy sensor to enable energy monitoring.
- Loading branch information
1 parent
2e35dd3
commit ef453b1
Showing
4 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sensor: | ||
- platform: mqtt | ||
state_topic: !secret ENERGY_METER_01_TOPIC | ||
name: "Electric Meter" | ||
unique_id: electric_meter_01 | ||
unit_of_measurement: kWh | ||
device_class: energy | ||
state_class: measurement | ||
availability_topic: amr/status/availability | ||
last_reset_topic: amr/status/last_reset | ||
value_template: "{{ value_json.Message.Consumption }}" | ||
json_attributes_template: "{{ value_json.Message | tojson }}" | ||
json_attributes_topic: "amr/reading/SCM/4/60155156/message" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters