Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Yahka Farbtemperatur Kelvin Shelly

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    694

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Yahka Farbtemperatur Kelvin Shelly

Scheduled Pinned Locked Moved ioBroker Allgemein
1 Posts 1 Posters 215 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gises
    wrote on last edited by
    #1

    Hallo zusammen

    Wer bei Yahka die Farbtemperatur einstellen will und dabei von Kelvin zu HomeKit umrechnen muss kann folgende Vorgehensweise anwenden.
    Selber hab ich dies bei Shelly Bulb Duo im Einsatz und da ich doch etwas rumgeübt habe, möchte ich euch meinen Lösungsansatz aufzeigen.
    Bei anderen Lampen kann sein, dass der Kelvin Bereich ein anderer ist, dann sind die entsprechenden Zahlen anzupassen.
    Bei mir ist der Bereich von 2700 - 6500 Kelvin. Die Zahlen für HomeKit sind gleichbleibend, also nur die 2700 und 6500 Zahlen auf eure Kelvin Werte anpassen und es funktioniert.

    Ich habe bewusst nach einer schlanken Lösung gesucht, die mir erlaubt, die Farben im HomeKit anpassen zu können. Der Knackpunkt bei mir war, dass die Berechnung immer Nachkommastellen hatte. Mit diesem kleinen Script funktioniert es nun zu meiner Zufriedenheit.
    Danke allen Mitstreitern!

    To Homekit

    return Math.floor(Math.max(Math.min(140+(6500-value)*36/380, 500),140))
    

    To ioBroker

    return Math.floor(Math.max(Math.min(6500-(value-140)*380/36, 6500),2700))
    

    So sieht es im Adapter aus.
    Yahka_Farbtemperatur.jpg

    1 Reply Last reply
    1

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Support us

    ioBroker
    Community Adapters
    Donate
    FAQ Cloud / IOT
    HowTo: Node.js-Update
    HowTo: Backup/Restore
    Downloads
    BLOG

    470

    Online

    32.7k

    Users

    82.6k

    Topics

    1.3m

    Posts
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Home
    • Recent
    • Tags
    • Unread 0
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe