I updated HA to the last version, and after taht the node to red from inluxdb stops working. I have as example the following nodes:
In the function node I have:
var fecha = new Date();
var variable = new Date();
var anyo = fecha.getFullYear();
var mes = fecha.getMonth();
mes = mes+1;
mes = "0" + mes;
mes = mes.slice(-2);
msg.query="SELECT mean(\"potencia\") FROM \"mqtt_consumos2\" WHERE time>='"+ anyo + "-" + mes + "-18'";
return msg;
This code is working just before the update, and now is not working…
I tried to update also influxdb to the last update and also node red, but continues not working.
The node to write to inluxdb continues working without any problem.
Any idea about this?.
Thanks,