dk307 / HSPI_InfluxDBPersistence

PlugIn For Homeseer to persist to InfluxDB
MIT License
12 stars 6 forks source link

Warning:Failed to update InfluxData - time outside range #6

Closed phantomBit closed 4 years ago

phantomBit commented 5 years ago

Saving a string value and getting this in the logs:

Warning:Failed to update InfluxData.Net.InfluxDb.ClientModules.DatabaseClientModule with InfluxData API responded with status code=BadRequest, response={"error":"unable to parse 'thermoStatus,location1=Moms,location2=1st\\ Floor,name=Operating\\ State,refid=118 valueString=\"Idle\" -62135578800': time outside range -9223372036854775806 - 9223372036854775806"}

Persistence config:

Name: Thermostat Operating State
Measurement: thermoStatus
Field for string value: valueString

This is just a status for the gocontrol thermostat

Config:

Status Only Device: |  
Is Dimmable: |  
Is Light: |  
Hide device from mobile views: |  
Hide device from views: |  
Do not log commands from this device: |  
Voice command: |  Checked
Confirm voice command: |  
Include in power fail recovery: |  
Use pop-up dialog for control: |  
Do not update device last change time if device value does not change: | Checked

Advanced Tab of the device:

Status | 0 = OFF
Value | 0 = "Idle"
Supports Status | True
Dimmable | False
Interface | Z-Wave
Extra Data Store | 37 Named entries, 0 UnNamed entries.
Device Type Internal | Thermostat API, Type: Thermostat Operating State, SubType: Operating State
Device Type (String) |  
Misc Settings | Show Values, Generate Voice Command, SET_DOES_NOT_CHANGE_LAST_CHANGE

I believe Do not update device last change time if device value does not change: may be the culprit here.

dk307 commented 5 years ago

Plugin get last change time from homeseer using plugin api. Some how that value is outside the range. What do you see as last change value for this device ?

dk307 commented 4 years ago

The problem was in Influx db client library. I fixed that in https://github.com/dk307/HSPI_InfluxDBPersistence/pull/10 by switching to new client library.