Hi All
I find this page, To bad it didn't have MYS like an option, But work with
Domoticz.
http://www.esp8266.nu/index.php/Main_Page
Hi All
I find this page, To bad it didn't have MYS like an option, But work with
Domoticz.
http://www.esp8266.nu/index.php/Main_Page
Where did you get that box??
This was a nice project.
I have a lot of these wirsbo in my home. I hope this will work well
It didn't work all the way for me... And i didn't have the time to check whats wrong
It thing its some thing withe the display settings
Now the compile is working...
Now i will test it in real
Okey... Strange because i test to compile that i Dev Branch and i get this error
Arduino:1.6.5 (Mac OS X), Kort:"Arduino Nano, ATmega328"
Build options changed, rebuilding all
Scrolltext.ino: In function 'void presentation()':
Scrolltext:205: error: too many arguments to function 'void requestTime()'
In file included from /Users/Hoffan/Documents/Arduino-development/libraries/MySensors/MySensor.h:205:0,
from Scrolltext.ino:34:
/Users/Hoffan/Documents/Arduino-development/libraries/MySensors/core/MySensorCore.cpp:234:6: note: declared here
void requestTime() {
^
too many arguments to function 'void requestTime()'
Where did you put the new sketch??
What are you use as controller??
It sounds that you use an very old Arduino 1.0.6
You should use like 1.6.x
Okey, That can explain, Byt when i use the Dev Branch
I get this Errors
ScrollingText:52: error: 'MyTransportNRF24' does not name a type
ScrollingText:53: error: 'MySensor' does not name a type
ScrollingText.ino: In function 'void setup()':
ScrollingText:163: error: 'gw' was not declared in this scope
ScrollingText.ino: In function 'void loop()':
ScrollingText:177: error: 'gw' was not declared in this scope
'MyTransportNRF24' does not name a type
What am i missing, Because i get this when i try to compile it
Arduino:1.6.5 (Mac OS X), Kort:"Arduino Nano, ATmega328"
ScrollingText:55: error: 'V_TEXT' was not declared in this scope
ScrollingText.ino: In function 'void setup()':
ScrollingText:166: error: 'S_INFO' was not declared in this scope
ScrollingText:170: error: 'V_TEXT' was not declared in this scope
ScrollingText.ino: In function 'void loop()':
ScrollingText:191: error: 'V_TEXT' was not declared in this scope
ScrollingText.ino: In function 'void incomingMessage(const MyMessage&)':
ScrollingText:210: error: 'V_TEXT' was not declared in this scope
'V_TEXT' was not declared in this scope
You mean that i should change that line #170 år just put in the serial string
Yes That i understand, But Nothing is still happening in the GUI men i press start
I don't know if i understan you right here, @Hek
if i like to use the start button in vera should it look like this
// Enable inclusion mode
define MY_INCLUSION_MODE_FEATURE
// Enable Inclusion mode button on gateway
#define MY_INCLUSION_BUTTON_FEATURE
// Set inclusion mode duration (in seconds)
define MY_INCLUSION_MODE_DURATION 60
// Digital pin used for inclusion mode button
#define MY_INCLUSION_MODE_BUTTON_PIN 3
Okey So i must enable it in the sketch even if i only use the start button in the GUI in Vera
I can answer that question by my self.. Its still not working
@Hoffan said:
anyone that knows if include button working now? With vera as controller
That sounds good, Just ask if you want me to test something..
But is your include button working now?
Or maybe you don't use Vera as a controller
All the sensors that i have include before i upgrade the ESP8266 Wifi GW is now working
But its not working to include more, Nothing happens in Veran when i press start
but the gateway say this
0;0;3;0;9Client 0: 0;0;3;0;5;1t version
every time i press start
Did you use the Development version of the ESP8266 Wifi gatewavy or for the sensor
That looks like a perfekt board for this Hack
Where did you get your touchpad?
Thanx for the answer, I hope that too
Maybe you can try use the plugin RGB Controller
And use that for som help for your animation
But I'm not sure it works with Mysensors RGB
@korttoma
Big thanks. Now its working
So if i understand this right, If i have a User and a APIKey, i dont need to do
anything on plot.ly page
I will test to change false to True when i get back home tonight
Any one that can explain for me how to get plot.ly to work, I really don't get it
Hi Guys
How much work is it in Plot.ly to get in to work
Becuase i test to Copy the examples upper here and put my INFO in the text
But nothing happens, Must i change a lot of thing on the Plot.ly page
I must ask one thing.
Which Radiochannel are there as default in the code in the sensebender Micro??
Very Nice
But will the motion detector work behinde the glas??
Does this look right?
I ask because i have installed tge scene controller
But i cant understand how i will set up a scene with this
I did the same thing, You must use a led-driver, And not use a real 12V power supply
I still get compiling Error when i try this with codebender
You don't get any Errorcode when you use codebender
Have try this sketch. But i can't compile it.
Have even try the online way
@jmmorgan Have you change the Ip in the new sketch
The Develepment Version looks like working Good for me
What ethernet module do you have?
Should it looks like this. Why is Lib version empty..
Do you have any solutions for my problem??
I have seen that i lost ping when i try to ping the gateway
it work to ping when i restart the GW but if i test for ex 10 minutes later it don't work
I get it to work to program my Gateway, But
nothing happens when i put the start button for inclusion new sensors
And i have pure the new files into my Vera and i have Ui5 on that one
The GW seriel log looks like this all the time
0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,st=fail:0
0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0:
0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,st=fail:0
0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0:
0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,st=fail:0
0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0:
0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,st=ok:0
0;0;3;0;9;read: 255-255-255 s=255,c=3,t=7,pt=0,l=0:
0;0;3;0;9;send: 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,st=fail:0
Yes i see the same message here, But i think i get it to work rikght now..
I only find 1.5.7 beta No 1.5.5
the only non beta i find is 1.0.5
Hope i understand right 1.0.5 on MAC
Hi
I have tryied to upgrade my Ethernet GW to 1.4 but as i change the code
for my Ethernet ENC28J60 shield i get this when i compiling the code
In file included from /Users/nh/Documents/Arduino/libraries/UIPEthernet/Dhcp.h:7,
from /Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:25,
from EthernetGateway.ino:53:
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPUdp.h:26:29: error: utility/mempool.h: No such file or directory
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPUdp.h:28:28: error: utility/uip.h: No such file or directory
In file included from EthernetGateway.ino:53:
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:27:37: error: utility/Enc28J60Network.h: No such file or directory
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:34:31: error: utility/uip_timer.h: No such file or directory
In file included from /Users/nh/Documents/Arduino/libraries/UIPEthernet/Dhcp.h:7,
from /Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:25,
from EthernetGateway.ino:53:
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPUdp.h:46: error: 'memaddress' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPUdp.h:47: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPUdp.h:48: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPUdp.h:49: error: 'memhandle' does not name a type
In file included from /Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:28,
from EthernetGateway.ino:53:
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:48: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:54: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:55: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:56: error: 'memaddress' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:85: error: 'UIP_CONNS' was not declared in this scope
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:92: error: ISO C++ forbids declaration of 'memhandle' with no type
/Users/nhDocuments/Arduino/libraries/UIPEthernet/UIPClient.h:92: error: expected ';' before '*' token
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:93: error: 'memhandle' has not been declared
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPClient.h:94: error: 'memhandle' has not been declared
In file included from EthernetGateway.ino:53:
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:88: error: field 'periodic_timer' has incomplete type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:90: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:91: error: 'memhandle' does not name a type
/Users/nh/Documents/Arduino/libraries/UIPEthernet/UIPEthernet.h:95: error: 'Enc28J60Network' does not name a type
What am i missing, i have download the new arduino file
Yes all the sensors came up in the Vera UI, And looks like they work for some minutes
But when i push å button its looks like all things stop working, and after a reboot on the Arduino its working again for a short time and so on
Can anyone see if i have missed something here in the code, It was working great before i copy/past the DHT sensor to the code; ande after that
it will not really work anymore, Its 4 Binary Buttons, 1 relay And 1 DHT sensor Combo
#include <Relay.h>
#include <Sensor.h>
#include <SPI.h>
#include <EEPROM.h>
#include <RF24.h>
#include <Bounce2.h>
#include <DHT.h>
#define RELAY_1 7 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
#define NUMBER_OF_RELAYS 2
#define RELAY_ON 0
#define RELAY_OFF 1
#define BUTTON_PIN1 3 // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN2 4 // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN3 5 // Arduino Digital I/O pin for button/reed switch
#define BUTTON_PIN4 6 // Arduino Digital I/O pin for button/reed switch
#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1
#define HUMIDITY_SENSOR_DIGITAL_PIN 8
Sensor gw;
Bounce debouncer1 = Bounce();
Bounce debouncer2 = Bounce();
Bounce debouncer3 = Bounce();
Bounce debouncer4 = Bounce();
int oldValue1=-1;
int oldValue2=-1;
int oldValue3=-1;
int oldValue4=-1;
DHT dht;
float lastTemp;
float lastHum;
boolean metric = true;
void setup()
{
gw.begin();
pinMode(BUTTON_PIN1,INPUT);
digitalWrite(BUTTON_PIN1,HIGH);
pinMode(BUTTON_PIN2,INPUT);
digitalWrite(BUTTON_PIN2,HIGH);
pinMode(BUTTON_PIN3,INPUT);
digitalWrite(BUTTON_PIN3,HIGH);
pinMode(BUTTON_PIN4,INPUT);
digitalWrite(BUTTON_PIN4,HIGH);
dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);
// After setting up the button, setup debouncer
debouncer1.attach(BUTTON_PIN1);
debouncer1.interval(5);
debouncer2.attach(BUTTON_PIN2);
debouncer2.interval(5);
debouncer3.attach(BUTTON_PIN3);
debouncer3.interval(5);
debouncer4.attach(BUTTON_PIN4);
debouncer4.interval(5);
// 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 below.
gw.sendSensorPresentation(BUTTON_PIN1, S_DOOR);
gw.sendSensorPresentation(BUTTON_PIN2, S_DOOR);
gw.sendSensorPresentation(BUTTON_PIN3, S_DOOR);
gw.sendSensorPresentation(BUTTON_PIN4, S_DOOR);
// Send the sketch version information to the gateway and Controller
gw.sendSketchInfo("4Door2Relay", "1.0");
// Register all sensors to gw (they will be created as child devices)
gw.sendSensorPresentation(CHILD_ID_HUM, S_HUM);
gw.sendSensorPresentation(CHILD_ID_TEMP, S_TEMP);
metric = gw.isMetricSystem();
// Register all sensors to gw (they will be created as child devices)
for (int i=0; i<NUMBER_OF_RELAYS;i++) {
gw.sendSensorPresentation(RELAY_1+i, S_LIGHT);
}
// Fetch relay status
for (int i=0; i<NUMBER_OF_RELAYS;i++) {
// Make sure relays are off when starting up
digitalWrite(RELAY_1+i, RELAY_OFF);
// Then set relay pins in output mode
pinMode(RELAY_1+i, OUTPUT);
// Request/wait for relay status
gw.getStatus(RELAY_1+i, V_LIGHT);
setRelayStatus(gw.getMessage()); // Wait here until status message arrive from gw
}
}
/*
* Example on how to asynchronously check for new messages from gw
*/
void loop()
{
debouncer1.update();
debouncer2.update();
debouncer3.update();
debouncer4.update();
// Get the update value
int value = debouncer1.read();
if (value != oldValue1) {
// Send in the new value
gw.sendVariable(BUTTON_PIN1, V_TRIPPED, value==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above
oldValue1 = value;
}
value = debouncer2.read();
if (value != oldValue2) {
// Send in the new value
gw.sendVariable(BUTTON_PIN2, V_TRIPPED, value==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above
oldValue2 = value;
}
value = debouncer3.read();
if (value != oldValue3) {
// Send in the new value
gw.sendVariable(BUTTON_PIN3, V_TRIPPED, value==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above
oldValue3 = value;
}
value = debouncer4.read();
if (value != oldValue4) {
// Send in the new value
gw.sendVariable(BUTTON_PIN4, V_TRIPPED, value==HIGH ? "1" : "0"); // Change to V_LIGHT if you use S_LIGHT in presentation above
oldValue4 = value;
}
delay(dht.getMinimumSamplingPeriod());
float temperature = dht.getTemperature();
if (isnan(temperature)) {
Serial.println("Failed reading temperature from DHT");
} else if (temperature != lastTemp) {
lastTemp = temperature;
if (!metric) {
temperature = dht.toFahrenheit(temperature);
}
gw.sendVariable(CHILD_ID_TEMP, V_TEMP, temperature, 1);
Serial.print("T: ");
Serial.println(temperature);
}
float humidity = dht.getHumidity();
if (isnan(humidity)) {
Serial.println("Failed reading humidity from DHT");
} else if (humidity != lastHum) {
lastHum = humidity;
gw.sendVariable(CHILD_ID_HUM, V_HUM, humidity, 1);
Serial.print("H: ");
Serial.println(humidity);
}
if (gw.messageAvailable()) {
message_s message = gw.getMessage();
setRelayStatus(message);
}
}
void setRelayStatus(message_s message) {
if (message.header.messageType==M_SET_VARIABLE &&
message.header.type==V_LIGHT) {
int incomingRelayStatus = atoi(message.data);
// Change relay state
digitalWrite(message.header.childId, incomingRelayStatus==1?RELAY_ON:RELAY_OFF);
// Write some debug info
Serial.print("Incoming change for relay on pin:");
Serial.print(message.header.childId);
Serial.print(", New status: ");
Serial.println(incomingRelayStatus);
}
}
Please show us some photo of the Servo into the Blinds