add smart meter interfaces

pull/135/head
Michael Zanetti 2018-10-29 10:34:35 +01:00
parent 6b636fb82e
commit 3629371f96
6 changed files with 45 additions and 7 deletions

View File

@ -0,0 +1,10 @@
{
"description": "Like smartmeterconsumer, but instead of only providing total consumed energy, this also supports retrieving the current power demand rate. Note that currentPower is negative for consumers but might also be positive if a device implements consumer and producer and currently produces more than it consumes.",
"extends": "smartmeterconsumer",
"states": [
{
"name": "currentPower",
"type": "double"
}
]
}

View File

@ -0,0 +1,10 @@
{
"description": "Like smartmeterproducer, but instead of only providing total produced energy, this also supports retrieving the current power supply rate. Note that currentPower is positive for producers but might also be negative if a device implements consumer and producer and currently consumes more than it produces.",
"extends": "smartmeterproducer",
"states": [
{
"name": "currentPower",
"type": "double"
}
]
}

View File

@ -42,7 +42,11 @@
<file>extendedshutter.json</file>
<file>smartlock.json</file>
<file>system.json</file>
<file>smartmeterconsumer.json</file>
<file>smartmeterproducer.json</file>
<file>smartmeter.json</file>
<file>extendedsmartmeterconsumer.json</file>
<file>extendedsmartmeterproducer.json</file>
</qresource>
<qresource prefix="/"/>
</RCC>

View File

@ -1,9 +1,3 @@
{
"states": [
{
"name": "totalEnergy",
"type": "double"
}
]
"description": "This interface is used for things that can monitor energy consumption/production. This interface is the base for smartmeter things. Actual things will most likely want to use one of the extending interfaces like smartmeterconsumer and/or smartmeterproducer instead."
}

View File

@ -0,0 +1,10 @@
{
"description": "A smartmeterproducer can monitor total energy consumed by this thing.",
"extends": "smartmeter",
"states": [
{
"name": "totalEnergyConsumed",
"type": "double"
}
]
}

View File

@ -0,0 +1,10 @@
{
"description": "A smartmeterproducer can monitor total energy produced by this thing.",
"extends": "smartmeter",
"states": [
{
"name": "totalEnergyProduced",
"type": "double"
}
]
}