Skip to content

Light doesn't respect manual changeΒ #123

@haasn

Description

@haasn

When I try changing the bulb manually, either in the Hue app or with a dimmer switch, nothing happens and Kelvin immediately overrides the bulb state.

Log

Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ€– Kelvin development starting up... πŸš€"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="βš™ Configuration /opt/kelvin/config.json loaded"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ€– Initializing bridge connection..."
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="⌘ Connection to bridge established"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="🌍 Working with location <REDACTED> from configuration"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ€– Devices found on current bridge:"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="| Name                             |  ID | On    | Dimmable | Temperature | Color | Temperature range |"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="| Hallway Main                     |   5 | false | true     | true        | false |     2200K - 6500K |"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="| Entrance                         |   6 | false | true     | true        | false |     2200K - 6500K |"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="| Bedroom Main                     |   7 | true  | true     | true        | false |     2200K - 6500K |"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ’‘ Light Hallway Main - Activating schedule for Oct 27 2024 (Sunrise: 07:43, Sunset: 16:23)"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ’‘ Light Hallway Main - Activating interval 22:00 - 23:59"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ’‘ Light Entrance - Activating schedule for Oct 27 2024 (Sunrise: 07:43, Sunset: 16:23)"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ’‘ Light Entrance - Activating interval 22:00 - 23:59"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ’‘ Light Bedroom Main - Activating schedule for Oct 27 2024 (Sunrise: 07:43, Sunset: 16:23)"
Oct 27 23:36:44 tina kelvin[1178143]: time="2024/27/10 23:36:44" level=info msg="πŸ’‘ Light Bedroom Main - Activating interval 22:00 - 23:59"
Oct 27 23:36:46 tina kelvin[1178143]: time="2024/27/10 23:36:46" level=info msg="πŸ’‘ Light Bedroom Main - Light just appeared."
Oct 27 23:36:46 tina kelvin[1178143]: time="2024/27/10 23:36:46" level=info msg="πŸ’‘ Light Bedroom Main - Initializing state to 1557K at 19% brightness."

If I attempt manually changing the bulb brightness now, I don't see anything in the logs. Nor do I see anything when I attempt manually changing the scene to something other than "Natural (Kelvin)", such as "Night Light".

Here is what happens if I power cycle the light now:

Oct 27 23:41:23 tina kelvin[1178143]: time="2024/27/10 23:41:23" level=info msg="πŸ’‘ Light Bedroom Main - Light is no longer reachable. Clearing state..."
Oct 27 23:41:27 tina kelvin[1178143]: time="2024/27/10 23:41:27" level=info msg="πŸ’‘ Light Bedroom Main - Light just appeared."
Oct 27 23:41:27 tina kelvin[1178143]: time="2024/27/10 23:41:27" level=info msg="πŸ’‘ Light Bedroom Main - Initializing state to 1546K at 19% brightness

Config

{
  "version": 1,
  "bridge": {
    "ip": "<REDACTED>",
    "username": "<REDACTED>"
  },
  "location": {
    "latitude": <REDACTED>,
    "longitude": <REDACTED>
  },
  "webinterface": {
    "enabled": false,
    "port": 8080
  },
  "schedules": [
    {
      "name": "Natural",
      "associatedDeviceIDs": [
        5,
        6,
        7
      ],
      "enableWhenLightsAppear": true,
      "defaultColorTemperature": 4350,
      "defaultBrightness": 100,
      "beforeSunrise": [
        {
          "time": "0:00",
          "colorTemperature": 1300,
          "brightness": 15
        },
        {
          "time": "2:00",
          "colorTemperature": 1000,
          "brightness": 5
        },
        {
          "time": "5:00",
          "colorTemperature": 1500,
          "brightness": 10
        },
        {
          "time": "7:00",
          "colorTemperature": 6400,
          "brightness": 100
        },
        {
          "time": "10:00",
          "colorTemperature": 4350,
          "brightness": 100
        }
      ],
      "afterSunset": [
        {
          "time": "17:00",
          "colorTemperature": 2900,
          "brightness": 100
        },
        {
          "time": "20:00",
          "colorTemperature": 2250,
          "brightness": 56
        },
        {
          "time": "22:00",
          "colorTemperature": 1800,
          "brightness": 35
        },
        {
          "time": "23:59",
          "colorTemperature": 1500,
          "brightness": 15
        }
      ]
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions