MSR with InfluxDB, filter unit from beeing send
-
Hi,
For the standard capabilities MSR sends both a value record and a units record to InfluxDB. The latter I would like not to send as they are not really any use for me and it will reduce the number of records send to my InfluxDB.
Is there a quick way to do this with a filter_entities line like: *>units?
Or do I have to update all capabilities to read like this:
power_sensor:
attributes:
value: trueCheers Rene
-
Rene,
You don't need all that, this should be sufficient:
select_capabilities: power_sensor: attributes: value: true
or the equivalent, using an array of attribute names (my favorite):
select_capabilities: power_sensor: attributes: [ 'value' ]
or using the other YAML array syntax:
select_capabilities: power_sensor: attributes: - value
You can also use a negative to suppress an attribute:
select_capabilities: power_sensor: attributes: [ '-units' ]
Also, can I ask that you go back and fix the formatting of the code sections of your posts, for the benefit of future readers looking at your question and example solution?
-
T toggledbits locked this topic on