I have two persistence services running:
-
influxdb (for use with grafana) (default)
-
mysql
The default is set to influxdb (in paperui) but I also want to store some (string) data using the mysql persistence.
In the mysql.persist I’ve setup a strategy to store the data on everyUpdate, checking the sql database I see the correct data is stored, so no worries about that part.
However when executing a rule, it doesn’t find the item I try to use :
Error during the execution of rule test: cannot invoke method public java
.lang.String org.joda.time.base.AbstractInstant.toString() on null
It looks like the rule checks the (default) influxdb database rather then mysql database.
How can I let my rule know that it needs to ‘get’ the item from mysql ?
-ben