mirror of https://github.com/nymea/nymea.git
add smart meter interfaces
parent
6b636fb82e
commit
3629371f96
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"description": "A smartmeterproducer can monitor total energy consumed by this thing.",
|
||||
"extends": "smartmeter",
|
||||
"states": [
|
||||
{
|
||||
"name": "totalEnergyConsumed",
|
||||
"type": "double"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"description": "A smartmeterproducer can monitor total energy produced by this thing.",
|
||||
"extends": "smartmeter",
|
||||
"states": [
|
||||
{
|
||||
"name": "totalEnergyProduced",
|
||||
"type": "double"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue