Comments (10)
Hey,
this is only an information message and should therefore be no problem.
To be sure and to identify the root cause: Could you start Kelvin with the -debug flag?
Thanks,
Stefan
from kelvin.
Thanks for the reply Stefan. I've changed my installation to have Kelvin run as systemd process rather than as a docker container. It seems a lot easier to know what it going on and has removed the info msg I was receiving.
from kelvin.
Ok but strange... I'll close the issue for now.
from kelvin.
I have been having the parsing error, seemingly off and on(or maybe just me noticing it) since I set it up over a month ago. Here is a loop of the error as seen in the debug log. I am installed via the /opt/kelvin
as a service method.
DEBU[2019/18/04 20:48:31] 🎨 Updating scenes...
DEBU[2019/18/04 20:48:31] 🎨 Updating scene "Default (Kelvin)" for schedule "default"...
INFO[2019/18/04 20:48:31] parsing time "" as "15:04": cannot parse "" as "15"
DEBU[2019/18/04 20:48:32] 🎨 Successfully updated scene "Default (Kelvin)"
DEBU[2019/18/04 20:48:32] 💡 HueLight Living, Wall - Setting light state to 2632K and 72% brightness (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
DEBU[2019/18/04 20:48:32] 💡 HueLight Living, Wall - Light was successfully updated (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
INFO[2019/18/04 20:48:32] 💡 Light Living, Wall - Updated light state to 2632K at 72% brightness
DEBU[2019/18/04 20:48:32] 🤖 Light Living, Wall - Updated light state. Awaiting transition...
DEBU[2019/18/04 20:48:33] 💡 HueLight Living, Center - Setting light state to 2632K and 72% brightness (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
DEBU[2019/18/04 20:48:33] 💡 HueLight Living, Center - Light was successfully updated (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
INFO[2019/18/04 20:48:33] 💡 Light Living, Center - Updated light state to 2632K at 72% brightness
DEBU[2019/18/04 20:48:33] 🤖 Light Living, Center - Updated light state. Awaiting transition...
DEBU[2019/18/04 20:48:33] 💡 HueLight Entry - Setting light state to 2632K and 72% brightness (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
DEBU[2019/18/04 20:48:33] 💡 HueLight Entry - Light was successfully updated (TargetColorTemperature: 379, CurrentColorTemperature: 375, TargetColor: [0.466 0.412], CurrentColor: [0.464 0.412], TargetBrightness: 182, CurrentBrightness: 185, TransitionTime: 4)
INFO[2019/18/04 20:48:33] 💡 Light Entry - Updated light state to 2632K at 72% brightness
DEBU[2019/18/04 20:48:33] 🤖 Light Entry - Updated light state. Awaiting transition...
DEBU[2019/18/04 20:49:31] 💡 Light Living, Wall - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 💡 Light Living, Center - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 💡 Light Entry - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 💡 Light Whale - Updated target light state for the interval 20:00 - 22:00 from {ColorTemperature:2632 Brightness:72} to {ColorTemperature:2616 Brightness:72}
DEBU[2019/18/04 20:49:31] 🎨 Updating scenes...
DEBU[2019/18/04 20:49:31] 🎨 Updating scene "Default (Kelvin)" for schedule "default"...
INFO[2019/18/04 20:49:31] parsing time "" as "15:04": cannot parse "" as "15"
DEBU[2019/18/04 20:49:32] 🎨 Successfully updated scene "Default (Kelvin)"
from kelvin.
Reopening the issue.
Could you post your config.json file? It seems like there is an error in it. Thanks!
from kelvin.
It's almost default, I have basically reset it each time I have upgraded. Edited in place with Nano, or sometimes with the WebGUI. I guessing its the "time": "",
before sunrise part? Which is not something I think I personally edited.
{
"version": 1,
"bridge": {
"ip": "10.0.0.41",
"username": "Xc9fsxooQQyS9Cbuac13YFPA9t6x16bJiU2DVL-5"
},
"location": {
"latitude": 37.7811,
"longitude": -122.4625
},
"webinterface": {
"enabled": true,
"port": 8080
},
"schedules": [
{
"name": "default",
"associatedDeviceIDs": [
1,
2,
3,
4
],
"enableWhenLightsAppear": true,
"defaultColorTemperature": 6500,
"defaultBrightness": 100,
"beforeSunrise": [
{
"time": "",
"colorTemperature": 1500,
"brightness": 60
}
],
"afterSunset": [
{
"time": "20:00",
"colorTemperature": 3400,
"brightness": 80
},
{
"time": "22:00",
"colorTemperature": 1500,
"brightness": 60
}
]
}
]
}
from kelvin.
I tried looking around, not sure what the issue is. My guess is it could be something about the web form resetting to the default of null, then saving it down. Either way, I think it might be sensible to or set NULL times with midnight.
from kelvin.
The issue is the empty string for the "time" key under "beforeSunrise". In this form the configuration is invalid. You can fix the warning by entering valid timestamp in the format of the others.
The default timestamp for this would be "4:00".
from kelvin.
The first Time input field doesn't look to the initalize right on my web GUI. If I click save schedule while it is in this default state, it then overwrites the "4:00" with "".
from kelvin.
The tab "Schedules" in the webinterface displays the content of the config.json. If you have an empty timestamp in your configuration it will be displayed as seen above in the screenshot.
If you clear this field in the webinterface an empty (and invalid) value will be written to your config.json. After this you will see the warnings in the log...
There is certainly some room for improvement here and the webinterface could to some validation... PRs are welcome!
from kelvin.
Related Issues (20)
- After the Upgrade to v1.3.3, Kelvin No Longer Reacts to Lights Turning On HOT 4
- Push new releases to Docker Hub? HOT 1
- Possible to have defined time take precedence over sunset?
- Daylight Savings Adjustment
- Can't run on mac HOT 2
- How to make Kelvin play nicely with the "Wake up with light" automation? HOT 1
- How to stop Kelvin for disabling when physical lightswitch turned off and on? HOT 5
- How do I change the lights at exactly sunrise and sunset? HOT 1
- Kel
- Auto update to 1.3.5 failing on raspberry pi HOT 2
- Hue API v2 support
- Previous versions were deleted from Docker Hub HOT 1
- 1.3.5 unable to serve GUI HOT 2
- Disable automatic Updates HOT 1
- "enable kelvin" greyed out in dashboard
- Home Assistant OS Plugin HOT 1
- Does not work when bulp is disconected from the power grid
- Half of lights not adjusting when enableWhenLightsAppear = false
- Kelvin only applies defaultBrightness, defaultTemperature and schedules. Nothing else. HOT 3
- Auto update installed bad binary on Raspberry Pi HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kelvin.