I’ve been using this integration successfully and enjoying it a lot. But I see a few things that would be good to tweak. First, is there a way for the child devices to update immediately instead of waiting for the parent device to respond?
Also, for the light dimmer, I would see where in the code you use levels 1, 2, and 3 only and I think it would be better to set to Low for any dimmer 30% or below and High at 70% or above and Medium in between.
[EDIT - removed the Forever fixed idea, found that it is already there with a setting]
I can tweak my local version, but let me know if you like these ideas enough to issue an update. The edits seem easy so you could easily do it judging from how professional your code looks.
By the way, my bed is a Climate 360 so I can verify that this support works.
Here's the tweak I used:
// tweaked to support all levels; same original 3 plus the full slider range - Low is <= 30, High >= 70, 30 < MED < 70
if ( level == 3 || level >= 70 ) {
val = sHIGH
} else if ( level == 2 || level > 30) {
val = sMED
} else {
val = sLOW
}
type or paste code here