Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Chaotic
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Chaotic

    • RE: RGB control

      I made a night light for my son and just used V_VARs
      I used the fastLED library And this code to decode from 255,255,255 that I was sending from the controller

      https://codebender.cc/sketch:90239

      Last time it came up http://forum.mysensors.org/topic/1148/need-help-with-turning-a-led-on-off-with-openhab-and-mqtt/4

      posted in Development
      Chaotic
      Chaotic
    • RE: We are mostly using fake nRF24L01+'s, but worse fakes are emerging.

      @phil83 said:

      Probably we could open a permanent thread where we can post our experiences with different aliexpress shops regarding nrf24l01+?

      I'd be interested to see a list of "good" sellers from aliexpress and not just for the radios. It seems like the store links just point to the cheapest one with free shipping some times. I haven't bought enough stuff to get burnt (7 orders of which 2 have come in and the rest should be in a week or 2) but it is one of the things that keeps me wary.

      posted in Hardware
      Chaotic
      Chaotic
    • RE: Led Ring ideas?

      I have the 16 LED version and 5 of the diffused LEDs. So far I've only ended up using 2 of the diffused LEDs for a sleep light for my 4yr old.

      Haven't found any other real uses for them. I've thought of getting some of the strips and doing lighting since then I wouldn't need to replace bulbs/switches but so far I have been unable to get wife approval.

      posted in My Project
      Chaotic
      Chaotic
    • RE: Repeater and blinking leds [SOLVED]

      @HarryDutch

      I wasn't saying don't look at the problem. I think Node to Node communication should work.

      It just this comic
      XKCD Comic
      comes to mind

      At a certain point you have to realize you are solving the problem out of principle (which is a valid reason) rather than to solve the problem.

      posted in Troubleshooting
      Chaotic
      Chaotic
    • RE: Need help with Turning a LED On/Off with OpenHab and MQTT.

      I just finished something similar. I used a Ws2812B LED so it can change colors.

      Arduino Sketch Code Bender Sketch

      And Openhab items

      Switch Light "On/OFF" (gKR) {mqtt=">[mysensors:/MyMQTT/20/2/V_LIGHT:command:ON:1],>[mysensors:/MyMQTT/20/2/V_LIGHT:command:OFF:0]"}
      String KidLight (All) {mqtt=">[mysensors:/MyMQTT/20/1/V_VAR1:command:*:default"}
      Color  RGBKidLight  "Kid Light"   (All,gKR)
      

      and openhab.rule

      import org.openhab.core.library.types.*
      import org.openhab.model.script.actions.*
      
      
      rule "Set RGB value RGBKidLight"
      when
              Item RGBKidLight changed
      then
      		val hsbValue = RGBKidLight.state as HSBType
      
      		val brightness = hsbValue.brightness.intValue  
      		val redValue   = ((((hsbValue.red.intValue * 255) / 100) * brightness) / 100).toString  
      		val greenValue = ((((hsbValue.green.intValue * 255) / 100) * brightness) / 100).toString  
      		val blueValue  = ((((hsbValue.blue.intValue *255) / 100) * brightness) / 100).toString  
      
      		val color = redValue + "," + greenValue + "," + blueValue  
      
      		sendCommand( KidLight, color )
      end
      posted in Troubleshooting
      Chaotic
      Chaotic