channel: change state pattern dynamically [message #1733762] |
Tue, 31 May 2016 13:51 |
|
I have a device that reports energy and power consumption.
The consumer is wired to the device, so the device itself does not know the characteristics of the energy and power consumption.
The reporting of the device itself can be configured.
The unit the value (always integer) is reported (e.g. energy: Ws, Wh, kWh) and some other stuff.
I would like to use thing or channel configuration to leave it to the user to configure the measurement reporting.
Depend on the selection I want to change the state pattern of the channel:
The pattern is stored in the channel-type and not in the channel, so I assume it is not possible ATM.
Is there any way to handle this use case?
The last resort is to use a String item-type for the channel and build the "<value> <unit>" pattern in the code, but I don't like that.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03191 seconds