Hi all,
I need to filter unreasonable measurement values of a sensor and utilise the platform: statistics state_characteristic: median function. That runs successfull and does the trick.
Now I need to smoothen the median-processed measurement values and would like to run platform: statistics state_characteristic: average on top of the output of the median function.
However I get the following error message where z1_cur_power_median is the output of the median function:
`Invalid config for [sensor.statistics]: Entity ID z1_cur_power_median is an invalid entity ID for dictionary value @ data[‘entity_id’]. Got ‘z1_cur_power_median’. (See ?, line ?).´
How can I fix this?
How can I convert the output of the median function into an entity, so that the average function accepts the input?
Hi @tom_l,
thank you for your response.
That would have been too good. Unforetunately I now get the following error message:
Invalid config for [sensor.statistics]: The configured characteristic 'average' is not supported for the configured source sensor. Got OrderedDict ([('platform', 'statistics'), ('name', 'z1_cur_power_median_averaged') ('unique_id', 'z1_cur_power_median_averaged'), ('entity_id', 'sensor.z1_cur_power_median'), ('state_characteristic', 'average'), ('max_age', OrderedDict([('minutes', 3)]))]). (See ?, line ?).
Do you have another hint/idea how to cascade/daisy-chain the statistics state_characteristic one after the other?