Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Asset/ABBUno.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 3 additions & 19 deletions EspHome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,23 @@

Monitoring Power Aurora from Home Assistant
<p align="center">
<a><img src='https://raw.githubusercontent.com/mttstt/Power-One-monitor/master/Asset/homeassistant.png' height='400'></a>
<a><img src='./../Asset/homeassistant.png?raw=true' height='400'></a>
</p>


### Hardware
Wemos d1 mini + TTL to RS485
<p align="center">
<a><img src='https://raw.githubusercontent.com/mttstt/Power-One-monitor/master/Asset/aurora.jpg' height='200'></a>
<a><img src='./../Asset/ABBUno.png?raw=true' height='200'></a>
</p>


## Software
Esphome Custom component

### Modify "ABB Aurora"
In order to use the lib "ABB Aurora" with ESP8266 modify the setup function of the following file .platformio\lib\ABB Aurora_ID340\src\ABBAurora.cpp) in this way:

void ABBAurora::setup(HardwareSerial &hardwareSerial, byte RXGpioPin, byte TXGpioPin, byte TXControllPin)
{
TXPinControl = TXControllPin;
pinMode(TXPinControl, OUTPUT);
digitalWrite(TXPinControl, LOW);
serial = &hardwareSerial;
#if defined(ESP32)
serial->begin(19200, SERIAL_8N1, RXGpioPin, TXGpioPin, false, 500);
#elif defined(ESP8266)
serial->begin(19200,SERIAL_8N1);
#endif
}


### Esphome Command

esphome aurora.yaml compile

esphome aurora.yaml run
esphome aurora.yaml run
6 changes: 5 additions & 1 deletion EspHome/aurora.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
substitutions:
devicename: aurora
upper_devicename: ABB Aurora

esphome:
name: aurora
platform: ESP8266
board: d1_mini
includes:
- aurora.h
libraries:
- "ABB Aurora"
- "https://github.com/mttstt/ABBAurora.git#patch-2"

wifi:
ssid: !secret Wifi_SSID
Expand Down