I have declared 2 switch items in /etc/openhab2/items/mqtt.items
Switch doorbell_ring {mqtt="<[mosquitto:myHome/doorbell/ring:state:default]"}
Switch doorbell_mute {mqtt=">[mosquitto:myHome/doorbell/mute:command:ON:1],>[mosquitto:myHome/doorbell/mute:command:OFF:0]"}
although everything is working correct, these items are not made persistent in my influxDB. Currently I have the persitency setup for influxdb to make all (*) persistent, on everychange.
according:
The states of an item are persisted in time series with names equal to the name of the item. All values are stored in a field called “value” using integers or doubles, OnOffType and OpenClosedType values are stored using 0 or 1. The times for the entries are calculated by InfluxDB.
but I don’t see this comment in the OH2 documentation, neither do I see this behaviour, for my own configured switches,
for switch Items coming from a OH2 bindings (like samsung TV binding where I use power item (being of type switch) the values are made persistence as 0 & 1, so it should be possible. I would expect the same for these manual configured switchs items but that is not the case. Is this a bug or am I missing something?
I’m using OH2, with influxdb 1.1.1