Navigation

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

    CJ Cassarino

    @CJ Cassarino

    1
    Reputation
    13
    Posts
    491
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    CJ Cassarino Follow

    Best posts made by CJ Cassarino

    • Stop all actions if radio failed

      Anyway to stop the Arduino from doing anything when the radio fails? I am using an actuator and the problem is if radio fails whatever command was sent to the actuator will continue. This is a problem as I have set a value for it to stop, if it doesn't stop it will break my window or the actuator. But when the radio fails it stops running the code, is there a way to stop the Arduino or just send a stop command to my relay when the radio fails?

      posted in Troubleshooting
      CJ Cassarino
      CJ Cassarino

    Latest posts made by CJ Cassarino

    • Stop all actions if radio failed

      Anyway to stop the Arduino from doing anything when the radio fails? I am using an actuator and the problem is if radio fails whatever command was sent to the actuator will continue. This is a problem as I have set a value for it to stop, if it doesn't stop it will break my window or the actuator. But when the radio fails it stops running the code, is there a way to stop the Arduino or just send a stop command to my relay when the radio fails?

      posted in Troubleshooting
      CJ Cassarino
      CJ Cassarino
    • RE: MQTT Dimmer

      @moskovskiy82

      Looking for an answer on this too? Did you happen to figure this out?

      posted in OpenHAB
      CJ Cassarino
      CJ Cassarino
    • RE: Multi-button relay switch without debounce

      @Anduril

      Yea thats what I thought, and I see it. Ill check this out thanks

      posted in Hardware
      CJ Cassarino
      CJ Cassarino
    • RE: Trouble sending message to Relay from Openhab

      @Ericb2745

      Well, in that case, it seems you are missing the receiving part of the code. This is directly from the example for the actuator and it works for me... It goes at the end of the code after the void loop.

      // process incoming message
      void receive(const MyMessage &message) {
      
        if (message.type == V_LIGHT) {
          if (message.sensor < noRelays) {          // check if message is valid for relays..... previous line  [[[ if (message.sensor <=noRelays){ ]]]
            Relays[message.sensor].relayState = message.getBool();
            digitalWrite(Relays[message.sensor].relayPin, Relays[message.sensor].relayState ? RELAY_ON : RELAY_OFF); // and set relays accordingly
            saveState( message.sensor, Relays[message.sensor].relayState ); // save sensor state in EEPROM (location == sensor number)
            Serial.print("Incoming change for sensor:");
            Serial.print(message.sensor);
            Serial.print(", New status: ");
            Serial.print(message.getBool());
            if(message.getBool() == 0)
              Serial.println(" = OFF");
            else(Serial.println(" = ON"));
          }
        }
      }
      
      posted in OpenHAB
      CJ Cassarino
      CJ Cassarino
    • RE: Multi-button relay switch without debounce

      @mfalkvidd

      I have bounce2... Ill try redownloading it

      posted in Hardware
      CJ Cassarino
      CJ Cassarino
    • RE: Multi-button relay switch without debounce

      @mfalkvidd

      I get this error "'class Bounce' has no member named 'fell'"

      posted in Hardware
      CJ Cassarino
      CJ Cassarino
    • RE: Multi-button relay switch without debounce

      @Anduril

      Because I am controlling an actuator with the ability for manual controls with a button. I want 1 button when held down to open it and another button when held down to close. With debounce I have to click it to open, click it again to turn of relay, then click the other button to retract, and then click to turn of relay.

      posted in Hardware
      CJ Cassarino
      CJ Cassarino
    • RE: Trouble sending message to Relay from Openhab

      @Ericb2745

      I think you are missing in your arduino code the process for sending the relay information to OpenHAB. Try using this:

      send(msg.set(state?false:true), true); // Send new state and request ack back
      

      Also I can't see the entire item file but you may be missing or incorrectly settting your MQTT binding. This is mine for reference:

      Switch  OpenWindow 			"Extend Actuator"							<rollershutter> 	(gH)								{mqtt=">[mymosquitto:mysensors-in/5/0/1/0/2:command:ON:1],>[mymosquitto:mysensors-in/5/0/1/0/2:command:OFF:0]"}
      
      posted in OpenHAB
      CJ Cassarino
      CJ Cassarino
    • Multi-button relay switch without debounce

      I am trying to figure out how to have multiple relays (2 in my case) with a button to trip the relays but without the debounce. I want the relay to only be active while the switch is being pushed. Could anyone help me with this?

      posted in Hardware
      CJ Cassarino
      CJ Cassarino
    • RE: Cannot get my sitemap to show humidity reading

      Ok I got it working, not sure what I did But I changed my items and followed a few other guides but in all its working now.

      posted in OpenHAB
      CJ Cassarino
      CJ Cassarino