GET STARTED:
connect to wifi network
If your device is powered the first time, the led lights up continuously. This means that it is not connected to a network and an accesspoint is opened.
Open the network settings on a pc/laptop/smartphone and connect to a network 'ESP-ECU'. When prompted for a passwd this is 123456789
When connected, open a webbrowser and go to '192.168.4.1
Now you'l get a form where you can fill-up your wifi credentials and your user password. (this is standard 000). Follow the on-line instructions, when done your ESP-ECU is connected. The led flashes 3 times at reboot and stays off, this means that there is a wifi connection.
Now connect your pc/laptop/smartphone back to your wifi. You can browse to the address of the ESP-ECU.
settings
For the timekeeping it is important to provide your geographical position (google this up) and fill this up in the page 'time config'. The offset to GMT is also needed, in Central Europe this is +60. When DST applies in your country, check that. Now click save.
In the menu item 'settings' you should provide some data too, click help for more information. Your ESP-ECU has an id in the Zigbee network that has 12 hexadecimal characters (0123456780ABCDE). The standard id will work.
Zigbee coordinator
When your Zigbee module is equipped with the right firmware and correctly wired, the coordinator wil be initialized during the boot of the ESP. If this is successful you can check in the log or in the console (10;health).
INVERTERS:
registering
Your inverters have to be registered to the system. Open the page inverters, click add and fill up the relevant data.
The serial nr is important and has 12 characters. Check how many panels you have connected to the inverter.
Now click save, the inverter will be saved and the ESP-ECU reboots.
pairing
The inverter must be binded to the Zigbee network. When you go back to the menu 'inverters' you can see which inverters are registered. In the status field you can also see if they are paired. When paired there is an id in this field, e.g. 0x12AB.
To the left you'l see a button 'pair'. If you click this, the pairing process starts.
Tip: You can open a second instance of the webinterface and go to the console. The pairing process is displayed there. Type 10;diag to see all info.
polling
The automatic polling is done with an interval of 5 minutes. The coordinator sends a command to the paired inverter and gets an answer. This answer contains an amount of general values, like temperature, AC frequency and voltage. Furthermore the values per channel like dc voltage/current and generated energy.
When we know the generated energy (Wh) in 5 minutes, the system calculates the power(W).
All these values are displayed in the webinterface.
polling on demand
When the automatic polling is unchecked, you can poll manually. If you send http://ip_of_esp-ecu?POLL=0, inverter0 gets polled.
Or via a mosquitto message to the intopic '{"POLL":0}' to poll inverter 0.
miscellaneous:
LED signals
You can connect an external led to the ESP, this has the same behaviour as the blue on-board LED.
When the LED is:
- continuously on: An accespoint has been opened.
- flashes 3 times at boot: Wifi connected.
- flashes once: Polling is done
- flashes serveral times: zigbee is initialized
- goes on when pushing the button: reboot when button released.
- goes on and off when pusshing the button: Drop wifi and start AP
button
You can connect an external tactile switch to the ESP, this has the same behaviour as the on-board flash button.
When you continuously push the button, the LED goes on after a few moments.
If you release it then, the ESP-ECU will reboot.
If you keep pressing the button the LED goes off again. If you relase the button now, the ESP-ECU will drop the wifi credentials and reboots into the accesspoint.
SOFTWARE UPDATE:
The software on the ESP-ECU can be renewed 'over the air' (OTA). This works as follows: Be sure you downloaded the firmwarefile on a known location on your pc/laptop. Click
'settings' and
'software update'. At this page you can point to the firmware file and click on 'update'
afbeelding 5
sending data to domoticz:
The results of the polling are sent via Mosquitto. If your out topic is 'domoticz/in', the mosquitto message will have the form {"inv_serial" : "xxxxxxxxxxxx","idx" : xxx, "nvalue" : 0,"svalue" : "90;2975.00"} so it contains also the idx of the inverter.
trouble shooting:
under construction
terminologie
Accesspoint (AP)
Het apparaat zendt een draadloos netwerk uit waarmee u verbinding kunt maken.
IP adres
Internet Protocol address, voor thuisnetwerken altijd 192.168.***.***
Wifi
Handelsnaam voor draadloze netwerktechnologie