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
petewillP

petewill

@petewill
Admin
About
Posts
484
Topics
21
Shares
0
Groups
4
Followers
25
Following
0

Posts

Recent Best Controversial

  • Controlling Blinds.com RF Dooya Motors with Arduino and Vera
    petewillP petewill

    @carlscic Sorry for the delay. I didn't get a notification of your reply due to some issues caused by the Google outage. Looks like you're almost there. Try playing around with the delays. You might need to adjust the separatorDelay delay times (or maybe remove that call completely). They it just comes down to iterating though the code to make sure you're getting the correct sequence of highs and lows. Playing back your results and recording them in Audacity is a great way to see your results.

    My Project

  • Controlling Blinds.com RF Dooya Motors with Arduino and Vera
    petewillP petewill

    @carlscic Sorry, I'm not clear on what you're looking to do. Have you compared the original Audacity recording to the signals you are sending from the Arduino? You should be able to compare them and make the necessary adjustments to the code so the two recordings are identical.

    My Project

  • Controlling Blinds.com RF Dooya Motors with Arduino and Vera
    petewillP petewill

    @ssuckow I can't see the image but when I did this I started in small steps. Your first goal is to send a successful signal without all the MySensors code. I just created a standalone program with all my code in the setup so when it ran it would send a raise, stop or lower signal. Once you do that you can integrate it with MySensors much easier. It sounds like you have mostly done this based on your description above but I'm not sure. Also, are you sure the hardware is wired correctly? Is the 433Mhz device is getting enough power to send the signal to the blinds?

    My Project

  • USB gateway Arduino Mega: HA doesn't see switches and relays
    petewillP petewill

    @jan-kocon I actually submitted a fix for the echo/ack that is now in the most recent version of Home Assistant. So, as long as you are on the most current version the default sketches should work now.

    Home Assistant

  • Just found a pair of "old" NRF51822-04 ... any good?
    petewillP petewill

    @ghiglie Check out these links if you haven't used NRF5 before. They should help you get started.
    https://forum.mysensors.org/topic/9266/guide-nrf5-nrf51-nrf52-for-beginners
    https://www.openhardware.io/view/376/MySensors-NRF5-Platform

    I found the ST-LINK programmer to be easier to work with (using Windows) that the J-LINK

    Hardware

  • USB gateway Arduino Mega: HA doesn't see switches and relays
    petewillP petewill

    @Jan-Kocon I found the issue. Home Assistant doesn't request an Ack response for some reason. Here is a comparison of my current home automation controller (Vera) and Home Assistant. The top line is Vera (requesting an Ack response) and the bottom line is Home Assistant.
    https://www.mysensors.org/build/parser?log=19%3B0%3B1%3B1%3B2%3B1 19%3B0%3B1%3B0%3B2%3B0

    Home Assistant

  • USB gateway Arduino Mega: HA doesn't see switches and relays
    petewillP petewill

    @Jan-Kocon I am experiencing the same thing with my devices (where the status doesn't stick but the relay stays on). I haven't had time to dig into it yet but I suspect this ultimately needs to be fixed in the Home Assistant integration. The example code on the Home Assistant site sends back the status after the relay has been updated. The MySensors RelayActuator sketch does not send back the status this way.

    It seems to me there are two workarounds for this.

    1. Set the "optimistic" setting in the home assistant configuration.yaml file to True
    2. Send the state back to Home Assistant after the relay has been changed. See these lines of code for in the example:
        // Change relay state
        state = (bool)message.getInt();
        digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
        send(msg.set(state?RELAY_ON:RELAY_OFF));```
    Home Assistant

  • USB gateway Arduino Mega: HA doesn't see switches and relays
    petewillP petewill

    @Jan-Kocon I would recommend starting with the relay example sketch that is in the presentation section of this site: https://www.home-assistant.io/components/mysensors/#presentation

    Once you have that working you can start integrating your existing sketch in to that one.

    One thing I notice with your existing sketch is you have a sensor type of "S_LIGHT" which doesn't exist. You need S_BINARY (https://www.mysensors.org/download/serial_api_20).
    You also need to send the initial value in the loop function like this:

      if (!initialValueSent) {
        Serial.println("Sending initial value");
        send(msg.set(state?RELAY_ON:RELAY_OFF));
        Serial.println("Requesting initial value from controller");
        request(CHILD_ID, V_STATUS);
        wait(2000, C_SET, V_STATUS);
      }```
    Home Assistant

  • USB gateway Arduino Mega: HA doesn't see switches and relays
    petewillP petewill

    @jan-kocon I am just learning Home Assistant myself so I'm no expert. One thing it looks like your relay code is missing is to send an initial relay value in the loop function of your code when the node first starts (which is required by Home Assistant). Here is the link for more info: https://www.home-assistant.io/components/mysensors/#presentation

    Home Assistant

  • What did you build today (Pictures) ?
    petewillP petewill

    @berkseo nice! What did you use for the capacitive sensor? MPR121?

    General Discussion

  • Vera edge?
    petewillP petewill

    @lange60 you need a gateway that the Vera connects to. I use the Ethernet gateway with NRF radios. So, Vera connects via IP/Ethernet and the gateway connects to the sensors wirelessly via NRF radios. Most of my devices (including the gateway) use Arduino Pro Minis.

    Vera

  • RooDe - A "reliable" PeopleCounter
    petewillP petewill

    @Kai-Bepperling I have been wanting to make something like this for years. I keep getting sidetracked so I have never completed anything. I am excited to try this method at some point. I have a few rooms where this would work much better than the motion sensors I have now. Thank you for posting this.

    My Project

  • Radio does not send properly when battery-powered
    petewillP petewill

    Maybe you need to update the bootloader and/or fuses? Maybe it has a brownout setting of 4.3V?

    http://www.ladyada.net/learn/avr/fuses.html

    Troubleshooting

  • How To: Automate Devices with Existing Buttons
    petewillP petewill

    @vladimir Yes, you could probably use an optocoupler to read the LEDs without taking too much power from them.

    My Project

  • How To: Automate Devices with Existing Buttons
    petewillP petewill

    @vladimir I have very little time these days so I won't be able to help in detail but if you want to use my method you will need to open your kettle and see what type of buttons they are. They will be connected to ground or power. When you know that you can choose the correct mosfet and start testing. Take a look at my wiring diagram to see what I've done.

    My Project

  • Controlling Blinds.com RF Dooya Motors with Arduino and Vera
    petewillP petewill

    @mortenvinding cool! I looked at a couple of code "sniffers" when I did this but none of them worked. Good to hear progress has been made on that. Should save quite a bit of time.

    My Project

  • 💬 Insulated Whole House Fan
    petewillP petewill

    @lis610 Awesome! Congratulations and great job for not giving up. That was a lot to tackle for a first project! Nice enclosure to house everything. Looks way cleaner than mine :)

    OpenHardware.io mysensors whole house fan

  • 💬 Insulated Whole House Fan
    petewillP petewill

    @lis610 It should work at 8MHz. Have you double checked the wiring? Did you try with the default sketch in the DHT library? What are the debug messages saying?

    OpenHardware.io mysensors whole house fan

  • 💬 Insulated Whole House Fan
    petewillP petewill

    @lis610 Great news! I echo what @hard-shovel said. I try to supply my 5v sensors with 5v power from a regulator (with the appropriate capacitors) instead of my Arduino.

    OpenHardware.io mysensors whole house fan

  • 💬 Insulated Whole House Fan
    petewillP petewill

    @hard-shovel Thanks for the help.

    @lis610 You are picking a very advanced project to start with. If you have the time I'd suggest an easier project like a motion sensor to get started. If you want to keep going I'd suggest doing some additional reading/watching on how this all works. Not trying to be critical but rather save you frustration.

    I'm not running UI7 on my Vera so I haven't tested but it should automatically create your device as long as you are including it when first starting the node. For me I press the "Start" button then power up my node (the fan in this case).
    0_1531784492388_5544c5b2-5b0e-412e-9abd-411d52e298ef-image.png

    However, if you don't have good communication it may not add correctly.

    OpenHardware.io mysensors whole house fan
  • Login

  • Don't have an account? Register

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