Getting error message with new domoticz version and relay

Moderator: leecollings

miremi
Posts: 26
Joined: Sunday 08 November 2015 10:08
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Getting error message with new domoticz version and relay

Post by miremi »

Hi,

I have some problems with all my relays see picture bellow. Before update there was no problem.
I have little knowledge how to program :oops: some help will be more than welcome :roll:

Some info:
My sensors version 1.5
Reinstalling domoticz doesn't help i have also windows version with same problem (of course i'm not using two gateways at the same time)
I'm using sketch from mysensors website with no changes.
Also i have erased the eeprom on all nodes and gateway but still i get error.
Attachments
1.PNG
1.PNG (64.85 KiB) Viewed 4050 times
Ubuntu 16.04.3, Core i5 8GB RAM 120GB SSD, RFlink, ESPeasy, Z-Stick Gen5, 8 FIbaro, 17 Neo Coolcam
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

Messages to the nodes are now send with 'Ack'
It seems your relay nodes can not handle 'ack' messages? are they also on 1.5 ?

What sketch did you use? Then i will test here
Quality outlives Quantity!
miremi
Posts: 26
Joined: Sunday 08 November 2015 10:08
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Getting error message with new domoticz version and rela

Post by miremi »

gizmocuz wrote:Messages to the nodes are now send with 'Ack'
It seems your relay nodes can not handle 'ack' messages? are they also on 1.5 ?

What sketch did you use? Then i will test here
Thank you for quick response.
Yes relays are on 1.5. I was also thinking about problems with Ack.

I'm using two sketches one from mysensors page and one custom both are not working.

from my sensors:

Code: Select all

/**
 * The MySensors Arduino library handles the wireless radio link and protocol
 * between your home built sensors/actuators and HA controller of choice.
 * The sensors forms a self healing radio network with optional repeaters. Each
 * repeater and gateway builds a routing tables in EEPROM which keeps track of the
 * network topology allowing messages to be routed to nodes.
 *
 * Created by Henrik Ekblad <[email protected]>
 * Copyright (C) 2013-2015 Sensnology AB
 * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
 *
 * Documentation: http://www.mysensors.org
 * Support Forum: http://forum.mysensors.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 *******************************
 *
 * REVISION HISTORY
 * Version 1.0 - Henrik Ekblad
 * 
 * DESCRIPTION
 * Example sketch showing how to control physical relays. 
 * This example will remember relay state after power failure.
 * http://www.mysensors.org/build/relay
 */ 

#include <MySigningNone.h>
#include <MyTransportNRF24.h>
#include <MyTransportRFM69.h>
#include <MyHwATMega328.h>
#include <MySensor.h>
#include <SPI.h>

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

// NRFRF24L01 radio driver (set low transmit power by default) 
MyTransportNRF24 radio(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL_GW);  
//MyTransportRFM69 radio;
// Message signing driver (none default)
//MySigningNone signer;
// Select AtMega328 hardware profile
MyHwATMega328 hw;
// Construct MySensors library
MySensor gw(radio, hw);

void setup()  
{   
  // Initialize library and add callback for incoming messages
  gw.begin(incomingMessage, AUTO, true);
  // Send the sketch version information to the gateway and Controller
  gw.sendSketchInfo("Relay", "1.0");

  // Fetch relay status
  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)
    gw.present(sensor, S_LIGHT);
    // Then set relay pins in output mode
    pinMode(pin, OUTPUT);   
    // Set relay to last known state (using eeprom storage) 
    digitalWrite(pin, gw.loadState(sensor)?RELAY_ON:RELAY_OFF);
  }
}


void loop() 
{
  // Alway process incoming messages whenever possible
  gw.process();
}

void incomingMessage(const MyMessage &message) {
  // We only expect one type of message from controller. But we better check anyway.
  if (message.type==V_LIGHT) {
     // Change relay state
     digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
     // Store state in eeprom
     gw.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());
   } 
}


and custom:

Code: Select all

// Example sketch showing how to control physical relays. 
// This example will remember relay state even after power failure.

#include <MySensor.h>
#include <SPI.h>

#define MOTOIN_INPUT_SENSOR 3   // The digital input you attached your motion sensor.  (Only 2 and 3 generates interrupt!)

#define RELAY_1  4  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
#define NUMBER_OF_RELAYS 4 // 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 MOTION_CHILD_ID 9   // Id of the sensor child
#define RELAY_CHILD_ID 18   // Id of the sensor child 

boolean lastMotion = false;

MySensor gw;

MyMessage msg(MOTION_CHILD_ID, V_TRIPPED);

void setup()  
{   
  // Initialize library and add callback for incoming messages
  gw.begin(incomingMessage, AUTO, true);
  // Send the sketch version information to the gateway and Controller
  gw.sendSketchInfo("Gang Pir and 4 realay", "1.0");

  pinMode(MOTOIN_INPUT_SENSOR, INPUT);      // sets the motion sensor digital pin as input
  // Register all sensors to gw (they will be created as child devices)
  gw.present(MOTION_CHILD_ID, S_MOTION);
  // Fetch relay status
  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)
    gw.present(sensor, S_LIGHT);
    // Then set relay pins in output mode
    pinMode(pin, OUTPUT);   
    // Set relay to last known state (using eeprom storage) 
    digitalWrite(pin, gw.loadState(sensor)?RELAY_ON:RELAY_OFF);
  }
  
}

void loop() 
{
  // Alway process incoming messages whenever possible
  gw.process();
  // Read digital motion value
  boolean motion = digitalRead(MOTOIN_INPUT_SENSOR) == HIGH; 
  if (lastMotion != motion) {
    lastMotion = motion;     
    gw.send(msg.set(motion ? "1" : "0" ));  // Send motion value to gw
  }
}

void incomingMessage(const MyMessage &message) {
  // We only expect one type of message from controller. But we better check anyway.
  if (message.type==V_LIGHT) {
     // Change relay state
     digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
     // Store state in eeprom
     gw.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());
   } 
}
Is there any way to disable Ack in Domoticz?


This is what i get in hardware:
Attachments
2.PNG
2.PNG (161.23 KiB) Viewed 4032 times
Ubuntu 16.04.3, Core i5 8GB RAM 120GB SSD, RFlink, ESPeasy, Z-Stick Gen5, 8 FIbaro, 17 Neo Coolcam
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

Currently not, it is always enabled, as also with the homeseer controller.

i made a simple test based on your sketch, and its working

sensor started, id=254, parent=0, distance=1
read: 0-0-254 s=3,c=1,t=2,pt=0,l=1,sg=0:1
send: 254-254-0-0 s=3,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
read: 0-0-254 s=3,c=1,t=2,pt=0,l=1,sg=0:0
send: 254-254-0-0 s=3,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
read: 10-10-255 s=255,c=3,t=7,pt=0,l=0,sg=0:

it is made with 1.6, but that should not be different

Are you using a repeater? does this supports ack ?

A few posts back here in this forum (mysensor sub forum) there was someone else that had this problem, but its solved now

My test sketch
Spoiler: show
// Example sketch showing how to control physical relays.
// This example will remember relay state even after power failure.

// Enable debug prints to serial monitor
#define MY_DEBUG

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

#define MY_NODE_ID 254

#include <MySensor.h>
#include <SPI.h>

#define MOTOIN_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!)

#define RELAY_1 4 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
#define NUMBER_OF_RELAYS 4 // 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 MOTION_CHILD_ID 9 // Id of the sensor child
#define RELAY_CHILD_ID 18 // Id of the sensor child

boolean lastMotion = false;

MyMessage msg(MOTION_CHILD_ID, V_TRIPPED);

void setup()
{
}

void presentation() {
// Send the sketch version information to the gateway and Controller
sendSketchInfo("Test Switch", "1.0");
// Register all sensors to gw (they will be created as child devices)
present(MOTION_CHILD_ID, S_MOTION);
// Fetch relay status
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_LIGHT);
}
}

void loop()
{
// Alway process incoming messages whenever possible
wait(5000);
}

void incomingMessage(const MyMessage &message) {
// We only expect one type of message from controller. But we better check anyway.
Serial.print("Incoming message for sensor:");
Serial.print(message.sensor);
Serial.print(", data: ");
Serial.println(message.getString());


if (message.type==V_LIGHT) {
// Change relay state
Serial.print("Incoming change for sensor:");
Serial.print(message.sensor);
Serial.print(", New status: ");
Serial.println(message.getBool());
}
}
Quality outlives Quantity!
miremi
Posts: 26
Joined: Sunday 08 November 2015 10:08
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Getting error message with new domoticz version and rela

Post by miremi »

Then i don't know what i'm doing wrong.
I just tested on clean os installation and still getting error. Im not using any repeater.

Testing it only with one arduino uno as gateway and one mini with just one relay attached to it.
Also tested with other controller (pimatic) with no problems.
Ubuntu 16.04.3, Core i5 8GB RAM 120GB SSD, RFlink, ESPeasy, Z-Stick Gen5, 8 FIbaro, 17 Neo Coolcam
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

I will add the option to enable/disable the ACK sending, but did you also read:

viewtopic.php?f=42&t=8597
Quality outlives Quantity!
miremi
Posts: 26
Joined: Sunday 08 November 2015 10:08
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Getting error message with new domoticz version and rela

Post by miremi »

gizmocuz wrote:I will add the option to enable/disable the ACK sending, but did you also read:

viewtopic.php?f=42&t=8597
Will be wonderful :) if you can add this option.
Yes i was following this tread but this guy with the same problem solved it with reinstalling domoticz in my case it doesn't help.

Is there any option to download old domoticz version for raspberry before adding ack option?
Ubuntu 16.04.3, Core i5 8GB RAM 120GB SSD, RFlink, ESPeasy, Z-Stick Gen5, 8 FIbaro, 17 Neo Coolcam
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

No, and you should fix somehow your sketches/gateway/repeater
sending with ACK is also default on homeseer, so it should work !

Edit: and also safe!

Edit2: i just tested with an example binary sketch, and it just works ! something is wrong there!
Is your node powered, do you call gw process ? or the wait function instead of sleep ?
if you try with an example sketch, is it working then ? If not which sketch did you try ?
Quality outlives Quantity!
miremi
Posts: 26
Joined: Sunday 08 November 2015 10:08
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Getting error message with new domoticz version and rela

Post by miremi »

gizmocuz wrote:No, and you should fix somehow your sketches/gateway/repeater
sending with ACK is also default on homeseer, so it should work !

Edit: and also safe!

Edit2: i just tested with an example binary sketch, and it just works ! something is wrong there!
Is your node powered, do you call gw process ? or the wait function instead of sleep ?
if you try with an example sketch, is it working then ? If not which sketch did you try ?
This are my steps:
Install Domoticz and mysensors library
upload gateway to arduino (just copy paste from mysensors website)
Upload sketch from mysensors website http://www.mysensors.org/build/relay
no custom code

What i see is that relays sometimes working for like one hour and than i get the error again like before.

Please help me out i'm sitting in the middle of house with all this stuff for 5 days my wife hates me now :roll:
Attachments
aa.jpg
aa.jpg (146.16 KiB) Viewed 3949 times
Ubuntu 16.04.3, Core i5 8GB RAM 120GB SSD, RFlink, ESPeasy, Z-Stick Gen5, 8 FIbaro, 17 Neo Coolcam
NewFolk
Posts: 39
Joined: Wednesday 02 September 2015 11:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting error message with new domoticz version and rela

Post by NewFolk »

really strange.
I think nothing will change If you disable ACK. Just UI status change, but no relay.

It's something wrong. Mb in domoticz db.

Try to debug GW.
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

There is a new beta #3564

You can now disable using ACK messages from the mysensors setup page

Hope it works now
Quality outlives Quantity!
grz007
Posts: 1
Joined: Sunday 11 October 2015 10:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting error message with new domoticz version and rela

Post by grz007 »

Hello,

I got same problem with sensors and latest version of domoticz..
what is strange:
- when I add new sensor to domoticz. it is working till I reset or restart domoticz. than it stops working...
- deleting and adding sensor again, it is working again till another restart (or update)...

in hardware->mysensors-> even if i tick OFF ACK, it is still ON ACK...

hope this help..
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

Did not know about this, fixed in #3589
Quality outlives Quantity!
fhwessels
Posts: 24
Joined: Sunday 12 April 2015 9:09
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Johannesburg South Africa
Contact:

Re: Getting error message with new domoticz version and rela

Post by fhwessels »

Hi I also have this problem and don't know what to do anymore. I reload my pi new image and Domoticz (new DB) the latest beta version V2.3589. I tested it with sketch in this post it works fine till I restart Domoticz and then the only why that I can get it to works again is to reset the node. Any ideas what I can do to fix the problem. I also disable the ack and it that also is not helping still getting the same error.


In the log file I get this error:
2015-11-14 12:34:03.020 Error: MySensors: Light command received for unknown node_id: 79, child_id: 2

Here I reset the node and the node is working again:

2015-11-14 12:36:04.651 MySensors: Node: 79, Sketch Name: Test Switch
2015-11-14 12:36:04.663 MySensors: Node: 79, Sketch Version: 1.0

2015-11-14 12:36:04.823 (MySensor RFM69) General/kWh (Meter power)
2015-11-14 12:36:04.853 (MySensor RFM69) General/kWh (Meter power)
2015-11-14 12:36:05.060 (MySensor NRF24) Temp (Temp)
2015-11-14 12:36:05.113 (MySensor NRF24) Temp (Temp)
2015-11-14 12:36:07.902 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:36:11.438 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:36:16.302 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:36:16.312 (MySensor NRF24) Lux (Study Lux)
2015-11-14 12:36:20.517 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:36:22.058 (MySensor RFM69) General/Voltage (Voltage)
2015-11-14 12:36:24.825 (MySensor RFM69) General/kWh (Meter power)
2015-11-14 12:36:24.855 (MySensor RFM69) General/kWh (Meter power)
2015-11-14 12:36:25.382 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:36:29.061 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:36:29.098 (MySensor RFM69) Lighting 2 (Light new 2) (snesor wirking agian
Last edited by fhwessels on Saturday 14 November 2015 11:38, edited 1 time in total.
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

could you debug your node (connecting it to a pc with the arduin ide, and open the serial monitor)
if you send a command, what is displayed in the debug output ?
Quality outlives Quantity!
fhwessels
Posts: 24
Joined: Sunday 12 April 2015 9:09
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Johannesburg South Africa
Contact:

Re: Getting error message with new domoticz version and rela

Post by fhwessels »

HI here is the output from the serial monitor for the one sensor I am working on to understand why this is happing. I even upgrade to MySensor beta 1.6.0 to see if there was not a problem in ver 1.5.

Radio init successful.
Starting sensor (1.6.0-beta)
Radio init successful.
send: 79-79-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
send: 79-79-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
read: 0-0-79 s=255,c=3,t=6,pt=0,l=1,sg=0:M
send: 79-79-0-0 s=255,c=3,t=11,pt=0,l=11,sg=0,st=ok:Test Switch
send: 79-79-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
send: 79-79-0-0 s=9,c=0,t=1,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=2,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=3,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=4,c=0,t=3,pt=0,l=0,sg=0,st=ok:
Init complete, id=79, parent=0, distance=1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
Starting sensor (1.6.0-beta)
Radio init successful.
send: 79-79-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
send: 79-79-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
read: 0-0-79 s=255,c=3,t=6,pt=0,l=1,sg=0:M
send: 79-79-0-0 s=255,c=3,t=11,pt=0,l=11,sg=0,st=ok:Test Switch
send: 79-79-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
send: 79-79-0-0 s=9,c=0,t=1,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=2,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=3,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=4,c=0,t=3,pt=0,l=0,sg=0,st=ok:
Init complete, id=79, parent=0, distance=1
fhwessels
Posts: 24
Joined: Sunday 12 April 2015 9:09
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Johannesburg South Africa
Contact:

Re: Getting error message with new domoticz version and rela

Post by fhwessels »

Sendor is working right now:

Starting sensor (1.6.0-beta)
Radio init successful.
send: 79-79-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
send: 79-79-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
read: 0-0-79 s=255,c=3,t=6,pt=0,l=1,sg=0:M
send: 79-79-0-0 s=255,c=3,t=11,pt=0,l=11,sg=0,st=ok:Test Switch
send: 79-79-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
send: 79-79-0-0 s=9,c=0,t=1,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=2,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=3,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=4,c=0,t=3,pt=0,l=0,sg=0,st=ok:
Init complete, id=79, parent=0, distance=1
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:1


restart Domoticz;

015-11-14 12:46:38.711 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:46:40.696 Error: MySensors: Light command received for unknown node_id: 79, child_id: 2
2015-11-14 12:46:43.574 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:46:44.851 (MySensor RFM69) Usage (Power Meter)
2015-11-14 12:46:44.880 (MySensor RFM69) General/kWh (Meter power)
2015-11-14 12:46:46.840 Error: MySensors: Light command received for unknown node_id: 79, child_id: 1
2015-11-14 12:46:48.463 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:46:49.801 (MySensor RFM69) General/Voltage (Voltage)
2015-11-14 12:46:52.660 Error: MySensors: Light command received for unknown node_id: 79, child_id: 3
2015-11-14 12:46:53.326 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:46:56.825 (MySensor NRF24) Lighting 2 (Security Sensor)
2015-11-14 12:46:59.000 (MySensor NRF24) Temp (Temp)
2015-11-14 12:46:59.052 (MySensor NRF24) General/Voltage (Voltage)
2015-11-14 12:46:59.312 Error: MySensors: Light command received for unknown node_id: 79, child_id: 4
2015-11-14 12:47:00.857 (MySensor RFM69) Humidity (Unknown)
2015-11-14 12:47:01.688 (MySensor NRF24) Lighting 2 (Security Sensor)


The to get the node to work have to restart that too:

Init complete, id=79, parent=0, distance=1
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:1
Starting sensor (1.6.0-beta)
Radio init successful.
send: 79-79-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=ok:1.6.0-beta
send: 79-79-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
read: 0-0-79 s=255,c=3,t=6,pt=0,l=1,sg=0:M
send: 79-79-0-0 s=255,c=3,t=11,pt=0,l=11,sg=0,st=ok:Test Switch
send: 79-79-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
send: 79-79-0-0 s=9,c=0,t=1,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=2,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=3,c=0,t=3,pt=0,l=0,sg=0,st=ok:
send: 79-79-0-0 s=4,c=0,t=3,pt=0,l=0,sg=0,st=ok:
Init complete, id=79, parent=0, distance=1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:1
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

That last log is the most important one.
Send you a PM, lets get this solved...
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2546
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Getting error message with new domoticz version and rela

Post by gizmocuz »

i think this all was not related to ACK.
The error came out of domoticz, because it did not receive the node/child yet, which is logical at startup,
you do not want to unplug/replug all your switch nodes
Just made a new beta version #3590, that now also loads the childs, that should hopefully solve this problem.

If it does, please enable ack, and tell if this works good, as you really want to have this on to make sure the command is received
Quality outlives Quantity!
fhwessels
Posts: 24
Joined: Sunday 12 April 2015 9:09
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Johannesburg South Africa
Contact:

Re: Getting error message with new domoticz version and rela

Post by fhwessels »

My relay sensor is now working after I upgrade to v2.3590. Also my ack work as well. If I power the relay sensor off and send a command to the node I get an error. Once I reconnect the sensors and I send a command to it start working and no error message from Domoticz!!! :D

If you look at the serial debug log you will now see that I getting an send command where I did not before.

read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:1
send: 79-79-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
read: 0-0-79 s=2,c=1,t=2,pt=0,l=1,sg=0:1
send: 79-79-0-0 s=2,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
read: 0-0-79 s=3,c=1,t=2,pt=0,l=1,sg=0:1
send: 79-79-0-0 s=3,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:1
send: 79-79-0-0 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
read: 0-0-79 s=1,c=1,t=2,pt=0,l=1,sg=0:0
send: 79-79-0-0 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
read: 0-0-79 s=4,c=1,t=2,pt=0,l=1,sg=0:0
send: 79-79-0-0 s=4,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest