it works the Device State switch is active, but an error is generated with both of solution.
The topic LWT of sonoff return “Connecté” remaped to ON
Here is the error :
java.lang.RuntimeException: {“error”:“partial write: field type conflict: input field "value" on measurement "sonoff_SW01_DeviceState" is type float, already exists as type string dropped=1”}
You may have had the item as a Number item when you created it and influx created a Float record for it.
Now you’re a bit stuck.
you’ll either remove it from the persistence.
or rename the item
or edit the influxdb and remove the table for this item. It will be recreated fresh by the binding when required
I’ve been success to double transform with JSONPATH and MAP transform with the “∩” character…
Because my value returned whiting my json is always an device RF data and a switch need an ON/OFF value.
Note that there’s no space around de “∩” special character…
But to make an contact type it is not working as look like contact type discard my “ON/OFF” values. So I make it a switch type…