'Authorization':'Basic xxxxxxxxxxxxx'// fill in with your credentials
},
method:"POST",
body: body
}).then((response)=>{
console.log(response)
})
returntrue;
Remember to update the credential parts. Your username, colon, your password, base64 encoded.
I use one flow for temperature change, power change, humidity change. For logic variables, its not that easy. I have to use one flow for each Logic variable. If you use better logic, you would not need that and one flow to catch all logic would be sufficient.
Here is an example of a flow:
A flow to update influxes with motion measurements that turns active.There is a corresponding flow for motion sensors that turns off.
As the flow has generated data over some time, you may start to create grafana dashboards.
For keeping track of logic variables that changes over time, check out the Grafana discrete panel.
Questions for you.
1.
As you can see in the discrete panels above, it will not know the "start" value until the first value changes. Any ideas how to fix that? May be tweak the query to fetch data for a few more hours back in time? I've not managed to get this working yet, let me know if you make it work.