I am trying to record a specific float value into InfluxDB every time a binary sensor flips on. The value is for a rain gauge triggered every time X amount of rain falls. So I want to record X into IDB so I can aggregate data on rain later.
Any suggestions?