Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
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
Brand Logo
  1. Home
  2. Troubleshooting
  3. Colour temperature?

Colour temperature?

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 1.2k Views 3 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.
  • alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #1

    Hi,

    I need to send the correlated colour temperature (CCT) to the controller from a node. How can I present it please in MyMessage()/present()? It is expressed in Kelvins.

    FYG - Colour temperature defines the colour appearance of a white LED. CCT is defined in degrees Kelvin; a warm light is around 2700K, moving to neutral white at around 4000K, and to cool white, at 5000K or more.

    1 Reply Last reply
    0
    • rejoe2R Offline
      rejoe2R Offline
      rejoe2
      wrote on last edited by
      #2

      You may use virtually any other type of sensor as a child (apart from the ones representing percentage values). I fyou want to have it bidirectional, use one your controller is able to send. In most cases S_CUSTOM is a good idea, but eg. FHEM will then provide you with 5 variables to exchange info between controller and node - that may be to much.

      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

      alexsh1A 1 Reply Last reply
      0
      • rejoe2R rejoe2

        You may use virtually any other type of sensor as a child (apart from the ones representing percentage values). I fyou want to have it bidirectional, use one your controller is able to send. In most cases S_CUSTOM is a good idea, but eg. FHEM will then provide you with 5 variables to exchange info between controller and node - that may be to much.

        alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #3

        @rejoe2 I am not sure Domoticz would accept S_CUSTOM. It may have been changed recently though. But I wonder if anyone has had a similar issue. How to represent Kelvins? What's the best representative in MySensors?

        mfalkviddM 1 Reply Last reply
        0
        • alexsh1A alexsh1

          @rejoe2 I am not sure Domoticz would accept S_CUSTOM. It may have been changed recently though. But I wonder if anyone has had a similar issue. How to represent Kelvins? What's the best representative in MySensors?

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @alexsh1 I would try the options supported by S_LIGHT_LEVEL, and normal temperature and see which looks best in Domoticz.

          Alternatively, convert the temperature to a rgb value (algorithm: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ ) but I guess it depends on what you're going to do with the value.

          V_TEXT might be a viable fallback if nothing else works.

          1 Reply Last reply
          0
          • alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #5

            @mfalkvidd Nice one - thanks. The only issue is this:

            Start with a temperature, in Kelvin, somewhere between 1000 and 40000.  (Other values may work,
                 but I can't make any promises about the quality of the algorithm's estimates above 40000 K.)
            

            I have values from 0 to 65535 on RGBW (Provides 16-bit resolution for each channel
            (R, G, B, W))

            mfalkviddM 1 Reply Last reply
            0
            • alexsh1A alexsh1

              @mfalkvidd Nice one - thanks. The only issue is this:

              Start with a temperature, in Kelvin, somewhere between 1000 and 40000.  (Other values may work,
                   but I can't make any promises about the quality of the algorithm's estimates above 40000 K.)
              

              I have values from 0 to 65535 on RGBW (Provides 16-bit resolution for each channel
              (R, G, B, W))

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #6

              @alexsh1 that's why I suggested the conversion. Or do you need values below 1000K/ above 40000K?

              alexsh1A 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @alexsh1 that's why I suggested the conversion. Or do you need values below 1000K/ above 40000K?

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #7

                @mfalkvidd For now, I left it all in Lux. I have to think about what to do next. This is for VEML6040 - I intent to use it to manage RGBW LED colours behind my TV

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                23

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular