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
ChaoticC

Chaotic

@Chaotic
About
Posts
50
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • RGB control
    ChaoticC Chaotic

    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

    Development

  • Request data from another sensor?
    ChaoticC Chaotic

    This came up before.
    http://forum.mysensors.org/topic/1085/node-to-node-communication

    Basically when the sensor sends the data to the controller you can have it send the same data to the LCD. That would most likely provide a longer battery life than requesting the data from the sensors. Doing it this way only the LCD (and the controller) have to be on all the time.

    Development

  • Led Ring ideas?
    ChaoticC Chaotic

    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.

    My Project

  • Own controller
    ChaoticC Chaotic

    If you are running MQTT there is a gateway that supports that or if you can read serial input you could use the serial gateway.

    You would probably want to look at the Serial protocol and the Full API

    Controllers

  • MQTT Broker gateway
    ChaoticC Chaotic

    @kunall There is V_VAR1-5 actually

    V_VAR1	24	Custom value
    V_VAR2	25	Custom value
    V_VAR3	26	Custom value
    V_VAR4	27	Custom value
    V_VAR5	28	Custom value
    

    Personally I would set up each value you want as a S_CUSTOM if you can't figure out another sensor type that fits.

    For smoke you can use S_SMOKE
    For Air Quality S_AIR_QUALITY
    Not sure what you'd want to use for CO2 through

    http://www.mysensors.org/download/serial_api_14

    Controllers

  • Solar Panel Sun Tracker
    ChaoticC Chaotic

    I haven't done this so I could be totally off. But I would think that if you took a stepper motor and mounted a plate with a piece of cardboard able to block enough sun. You could put a photosensor on each side and move towards the side with the most sun till they are reporting an equal value. Basically this idea http://www.instructables.com/id/Arduino-Solar-Tracker/ <- just one I found googling for sun tracking arduino

    General Discussion

  • [Tutorial] openHAB with serial gateway
    ChaoticC Chaotic

    I think I'm going to try setting this up soon. I've been using the MQTT gateway but this would be simpler I think.

    Any advice for switching from MQTT to serial in openhab.

    I think I need to update openhab to use the 1.70 version but I don't think that would be too hard.

    OpenHAB

  • Wrong links in "Store"
    ChaoticC Chaotic

    I've been looking to buy some things and noticed that some of the aliexpress links aren't going to the item they claim to be.

    10pcs DS18B20 Dallas Temperature Sensors is pointing to 10PCS x Single Row round hole 1X40 Pin Crystal socket

    8 Channel is pointing to Lillianjake 5V 1 2 4 8 12V 16 Channel Relay Module W LED Indicator Light For Arduino [1 Channel Relay(W LED Indicator)]

    Those are just the ones that I have noticed. I'm not sure how the links are created/maintained just letting people know.

    Bug Reports store site

  • State of the physical switch
    ChaoticC Chaotic

    Could you just remove the switch from the actual circuit.

    I believe you can use a "normal" light switch as just a switch for an arduino. So you could make a small node to go in the wall and read the light switch and send the command to toggle and update the controller at the same time. This might introduce a small delay into turning the light on since it would have to go from the light switch node to the gateway/controller and then back to the actual light.

    However I believe (haven't tried it yet my nodes are mostly passive right now) that you could send the command to turn the light on from the light switch node directly to the light at the same time that you send the light is on command to the controller.

    This is what I'm suggesting https://www.reddit.com/r/arduino/comments/2yxcjc/my_first_project_arduinocontrolled_remote_control/

    So instead of the light switch being connected to the house power it is just connected to an arduino/radio.

    General Discussion

  • We are mostly using fake nRF24L01+'s, but worse fakes are emerging.
    ChaoticC Chaotic

    @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.

    Hardware

  • Need help with Turning a LED On/Off with OpenHab and MQTT.
    ChaoticC Chaotic

    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
    
    Troubleshooting rpi gateway arduino mqtt raspberry pi

  • Forum Upgraded
    ChaoticC Chaotic

    Has anyone tested posting codebender sketches since the update? It used to read the link and just show the sketch and it does not appear to be working.

    NM it works it just doesn't show in the preview anymore.

    Announcements

  • MQTT Broker gateway
    ChaoticC Chaotic

    @Brett-Jenkins

    It works both ways.

    Controllers

  • Forum Upgraded
    ChaoticC Chaotic

    @hek I just lost the development Forum. and the layout for the categories keeps jumping around.

    Announcements

  • Forum Upgraded
    ChaoticC Chaotic

    @GuyP Seeing the same thing

    I am seeing the Admin Area.

    Edit seeing troubleshooting now. and Admin Area is gone now.

    For the Record attempting to go into Admin Area gave me a not allowed message.

    Announcements

  • Controlling speed of an AC 230v FAN. Help Needed[RESOLVED]
    ChaoticC Chaotic

    what type of data are you trying to send and is there a reason you can't use V_VAR1? or V_DIMMER?
    I believe V_DIMMER is expecting a % and I know with V_VAR you can send any type you want.

    Hardware

  • "req node id"
    ChaoticC Chaotic

    I had the same questions when I started a few weeks ago.

    Maybe one of the site admins could add the fact that the controller and not the gateway normally handles assigning IDs since it isn't clear.

    Troubleshooting

  • "req node id"
    ChaoticC Chaotic

    @Totche said:

    I you read the first message, it is a screencopy of the serial monitor for both, and I don't see the temperature on the gateway. from the node

    Ps : ok the two are the same for the last question above ;)

    Ps : I don't have a controller

    Your going to want a controller in the long term. For testing you can either hard code the node ID in the sketch (you will want to flash the EEPROM clear sketch when you get a controller)

    The reason your not seeing the temp on the gateway is because it doesn't get sent if there is no node ID.

    Basically the node is asking the gateway/controller who am I and the controller isn't responding so it just keeps asking.

    Troubleshooting

  • "req node id"
    ChaoticC Chaotic

    @Totche

    1. The controller would do that. If you are using a serial gateway it should be passing all the messages and then the controller would send the correct message back. If you are just setting this up for testing then you can create the message manually.
      I believe that this should work and then just replace X with a number.

      255:255:3:0:4:X

    2. That is what the serial gateway does.

    Troubleshooting

  • Comissioning a network, PAN-ID, Frequency selection ??
    ChaoticC Chaotic

    @GaryStofer

    I can answer the second question.

      // Startup and initialize MySensors library. Set callback for incoming messages. 
      gw.begin(); 
    
      // Send the sketch version information to the gateway and Controller
       gw.sendSketchInfo("Temperature Sensor", "1.0");
    

    The gateway will respond with a NodeID after you do the gw.begin. Your Node will then send the name (in this case Temperature Sensor) so you can change the name there.

    Depending on what gateway/controller you are using you may not see that through. I'm using a MQTT gateway with openhab and while the nodes are sending the name Openhab does not use them (that I'm aware of)

    Development comissioning
  • Login

  • Don't have an account? Register

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