InfluxDB Boolean Write Field Type Conflict

Hi, I’m trying to write boolean to influx database and getting the following error.

How do I go about correcting this? what throws this error?

{"error":"partial write: field type conflict: input field \"value\" on measurement \"mosquitto\" is type boolean, 
already exists as type float dropped=1"}

I’m using nodered to send mqtt data to influxdb and grafana to display.

Here is the debug information.

object
topic: "jace/home/heatpump/uvlight_ss"
payload: string
{"error":"partial write: field type conflict: input field \"value\" on measurement \"mosquitto\" is type boolean, 
already exists as type float dropped=1"}
qos: 0
retain: false
_topic: "jace/home/heatpump/uvlight_ss"
_msgid: "c62e9c41.bb098"
_statusCode: 400   
_headers: object
_content-type: "application/json"
_request-id: "cf825b18-9354-11e8-ac0c-000000000000"
_x-influxdb-build: "OSS"
_x-influxdb-error: "partial write: field type conflict: input field "value" on measurement "mosquitto" is type         __boolean, already exists as type float dropped=1"
_x-influxdb-version: "1.6.0"
_x-request-id: "cf825b18-9354-11e8-ac0c-000000000000"
_date: "Sun, 29 Jul 2018 17:28:30 GMT"
_content-length: "155"
_connection: "close"
_x-node-red-request-node: "35d7a34b"
_responseUrl: "http://192.168.1.8:8086/write?db=mosquitto"

I have a UV light status, and want to log it and use the discrete plugin to visualize in grafana.