Announcement

Collapse
No announcement yet.

Set Custom RGB from script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Set Custom RGB from script

    Is there a way to send a custom rgb command to a device like the Fibaro RGB controller? Tenscriptaid crashes on that device. I’ve tried changing the command for another channel to custom RGB and the script doesn’t fail to compile, it says in the log it’s sent, but nothing changes. I’ve also tried this with an aeon labs rgb bulb. Nothing ever changes and changing each channel, when you have 6 around the ceiling controlling all the lights, is slow. I’ve seen it take from 10 seconds to a minute to change.

    Thanks
    steven

  • #2
    If I remember right then you should be able to set the controlstring parameter in a CAPI control to a RGB hex value then pass it to the CAPI control handler and it should trigger the plugin to handle it.
    My Plugins:

    Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
    Yeelight 3P | Nanoleaf 3P

    Comment


    • #3
      When I tried a hex code the compiling fails due to wrong variable type. Tenscriptaid does say is a number between 1 and 16billion and change. Unless there is a capi control that I am missing.

      Comment


      • #4
        Here is a screenshot from Tenscriptaid show that it is a number, not hex, code to do a custom color.

        Click image for larger version

Name:	CustomRGB.png
Views:	53
Size:	413.7 KB
ID:	1313815

        Using a number gets no result.

        Comment

        Working...
        X