Hey,
I encountered an issue with influxdb persistence. I changed an item’s datatype in my items file from switch to number without changing the name of the item.
InfluxDB already created a measurement with integer field type for the switch item. When I changed the item type to number, Openhab was attempting to persist the item with float datatype, which mismatch with the already existing measurement’s field type. This stopped persistence of all items due to batch write error towards influx.
The quick fix for this problem:
- Drop the measurement with wrong type from InfluxDb using the influx console
- Rename the Item, then restart openhab.
I think this trap is too trivial to fall into. The contributors of influxdb persistence service may consider adding some more obvious logging for field type mismatch.