This is a hacky plugin to read values from my SmartMeter.
- Create a new plugin over the OpenHaus backend HTTP API
- Mount the plugin source code folder into the backend
- run
npm install
Add plugin item via HTTP API:
[PUT] http://{{HOST}}:{{PORT}}/api/plugins/
{
"name":"SmartMeter",
"version":1,
"intents":[
"devices",
"endpoints"
],
"uuid": "5749b256-0f90-4a3f-bfeb-1a698f1c408b"
}
Mount the source code into the backend plugins folder
sudo mount --bind ~/projects/OpenHaus/plugins/oh-plg-smartmeter/ ~/projects/OpenHaus/backend/plugins/5749b256-0f90-4a3f-bfeb-1a698f1c408b/