vrobert78 / teleinfo-enphase-xev101-php-firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TELEINFO PHP DAEMON

This PHP script is a way to get teleinfo rawdata from an Enedis electricity meter like a Linky.

Teleinfo

To decode the frame, you'll need an USB module like the USBTICLCV2 from Cartelectronic.

The script is intended to run as a Linux Daemon, you'll find a systemd file in the source that you can reuse for this purpose.

This daemon reads continuously data from the electricity meter and sends them to a Google Firebase Realtime Database.

Firebase

Don't forget to add your firebase-service-account.json to authenticate to Firebase.
Rename the config.sample.php into config.php. Set the constants to reflect your configuration.

The Android App teleinfo-android-firebase is able to use the data stored in Firebase and to represent in near-realtime your electricity consumption.

enphase.php gets data from Enphase Solar Panel system.

autopilot-XEV101.php uses all the data collected from the linky and enphase. Based on that, it forges a TIC frame to pilot our Hager XEV101 wallbox. The main goal is to inject a proportional quantity of energy of what's produced. This is auto-adjusted in real-time.

All the scripts use firebase as main database. This is also very useful to be able to change some behaviours using the Android App. For instance, we can charge the car using only solar panels, or if we're in a hurry, we can force the "full power" mode.

About

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%