Hello everyone,
I just moved, installed Tradfi lightbulbs everywhere and were ready to get started with some home automation when OH3 was released, what a timing
I’m running the official docker image for OH3 together with a few other services via docker-compose on a Raspberry PI 4B 8GB, using the RPi OS 64bit beta version. All of this seems to be working fine, but if you need more information regarding the setup I’d be happy to provide it.
Anyway, I followed through the OH beginner tutorial and discovery worked fine, all my lightbulbs, remote controls, motion sensors and power outlets are found. I’ve also created a semantic model, and read about the OH concepts (although I’m still getting used to all the different terms).
Now, as a next step, I’m trying to fill the overview page, and this is where I encountered my first problem. As searching these forums, issues on GitHub, and the rest of the internet via Google didn’t yield anything remotely useful, I’m now trying here, so let’s get to the actual issue.
I have the following thing, a lightbulb, configured via the UI:
UID: tradfri:0220:gw58d50ab33481:65549
label: Schreibtischlampe
thingTypeUID: tradfri:0220
configuration:
id: 65549
bridgeUID: tradfri:gateway:gw58d50ab33481
As specified in the Tradfri Binding documentation, it has two channels: brightness
and color_temperature
. As the title says, the issue is with the latter.
The color_temperature
channel is linked with an item Schreibtischlampe_ColorTemperature
(It seems I can’t access the textual specification via the UI, but the UI is all I’ve used so far).
The link uses the default
profile (the problem doesn’t occur with the follow
profile, it’ll become clear why).
In the overview page I added a widget to control Schreibtischlampe_ColorTemperature
(doesn’t matter whether it’s a slider, stepper, or knob), here’s the slider:
component: oh-slider-card
config:
title: Schreibtisch
footer: Wärme
item: Schreibtischlampe_ColorTemperature
min: 0
max: 100
label: true
scale: true
scaleSteps: 4
unit: "%"
When I change the value, e.g, from 100 to 50, the color temperature actually changes to 50, but then back to 100, and then to 50, and so on and so forth, until it eventually stops somewhere.
So I’m thinking, that the default
profile of the Channel<->Item link somehow simultaneously tries to set a new value, but also updates the item with the current value.
As mentioned above, this doesn’t occur with the follow
profile, but that wouldn’t allow me to see when I change the color temperature outside of OH, e.g., via Google Home, because this profile doesn’t update the item with the current value (long-term I’m planning to rely on OH more and properly integrate Google Home/Assistant, but I’m obviously not there yet).
Here’s a log excerpt:
21:54:47.411 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 100
21:54:47.414 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 100
21:54:47.418 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 100
21:54:47.502 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 49
21:54:47.520 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 49 to 52
21:54:47.569 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 50
21:54:47.573 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 50
21:54:47.581 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 52 to 50
21:54:49.483 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 97
21:54:49.508 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 97 to 50
21:54:49.518 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 100
21:54:49.534 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 100
21:54:49.539 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 100
21:54:51.484 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 49
21:54:51.505 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 49 to 100
21:54:51.524 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 50
21:54:51.531 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 50
21:54:51.537 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 50
21:54:53.488 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 97
21:54:53.505 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 97 to 50
21:54:53.508 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 100
21:54:53.519 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 100
21:54:53.527 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 100
21:54:55.497 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 49
21:54:55.521 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 49 to 100
21:54:55.567 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 50
21:54:55.578 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 50
21:54:55.587 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 50
21:54:57.491 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 97
21:54:57.510 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 100
21:54:57.519 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 100
21:54:57.523 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 97 to 50
21:54:57.528 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 50 to 100
21:54:59.492 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 49
21:54:59.511 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'Schreibtischlampe_ColorTemperature' received command 50
21:54:59.522 [INFO ] [openhab.event.ItemStatePredictedEvent] - Item 'Schreibtischlampe_ColorTemperature' predicted to become 50
21:54:59.526 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 49 to 100
21:54:59.536 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Schreibtischlampe_ColorTemperature' changed from 100 to 50
If someone knows how to resolve this - great!
But I’d also be happy about hints where to look further, or ways to narrow down the source of the problem.
Questions I’ve got in my head currently:
- Is there a problem on my side, or is this a bug?
- If it is a bug, is it somewhere on OH’s core, maybe the implementation of the
default
profile, or rather in the Tradfri binding? - What could be my next steps? Should I open an issue on GitHub?
Sorry for this wall of text, I just wanted to make sure everything relevant is included. If you need any more information I’ll gladly provide it, but currently I just don’t know how to continue.
Thanks in advance!