@korttoma
Hi,
I switch "CommFailure" to 0 And reloaded engine. and error measure disappear.
But is this a new feature that you have implemented ?
@korttoma
Hi,
I switch "CommFailure" to 0 And reloaded engine. and error measure disappear.
But is this a new feature that you have implemented ?
Hi,
Thanx for 2.2.0
But I have a new feature that I did not have before.
I'm using VERA edge and my plugin reports that i don't have any connection to the Gateway.
Please advice
@hek
Thanx Again,
I think I was on that page 3-4 time without seeing getnodeid()
: )
Thanx @hek
Where do I find these definitions and functions ?
Is there a list somewhere ?
Hi,
I'm looking for a way to get the NODE_ID.
In lib 1,5 this was defined as MY_NODE_ID AUTO..
But in LIB 2,0 I can't find any defenitions like this.
I have tried to write out MY_NODE_ID but it only return 255,
I like to use it as a delay for my heaters. I don't like them all to be turned on at the same time. Thanx
Hi @korttoma,
Just an other question,
II'm also using PLEG.
Is there a way to compeer the last value against the new value and only IF these values are different we sending a this new value.
some thing like :
local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 35)
local oldTemp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","VAR_1", 14)
if temp != oldTemp then
luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", {radioId="14;2", variableId="VAR_1", value=temp}, 3)
end
Thanx
@korttoma
Thanx this is working perfect.
Thanx, I will Try again this afternoon
hi @korttoma
Thanx for your suggestion, But I was not able to figure out where to insert this LUA code.
Thanx
Hi,
I'm have started to plan a irrigation controller(Thanx @petewill).
But I need to get the temperature from my sensors to my controller. I have not been able to do this
My plan was to read this out from my vera controller, but cant find any way to do this.
Does anyone have a advice or idea to do this ?
I'm using the V2.0.0, of library.
I have tried to use the
request(tempNode_ID, V_TEMP) But no replay from VERA.
To store/update the "setTemp" I'm using the V_VAR1 on the and this is returned from VEAR.
So Is this possible or not ?
Thanx
@korttoma
I did not see that
Is there any plan for implementing this ?
Hi,
I have a relay node that don't have any sensors, and therefore don't have communication between the vera and the node. like this
So I have been playing with heartbeat and I cas see in serial log local on the node that it is transmitted.
BUT my node in VERA dont update the last update time : Is tyhis how is sopose to be or do I something wrong?
Here are my code :
/**
* 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 <henrik.ekblad@mysensors.org>
* 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
*/
// 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>
#define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
#define NUMBER_OF_RELAYS 2 // 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
long double last_heartbeat_time = millis();
long double HEARTBEAT_TIME = 120000;
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() {
}
void presentation()
{
// Send the sketch version information to the gateway and Controller
sendSketchInfo("Relay", "1.0");
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()
{
long double temp = (millis() - last_heartbeat_time);
if (temp > HEARTBEAT_TIME) {
// If it exceeds the heartbeat time then send a heartbeat
sendHeartbeat();
last_heartbeat_time = millis();
#ifdef MY_DEBUG
Serial.print("Sent heartbeat" );
Serial.println(temp)
#endif
}
}
void receive(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
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());
}
}
If you are using the internal ref 1.1 you need to divide the voltage on the pin down to this level.
If you like in the example using a 1M and 470K you will have a approx 1Volt in the point.
@tlpeter said:
if (oldBatteryPcnt != batteryPcnt) {
// Power up radio after sleep
send(msgBatt.set(batteryV, 1));
//sendBatteryLevel(batteryPcnt);
oldBatteryPcnt = batteryPcnt;
}
Hi, This part should not have been updated
this part is icluded in the lib
So leave it like the exsample
if (oldBatteryPcnt != batteryPcnt) {
// Power up radio after sleep
sendBatteryLevel(batteryPcnt);
oldBatteryPcnt = batteryPcnt;
}
For sending over your voltage you need one additional
send(msgBatt.set(batteryV, 1));
Good luck
Hi @bisschopsr
I got this error when i'm using this lib
Any Idea. I'm using IDE 1.6.12. new install and Installed Mysensor through the Manage library. My sensor is working (updated my gw and other sensors, but can't upgrade my DHT sensors.
Thanx for your help
@robertmt Yes I have similar problems
But have not had the time to look into this yet.
Hopefully later today (or maybe closer to the weekend)
I was not able to upload a sketch with "arduino as ISP" so I whent back to my orginal idea to use a FTDI232(like I use for microPro).
I looked into the schematic on the nano and the micro. I found that on the micro the DTR pin there is a capacitor between reset and DTR input.. But the reset pin on the Nano did not. So I modified one FTDI232 with a capacitor 0,1uF (See picture).
When I also crossed the TX/RX pins it finally works
@sundberg84,
Is it possible to use an arduino to program a sketch into an other arduino ?
I can program a bootloader, but don't see a way to upload a sketch
Thanx
Yes That's correct
I can try this now
Thanx
Hi,
Due to a wrong order I have a lot of nano that I need to use.
SO I trying to get the nano to work on battery. These have the ch340 chip and this chip is using approx 20 mA in standby.
So I removed the CH340 and the voltage regulator.
I tried to program the nano with the USB->serial(ftdi232) that I used for mini but with no success.
If anyone have idea how to program a nano without the usb interface I like to hear you
Thanx
Hi,
Have anyone tried these units ?
Can these be used with mysensor ?
Hi,
Nice project. I have started similar "upgrade".
But my plan is to have separate temp/humidity sensors that reports to the VERA.
And then have a separate controller that open/close the valves/attenuators.
Now I have some sensors connected. My next step is to create one arduino/MySensor PID controller.
This should get actual temp and setpoint from VERA.
For a fallback I have some Ideas.
Looking forward to follow your project
@sundberg84
Thanx for your reply,
Do you know where I can find one example for getting variables from Vera ?
I have tried searching, but can't seem to find any
Thanx
@sundberg84
Can your code be used on 1.5.1 ??
I need to get Temp Values from Vera. to my PID controller
@csa02221862
I have Vera Edge working with serial Gateway.
Mainly reading 4 temperature/humidity nodes and turning on and of my bathroom ventilation.
Mode Nodes to come in near future
The setup seams find to me
@tbowmo
I checked yesterday, and you was right. this was a 16MHz.
Thanx
Well that's the problem.
I don't have asked for this, and I'm using the same sketch(humidity from mysensor) on two other mini pro. these are working on 115200 and with the same type of sensor.
I made 2 more of my humidity /temp sensor for my living room and kitchen, and they are duplicate of the one I have in my two bathrooms.
But when i connec to the serial interface I need to select 230400 baud to have readable characters. These two last don't read the sensor ether .
If I borrow one of the previus mini pro in the new assabled HW it works like a charm. So I belive it is some HW error or fuse settings on the arduino.
All 4 was programmed with the same sketch, same IDE and same Mysensor lib, with 2 weeks difference. I have as far as I can see don't nothing to the computer or software.
Is there any fuses that is wrong ?
Can it be the oscillator that is wrong/higher frequency ?
Is there something I can try to make this work correct ?
Thanx
Hi,
I have 2 mini pro that have serial baud on 230400. These can not find my DHT22 sensor ether. I belive that these symtoms are leleated.
When replace the mini pro with with one that replys on the correct baudrate 115200 it finding the sensor.
Anyone that have experienced anything like this and what can I do to solve this ??
Thanx
I agree. I like a warning if some node is not responsive.
I will try.
Do I need to erase the files I uploaded or will these be overwrited ?
Hi,
Thanks for this great plugin and Library.
Yesterday I connected My Serial GW and One Node with DHT22(One Temp And one Humidity) These are OK and showing correct in Vera.
But the plugin is always showing the following error :
Can anyone help me figure out what this is
I'm Using 1.6.5 Arduino and 1.5 MySensor lib. Downloaded plugin from your website Yesterday(2015-09-07)
Controller is a VERA EDGE And I asume it has UI7
I also Noticed that I don't have this mysensor picture
can it be something with my install ??
Or must I use the UI7 Branch ?
Thanx
Hi,
I have the same problem. No temperature is transported to GW.
This log is from Sensor:
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
sensor started, id=255, parent=0, distance=1
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
I have added some exstra lines in serial printout so I know that ds1820 is found and read.
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
sensor started, id=255, parent=0, distance=1
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
**Sensors found
1
**req id
send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
temp :
23.80
But This value is not transported to GW.
Any idee ?
Thanx