- Notifications
You must be signed in to change notification settings - Fork2
ioBroker adapter for the Legrand Ecocompteur module (aka. Legrand Measurement Concentrator EMDX³ 412000).
License
iobroker-community-adapters/ioBroker.legrand-ecocompteur
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Adapter for the Legrand Ecocompteur module (aka. Legrand Measurement Concentrator EMDX³ 412000).
This is a power measurement device with it's own web interface. The adapter utilises that web interface by:
- Polling for instantaneous power readings (read in a JSON response).
- Polling the device's index page to read the TIC interface. TIC stands for Télé-Information Client which is a French construct. This value is generally read from a utility billing meter connected to the Ecocompteur.
These objects are created for each of the 5 circuits the Ecocompteur reads plus overall total:
- Instantaneous power (in Watts).
- Total cumulated energy measured while the adapter was running (in kWh).
A further object is created to store the TIC interface value.
Through testing it has been noted that the Ecocompteur has a rather fragile IP stack. Sometimes the stack can 'hang' and stop responding to requests, although in the author's experience, that was tracked to non-RFC compliant requests coming from another home automation device.
Nevertheless, it would be prudent to mitigate for this risk by placing the device behind a simple Nginx micro-caching reverse proxy. Example Nginx configuration for an Ecocompteur athttp://192.168.0.10/ (hence setBaseURL settings for this adapter tohttp://<Nginx address>:8080/le/):
proxy_cache_path /tmp/cache keys_zone=cache:32k levels=1 inactive=10s max_size=256k;server { listen 8080; proxy_cache cache; proxy_cache_valid 200 1s; location /le/ { proxy_pass http://192.168.0.10/; }}
The following configuration is required:
- Base URL of device.
- JSON polling interval (in seconds).
- Index polling interval (in seconds).
- Validation: maximum circuit reading (in Watts).
- (Robin Rainton) Stable release.
- (Robin Rainton) Change IP address setting to base URL.Settings will need to be updated.
- (Robin Rainton) Fixed timeout handling. Parse readings from index HTML. Refactor to use more promises & single interval timer.
- (Robin Rainton) Added reading validation filter.
- (Robin Rainton) initial clean release.
MIT License
Copyright (c) 2020 Robin Raintonrobin@rainton.com
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
About
ioBroker adapter for the Legrand Ecocompteur module (aka. Legrand Measurement Concentrator EMDX³ 412000).
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.