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
DickD

Dick

@Dick
About
Posts
144
Topics
28
Shares
0
Groups
0
Followers
1
Following
2

Posts

Recent Best Controversial

  • Binary button must lock after using
    DickD Dick

    Can anybody help how to get a Binary button in a sleep mode and cannot be used for 15 min. After 15min the button works again.

    General Discussion

  • IR remote controle
    DickD Dick

    @nca78 I start experiment this weekend and will give it a try. Thanks for the ideas to make a working solution, in this case the use of an existing IR controle.

    General Discussion

  • IR remote controle
    DickD Dick

    Thanks for the reply but this is probably to big for me. I wanted to make an IR remote to operate the most common use Mysensors in my house without starting the Domoticz app,The results I wanted to connect using an Event in domoticz

    General Discussion

  • IR remote controle
    DickD Dick

    I found a nice project using an IR remote controle, it is designed for Arduino but I have no idea how to convert the code to MySensors. Who can help? ```

    /*Code belongs to this video https://www.youtube.com/watch?v=wqZwQnh6ZtQ
    writen by Moz for YouTube changel logmaker360.
    13-04-2016

    code works on a car mp3 remote controller
    */

    #include <IRremote.h>
    int RECV_PIN = 6;
    int BLUE_LED = 13;
    int RED_LED = 12;

    IRrecv irrecv(RECV_PIN);
    decode_results results;

    void setup() {
    // initialize the digital pin as an output.
    pinMode(RECV_PIN, INPUT);
    pinMode(BLUE_LED, OUTPUT);
    pinMode(RED_LED, OUTPUT);
    irrecv.enableIRIn(); // Start the receiver
    Serial.begin(9600);
    }
    void loop() {
    int i=0;
    if (irrecv.decode(&results)) {

    translateIR();
    unknownRemoter();

     irrecv.resume(); // Receive the next value
    

    }
    }

    void translateIR() // takes action based on IR code received describing Car MP3 IR codes
    {

    switch(results.value){
    case 0xFFA25D:
    Serial.println(" CH- ");
    break;
    case 0xFF629D:
    Serial.println(" CH ");
    break;
    case 0xFFE21D:
    Serial.println(" CH+ ");
    break;
    case 0xFF22DD:
    Serial.println(" blue LED off ");
    digitalWrite(13,LOW);
    break;
    case 0xFF02FD:
    Serial.println(" blue LED on ");
    digitalWrite(13, HIGH);
    break;
    case 0xFFC23D:
    Serial.println(" PLAY/PAUSE ");
    break;
    case 0xFFE01F:
    Serial.println(" VOL- ");
    break;
    case 0xFFA857:
    Serial.println(" VOL+ ");
    break;
    case 0xFF906F:
    Serial.println(" EQ ");
    break;
    case 0xFF6897:
    Serial.println(" 0 ");
    break;
    case 0xFF9867:
    Serial.println(" 100+ ");
    break;
    case 0xFFB04F:
    Serial.println(" 200+ ");
    break;
    case 0xFF30CF:
    Serial.println(" 1 ");
    break;

    case 0xFF18E7:
    Serial.println(" 2 ");
    break;

    case 0xFF7A85:
    Serial.println(" 3 ");
    break;

    case 0xFF10EF:
    Serial.println(" 4 ");
    break;

    case 0xFF38C7:
    Serial.println(" 5 ");
    break;

    case 0xFF5AA5:
    Serial.println(" 6 ");
    break;

    case 0xFF42BD:
    Serial.println(" 7 ");
    break;

    case 0xFF4AB5:
    Serial.println(" 8 ");
    break;

    case 0xFF52AD:
    Serial.println(" 9 ");
    break;

    default:
    Serial.print(" unknown button ");
    Serial.println(results.value, HEX);

    }

    delay(500);

    }

    void unknownRemoter(){ //this function is from an old remoter see video.
    long RED_LED_OFF = 0xFF40BF;
    long RED_LED_ON = 0xFF906F;
    long LAST_BUTTON = 0xFFD02F;

    if (results.value == RED_LED_OFF){
    Serial.println ("Red led off");
    digitalWrite(12,LOW);
    }
    else if (results.value == RED_LED_ON )
    {
    Serial.println ("Red led on");
    digitalWrite(12,HIGH);
    }
    else if (results.value == LAST_BUTTON )
    {
    Serial.println ("CAMERA IMAGE button");
    }else{
    Serial.print(" still an unknown button ");
    Serial.println(results.value, HEX);
    }
    }

    General Discussion

  • Not all Relais visible in Domoticz
    DickD Dick

    @mfalkvidd thanks for your support and no errors anymore. Unfortunately it did not work forme. probably I split my sensors in to, one with the relais switches and 1 with the binary buttons. I think that is the only way to continue right now.

    Development

  • Not all Relais visible in Domoticz
    DickD Dick

    @mfalkvidd I tested the solution and the LOOP code looks like this
    but having an error during compiling ("IF" was not declared in this scope). how can I fix that?

    void loop()
    {
      debouncerIRBIN.update();
      // Get the update value
      int valueIRBIN = debouncerIRBIN.read();
    
      if (valueIRBIN != oldValue_IRBIN) {
        // Send in the new value
        send(msgIRBIN.set(valueIRBIN == HIGH ? 1 : 0));
        oldValue_IRBIN = valueIRBIN;
      }
    
      debouncerIRBUI.update();
      // Get the update value
      int valueIRBUI = debouncerIRBUI.read();
    
      if (valueIRBUI != oldValue_IRBUI) {
        // Send in the new value
        send(msgIRBUI.set(valueIRBUI == HIGH ? 1 : 0));
        oldValue_IRBUI = valueIRBUI;
      }
      
      static bool startup = true;
      If (startup) {
    Send initial value for each switch/relay
    startup=false;
    }
    }```
    Development

  • Not all Relais visible in Domoticz
    DickD Dick

    @nagelc
    Thanks for the reply but I am not that experience. I must add your script to the "LOOP" but doing that I get a message "startup" was not declared in the scope. Can you show me was to declair?

    Development

  • Multi relay with two Binary switches
    DickD Dick

    @dick said in Multi relay with two Binary switches:

    I created 2 project where I need 5 relays and 2 buttons. If I put the number of relays on 5, I only see 3 in my Domoticz. The switches are visible in Domoticz without problems. How can I fix the relay issue?

    // Enable debug prints to serial monitor
    #define MY_DEBUG

    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69

    // Enable repeater functionality for this node
    #define MY_REPEATER_FEATURE

    #include <SPI.h>
    #include <MySensors.h>
    #include <Bounce2.h>

    #define RELAY_1 A0 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
    #define NUMBER_OF_RELAYS 5 // Total number of attached relays
    #define RELAY_ON 0 // GPIO value to write to turn on attached relay
    #define RELAY_OFF 1 // GPIO value to write to turn off attached relay

    #define CHILD_ID_IRBIN 3
    #define CHILD_ID_IRBUI 4
    #define IRBIN_PIN 3 // Arduino Digital I/O pin for button/reed switch
    #define IRBUI_PIN 4

    Bounce debouncerIRBIN = Bounce();
    Bounce debouncerIRBUI = Bounce();

    int oldValue_IRBIN = -1;
    int oldValue_IRBUI = -1;

    MyMessage msgIRBIN(CHILD_ID_IRBIN, V_TRIPPED);
    MyMessage msgIRBUI(CHILD_ID_IRBUI, V_TRIPPED);

    void before()
    {
    for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
    // Then set relay pins in output mode
    pinMode(pin, OUTPUT);
    // Set relay to last known state (using eeprom storage)
    digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
    }
    }

    void setup()
    {
    // Setup the button1
    pinMode(IRBIN_PIN, INPUT);
    debouncerIRBIN.attach(IRBIN_PIN);
    debouncerIRBIN.interval(5);
    digitalWrite(IRBIN_PIN, HIGH);
    // Setup the button2
    pinMode(IRBUI_PIN, INPUT);
    debouncerIRBUI.attach(IRBUI_PIN);
    debouncerIRBUI.interval(5);
    digitalWrite(IRBUI_PIN, HIGH);

    }

    void presentation()
    {
    // Register binary input sensor to gw (they will be created as child devices)
    // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
    // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
    present(CHILD_ID_IRBIN, S_DOOR);
    present(CHILD_ID_IRBUI, S_DOOR);

    for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
    // Register all sensors to gw (they will be created as child devices)
    present(sensor, S_BINARY);
    }
    }

    void loop()
    {
    debouncerIRBIN.update();
    // Get the update value
    int valueIRBIN = debouncerIRBIN.read();

    if (valueIRBIN != oldValue_IRBIN) {
    // Send in the new value
    send(msgIRBIN.set(valueIRBIN == HIGH ? 1 : 0));
    oldValue_IRBIN = valueIRBIN;
    }

    debouncerIRBUI.update();
    // Get the update value
    int valueIRBUI = debouncerIRBUI.read();

    if (valueIRBUI != oldValue_IRBUI) {
    // Send in the new value
    send(msgIRBUI.set(valueIRBUI == HIGH ? 1 : 0));
    oldValue_IRBUI = valueIRBUI;
    }
    }

    void receive(const MyMessage &message)
    {
    // We only expect one type of message from controller. But we better check anyway.
    if (message.type==V_STATUS) {
    // Change relay state
    digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
    // Store state in eeprom
    saveState(message.sensor, message.getBool());
    // Write some debug info
    Serial.print("Incoming change for sensor:");
    Serial.print(message.sensor);
    Serial.print(", New status: ");
    Serial.println(message.getBool());
    }
    }

    
    

    Sorry, add my questions two times

    Development

  • Not all Relais visible in Domoticz
    DickD Dick

    I started a project with 5 relays and 2 binary buttons. In Domotics 3 of the 5 relays pops up including the 2 binary buttons. Why not 5 relays?

    
    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    // Enable repeater functionality for this node
    #define MY_REPEATER_FEATURE
    
    #include <SPI.h>
    #include <MySensors.h>
    #include <Bounce2.h>
    
    #define RELAY_1  A0  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
    #define NUMBER_OF_RELAYS 5 // Total number of attached relays
    #define RELAY_ON 0  // GPIO value to write to turn on attached relay
    #define RELAY_OFF 1 // GPIO value to write to turn off attached relay
    
    #define CHILD_ID_IRBIN 3
    #define CHILD_ID_IRBUI 4
    #define IRBIN_PIN  3  // Arduino Digital I/O pin for button/reed switch
    #define IRBUI_PIN  4
    
    Bounce debouncerIRBIN = Bounce();
    Bounce debouncerIRBUI = Bounce();
    
    int oldValue_IRBIN = -1;
    int oldValue_IRBUI = -1;
    
    MyMessage msgIRBIN(CHILD_ID_IRBIN, V_TRIPPED);
    MyMessage msgIRBUI(CHILD_ID_IRBUI, V_TRIPPED);
    
    void before()
    {
    	for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
    		// Then set relay pins in output mode
    		pinMode(pin, OUTPUT);
    		// Set relay to last known state (using eeprom storage)
    		digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
    	}
    }
    
    void setup()
    {
      // Setup the button1
      pinMode(IRBIN_PIN, INPUT);
      debouncerIRBIN.attach(IRBIN_PIN);
      debouncerIRBIN.interval(5);
      digitalWrite(IRBIN_PIN, HIGH);
      // Setup the button2
      pinMode(IRBUI_PIN, INPUT);
      debouncerIRBUI.attach(IRBUI_PIN);
      debouncerIRBUI.interval(5);
      digitalWrite(IRBUI_PIN, HIGH);
    
      }
    
    void presentation()
    {
     // Register binary input sensor to gw (they will be created as child devices)
      // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
      // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
      present(CHILD_ID_IRBIN, S_DOOR);
      present(CHILD_ID_IRBUI, S_DOOR);
    
    	for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
    		// Register all sensors to gw (they will be created as child devices)
    		present(sensor, S_BINARY);
    	}
     }
    
    
    void loop()
    {
      debouncerIRBIN.update();
      // Get the update value
      int valueIRBIN = debouncerIRBIN.read();
    
      if (valueIRBIN != oldValue_IRBIN) {
        // Send in the new value
        send(msgIRBIN.set(valueIRBIN == HIGH ? 1 : 0));
        oldValue_IRBIN = valueIRBIN;
      }
    
      debouncerIRBUI.update();
      // Get the update value
      int valueIRBUI = debouncerIRBUI.read();
    
      if (valueIRBUI != oldValue_IRBUI) {
        // Send in the new value
        send(msgIRBUI.set(valueIRBUI == HIGH ? 1 : 0));
        oldValue_IRBUI = valueIRBUI;
      }
    }
    
    void receive(const MyMessage &message)
    {
    	// We only expect one type of message from controller. But we better check anyway.
    	if (message.type==V_STATUS) {
    		// Change relay state
    		digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
    		// Store state in eeprom
    		saveState(message.sensor, message.getBool());
    		// Write some debug info
    		Serial.print("Incoming change for sensor:");
    		Serial.print(message.sensor);
    		Serial.print(", New status: ");
    		Serial.println(message.getBool());
    	}
    }
    
    Development

  • Multi relay with two Binary switches
    DickD Dick

    I created 2 project where I need 5 relays and 2 buttons. If I put the number of relays on 5, I only see 3 in my Domoticz. The switches are visible in Domoticz without problems. How can I fix the relay issue?

    // Enable debug prints to serial monitor
    #define MY_DEBUG

    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69

    // Enable repeater functionality for this node
    #define MY_REPEATER_FEATURE

    #include <SPI.h>
    #include <MySensors.h>
    #include <Bounce2.h>

    #define RELAY_1 A0 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
    #define NUMBER_OF_RELAYS 5 // Total number of attached relays
    #define RELAY_ON 0 // GPIO value to write to turn on attached relay
    #define RELAY_OFF 1 // GPIO value to write to turn off attached relay

    #define CHILD_ID_IRBIN 3
    #define CHILD_ID_IRBUI 4
    #define IRBIN_PIN 3 // Arduino Digital I/O pin for button/reed switch
    #define IRBUI_PIN 4

    Bounce debouncerIRBIN = Bounce();
    Bounce debouncerIRBUI = Bounce();

    int oldValue_IRBIN = -1;
    int oldValue_IRBUI = -1;

    MyMessage msgIRBIN(CHILD_ID_IRBIN, V_TRIPPED);
    MyMessage msgIRBUI(CHILD_ID_IRBUI, V_TRIPPED);

    void before()
    {
    for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
    // Then set relay pins in output mode
    pinMode(pin, OUTPUT);
    // Set relay to last known state (using eeprom storage)
    digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
    }
    }

    void setup()
    {
    // Setup the button1
    pinMode(IRBIN_PIN, INPUT);
    debouncerIRBIN.attach(IRBIN_PIN);
    debouncerIRBIN.interval(5);
    digitalWrite(IRBIN_PIN, HIGH);
    // Setup the button2
    pinMode(IRBUI_PIN, INPUT);
    debouncerIRBUI.attach(IRBUI_PIN);
    debouncerIRBUI.interval(5);
    digitalWrite(IRBUI_PIN, HIGH);

    }

    void presentation()
    {
    // Register binary input sensor to gw (they will be created as child devices)
    // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
    // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
    present(CHILD_ID_IRBIN, S_DOOR);
    present(CHILD_ID_IRBUI, S_DOOR);

    for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
    	// Register all sensors to gw (they will be created as child devices)
    	present(sensor, S_BINARY);
    }
    

    }

    void loop()
    {
    debouncerIRBIN.update();
    // Get the update value
    int valueIRBIN = debouncerIRBIN.read();

    if (valueIRBIN != oldValue_IRBIN) {
    // Send in the new value
    send(msgIRBIN.set(valueIRBIN == HIGH ? 1 : 0));
    oldValue_IRBIN = valueIRBIN;
    }

    debouncerIRBUI.update();
    // Get the update value
    int valueIRBUI = debouncerIRBUI.read();

    if (valueIRBUI != oldValue_IRBUI) {
    // Send in the new value
    send(msgIRBUI.set(valueIRBUI == HIGH ? 1 : 0));
    oldValue_IRBUI = valueIRBUI;
    }
    }

    void receive(const MyMessage &message)
    {
    // We only expect one type of message from controller. But we better check anyway.
    if (message.type==V_STATUS) {
    // Change relay state
    digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
    // Store state in eeprom
    saveState(message.sensor, message.getBool());
    // Write some debug info
    Serial.print("Incoming change for sensor:");
    Serial.print(message.sensor);
    Serial.print(", New status: ");
    Serial.println(message.getBool());
    }
    }

    
    
    Development

  • No matching function for call 'DHT::DHT()'
    DickD Dick

    @mfalkvidd You are right. This was the problem. I forgot to check that. thanks for the Direction!

    Development

  • No matching function for call 'DHT::DHT()'
    DickD Dick

    @dbemowsk Thanks for the reply. After a fresh install of the Arduino IDE and adding the MySensors lib and the DHT lib you send me in the link, the compiling finished without errors but Now I have another strange behaviour where I work already on the whole day but I cannot find it. Looking on the serial monitor I see, (and I include a log from another already working switch)
    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
    3 MCO:BGN:BFR
    5 TSM:INIT
    6 TSF:WUR:MS=0
    13 TSM:INIT:TSP OK
    15 TSF:SID:OK,ID=6
    16 TSM:FPAR
    58 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    181 TSF:MSG:READ,0-0-6,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    186 TSF:MSG:FPAR OK,ID=0,D=1
    329 TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    334 TSF:MSG:BC
    2065 TSM:FPAR:OK
    2066 TSM:ID
    2067 TSM:ID:OK
    2069 TSM:UPL
    2073 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2084 TSF:MSG:READ,0-0-6,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2089 TSF:MSG:PONG RECV,HP=1
    2093 TSM:UPL:OK
    2094 TSM:READY:ID=6,PAR=0,DIS=1
    2102 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2111 TSF:MSG:READ,0-0-6,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2119 TSF:MSG:SEND,6-6-0-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
    2128 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2144 TSF:MSG:READ,0-0-6,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2152 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=11,pt=0,l=5,sg=0,ft=0,st=OK:Relay
    2161 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
    2169 TSF:MSG:SEND,6-6-0-0,s=1,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    2179 TSF:MSG:SEND,6-6-0-0,s=2,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
    2184 MCO:REG:REQ
    2189 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2197 TSF:MSG:READ,0-0-6,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2202 MCO:PIM:NODE REG=1
    2204 MCO:BGN:STP
    2206 MCO:BGN:INIT OK,TSP=1

    After loading the same script on the same device, the result is:
    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
    3 MCO:BGN:BFR
    5 TSM:INIT
    6 TSF:WUR:MS=0
    12 TSM:INIT:TSP OK
    14 TSF:SID:OK,ID=6
    16 TSM:FPAR
    52 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2059 !TSM:FPAR:NO REPLY
    2061 TSM:FPAR
    2097 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4105 !TSM:FPAR:NO REPLY
    4107 TSM:FPAR
    4143 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6151 !TSM:FPAR:NO REPLY
    6153 TSM:FPAR
    6189 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8197 !TSM:FPAR:FAIL
    8198 TSM:FAIL:CNT=1
    8200 TSM:FAIL:PDT
    18203 TSM:FAIL:RE-INIT
    18205 TSM:INIT
    18212 TSM:INIT:TSP OK
    18214 TSF:SID:OK,ID=6
    18216 TSM:FPAR
    18252 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20260 !TSM:FPAR:NO REPLY
    20262 TSM:FPAR
    20299 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    22306 !TSM:FPAR:NO REPLY
    22308 TSM:FPAR
    22345 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    24352 !TSM:FPAR:NO REPLY
    24354 TSM:FPAR
    24391 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26398 !TSM:FPAR:FAIL
    26399 TSM:FAIL:CNT=2
    26401 TSM:FAIL:PDT

    This "!TSM:FPAR:FAIL" I get also in my DHT project. It is strange that a working divice (4 days ago), load the same script again and I get an error. Any ideas in wat direction I have to look? Could it be something in the config file?? I do not know.

    Development

  • No matching function for call 'DHT::DHT()'
    DickD Dick

    First of all 'Happy new year!'. I am working on the example script of the DHT22 https://www.mysensors.org/build/humidity. I read already some other builders about the library (I use version 2.1.1) I already downloaded the the DHT lib from gidhub but still the error as mentioned in the title. Who can help me. I use an Arduino nano.

    Development

  • 💬 Temperature Sensor
    DickD Dick

    @mfalkvidd I ony can tell "thanksfo the support ad you time" . Have a nice wekend!!!

    Announcements

  • 💬 Temperature Sensor
    DickD Dick

    @mfalkvidd I tried it in Presentation() and in Loop() inboth no results in the log (copied it as you advised me how to do. so no result bisible). it is getting complex I think!
    6 TSM:INIT
    7 TSF:WUR:MS=0
    14 TSM:INIT:TSP OK
    16 TSF:SID:OK,ID=12
    17 TSM:FPAR
    59 TSF:MSG:SEND,12-12-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    452 TSF:MSG:READ,0-0-12,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    457 TSF:MSG:FPAR OK,ID=0,D=1
    561 TSF:MSG:READ,20-20-12,s=255,c=3,t=8,pt=1,l=1,sg=0:1
    2066 TSM:FPAR:OK
    2067 TSM:ID
    2068 TSM:ID:OK
    2070 TSM:UPL
    2074 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2086 TSF:MSG:READ,0-0-12,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2092 TSF:MSG:PONG RECV,HP=1
    2094 TSM:UPL:OK
    2096 TSM:READY:ID=12,PAR=0,DIS=1
    2101 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2110 TSF:MSG:READ,0-0-12,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2118 TSF:MSG:SEND,12-12-0-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
    2127 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2142 TSF:MSG:READ,0-0-12,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2151 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=11,pt=0,l=18,sg=0,ft=0,st=OK:Temperature Sensor
    2161 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.2
    2168 MCO:REG:REQ
    2172 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2181 TSF:MSG:READ,0-0-12,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2186 MCO:PIM:NODE REG=1
    2189 MCO:BGN:STP
    setup done.
    2190 MCO:BGN:INIT OK,TSP=1
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.

    Announcements

  • 💬 Temperature Sensor
    DickD Dick

    @mfalkvidd how can I manage that? sorr for the perhaps stupid qestion?

    Announcements

  • 💬 Temperature Sensor
    DickD Dick

    I put some deug lines i it and after uploadig the sketch it stops here (wait conversationtime.)
    setup done.
    2191 MCO:BGN:INIT OK,TSP=1
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.
    fetch sensors.
    wait conversationtime.

    Announcements

  • 💬 Temperature Sensor
    DickD Dick

    @mfalkvidd Ths is what the log says
    0 MCO:BGN:INIT REPEATER,CP=RNNRA--,VER=2.1.1
    3 MCO:BGN:BFR
    6 TSM:INIT
    7 TSF:WUR:MS=0
    14 TSM:INIT:TSP OK
    16 TSF:SID:OK,ID=12
    18 TSM:FPAR
    59 TSF:MSG:SEND,12-12-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    1016 TSF:MSG:READ,0-0-12,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    1021 TSF:MSG:FPAR OK,ID=0,D=1
    1804 TSF:MSG:READ,20-20-12,s=255,c=3,t=8,pt=1,l=1,sg=0:1
    1851 TSF:MSG:READ,4-4-12,s=255,c=3,t=8,pt=1,l=1,sg=0:1
    2067 TSM:FPAR:OK
    2068 TSM:ID
    2069 TSM:ID:OK
    2071 TSM:UPL
    2075 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2087 TSF:MSG:READ,0-0-12,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2093 TSF:MSG:PONG RECV,HP=1
    2095 TSM:UPL:OK
    2097 TSM:READY:ID=12,PAR=0,DIS=1
    2102 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2111 TSF:MSG:READ,0-0-12,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2119 TSF:MSG:SEND,12-12-0-0,s=255,c=0,t=18,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
    2128 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2144 TSF:MSG:READ,0-0-12,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2152 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=11,pt=0,l=18,sg=0,ft=0,st=OK:Temperature Sensor
    2163 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.2
    2169 MCO:REG:REQ
    2173 TSF:MSG:SEND,12-12-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2183 TSF:MSG:READ,0-0-12,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2188 MCO:PIM:NODE REG=1
    2190 MCO:BGN:STP
    2192 MCO:BGN:INIT OK,TSP=1

    Announcements

  • 💬 Temperature Sensor
    DickD Dick

    @mfalkvidd In the Arduino log he Sleep error is not i anymore so that is solved but still no new device in Domoticz

    Announcements

  • 💬 Temperature Sensor
    DickD Dick

    @rejoe2 Yes on both location I replaced the sleep into a wait

    Announcements
  • Login

  • Don't have an account? Register

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