Forum

Bitte oder Registrieren, um Beiträge und Themen zu erstellen.

Binding für OpenHab2?

Ich versuche es mitlerweile schon den ganzen Tag in Openhab2 an's laufen zu bekommen.

Mit FHEM geht's, mit mqtt.fx geht's auch. Nur Openhab will nicht. Wenn ich auf die Symbole vom Rollo klicke passiert einfach nichts. Im Logfile erhalte ich z.B. die Ausgabe:

[ome.event.ItemCommandEvent] - Item 'shutter2' received command STOP

In den Items ist es wie folgt definiert:

Rollershutter shutter2 "shutter2" <rollershutter>   (Kitchen, Rollo_alle) {mqtt="<[mosquitto:cmd/jarolift/shutter/0:command:*:default], >[mosquitto:stat/jarolift/shutter/0:state:default]"}

und in der mqqt.cfg

mosquitto.url=tcp://127.0.0.1:1883
mosquitto.clientId=openhab

es scheint nicht bis an mosquitto durch zu gehen.

Hat jemand eine Idee?

achja, mit einem ganz normalen Switch kommt der Befehl bei mosquitto an.

 

 

danke

So sieht mein Item aus (funktioniert auch):

Rollershutter Rolladen_3 "Rolladen 3" <rollershutter> (Wohnzimmer) [ "Switchable" ] {mqtt=">[mosquitto:cmd/jarolift/shutter/2:command:*:default], <[mosquitto:stat/jarolift/shutter/2:state:default]" }

Du musst das item dann als "Switch item" in der Sitemap definieren!

Hallo und Hilfe zusammen,

 

zunächst möchte ich mich mal für die bislang geleistete Arbeit bedanken. Insbesondere sei hier Steffen genannt, ohne den hier gar nichts "laufen" würde. Der Dank gilt aber auch an Martin!

Nun zu meinem eigentlichen Problem. Hardware und Software habe ich alles hier und läuft bis zu folgenden Punkt (eine Anbindung an Openhab und auch FHEM habe ich noch nicht gehabt): Spiele ich den JaroliftSketch auf, geht dies ohne Probleme und im Serialmonitor sehe ich, dass der Empfang der anderen Handsender wunderbar klappt. Versuche ich in den MQQT Sketch aufzuspielen, bekomme ich die folgende Warn-Fehlermeldungen und ich komme nicht weiter:

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:78:0:

global.h:30: error: variable 'dstRule StartRule' has initializer but incomplete type

struct dstRule StartRule = {"CEST", Last, Sun, Mar, 2, 3600}; // Daylight time

^

global.h:30: error: 'Last' was not declared in this scope

struct dstRule StartRule = {"CEST", Last, Sun, Mar, 2, 3600}; // Daylight time

^

global.h:30: error: 'Sun' was not declared in this scope

struct dstRule StartRule = {"CEST", Last, Sun, Mar, 2, 3600}; // Daylight time

^

global.h:30: error: 'Mar' was not declared in this scope

struct dstRule StartRule = {"CEST", Last, Sun, Mar, 2, 3600}; // Daylight time

^

global.h:31: error: variable 'dstRule EndRule' has initializer but incomplete type

struct dstRule EndRule = {"CET", Last, Sun, Oct, 2, 0};       // Standard time

^

global.h:31: error: 'Last' was not declared in this scope

struct dstRule EndRule = {"CET", Last, Sun, Oct, 2, 0};       // Standard time

^

global.h:31: error: 'Sun' was not declared in this scope

struct dstRule EndRule = {"CET", Last, Sun, Oct, 2, 0};       // Standard time

^

global.h:31: error: 'Oct' was not declared in this scope

struct dstRule EndRule = {"CET", Last, Sun, Oct, 2, 0};       // Standard time

^

global.h:32: error: 'simpleDSTadjust' does not name a type

simpleDSTadjust dstAdjusted(StartRule, EndRule);  // Setup simpleDSTadjust Library rules

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:78:0:

sketch/global.h: In function 'void WriteLog(String, boolean)':

global.h:116: error: 'dstAdjusted' was not declared in this scope

time_t now = dstAdjusted.time(&dstAbbrev);

^

global.h:117: error: 'localtime' was not declared in this scope

struct tm * timeinfo = localtime(&now);

^

global.h:119: error: 'strftime' was not declared in this scope

strftime (buffer, 30, "%Y-%m-%d %T", timeinfo);

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino: At global scope:

Jarolift_MQTTv5:106: error: redefinition of 'short unsigned int devcnt'

unsigned short devcnt    = 0x0; //Initial 16Bit countervalue, will be loaded in EEPROM and incrementet once in a time a command is send

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:78:0:

global.h:45: error: 'short unsigned int devcnt' previously defined here

unsigned short devcnt = 0x0;                      // Initial 16Bit countervalue, will be stored in EEPROM and

^

Jarolift_MQTTv5:121: error: redefinition of 'int cntadr'

int cntadr               = 110;  //Where the 16Bit Counter is stored.

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:78:0:

global.h:47: error: 'int cntadr' previously defined here

int cntadr = 110;                                 // EEPROM address where the 16Bit counter is stored.

^

Jarolift_MQTTv5:153: error: redefinition of 'WiFiClient espClient'

WiFiClient espClient;

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:78:0:

global.h:35: error: 'WiFiClient espClient' previously declared here

WiFiClient espClient;

^

Jarolift_MQTTv5:154: error: redefinition of 'PubSubClient mqtt_client'

PubSubClient mqtt_client(espClient);

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:78:0:

global.h:36: error: 'PubSubClient mqtt_client' previously declared here

PubSubClient mqtt_client(espClient);              // mqtt client instance

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino:57:0:

sketch/html_api.h: In function 'void html_api()':

html_api.h:21: error: redefinition of 'void html_api()'

void html_api(){

^

In file included from /var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTTv5.ino:79:0:

html_api.h:21: error: 'void html_api()' previously defined here

void html_api(){

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: At global scope:

Jarolift_MQTT:88: error: redefinition of 'byte syncWord'

byte syncWord            = 199;

^

Jarolift_MQTTv5:102: error: 'byte syncWord' previously defined here

byte syncWord            = 199;

^

Jarolift_MQTT:89: error: redefinition of 'int device_key_msb'

int device_key_msb       = 0x0; // stores cryptkey MSB

^

Jarolift_MQTTv5:103: error: 'int device_key_msb' previously defined here

int device_key_msb       = 0x0; //stores cryptkey MSB

^

Jarolift_MQTT:90: error: redefinition of 'int device_key_lsb'

int device_key_lsb       = 0x0; // stores cryptkey LSB

^

Jarolift_MQTTv5:104: error: 'int device_key_lsb' previously defined here

int device_key_lsb       = 0x0; //stores cryptkey LSB

^

Jarolift_MQTT:91: error: redefinition of 'uint64_t button'

uint64_t button          = 0x0; // 1000=0x8 up, 0100=0x4 stop, 0010=0x2 down, 0001=0x1 learning

^

Jarolift_MQTTv5:105: error: 'uint64_t button' previously defined here

uint64_t button          = 0x0; //1000=0x8 up, 0100=0x4 stop, 0010=0x2 down, 0001=0x1 learning

^

Jarolift_MQTT:92: error: redefinition of 'int disc'

int disc                 = 0x0;

^

Jarolift_MQTTv5:107: error: 'int disc' previously defined here

int disc                 = 0x0;

^

Jarolift_MQTT:93: error: redefinition of 'uint32_t dec'

uint32_t dec             = 0;   // stores the 32Bit encrypted code

^

Jarolift_MQTTv5:108: error: 'uint32_t dec' previously defined here

uint32_t dec             = 0;   //stores the 32Bit encrypted code

^

Jarolift_MQTT:94: error: redefinition of 'uint64_t pack'

uint64_t pack            = 0;   // Contains data to send.

^

Jarolift_MQTTv5:109: error: 'uint64_t pack' previously defined here

uint64_t pack            = 0;   //Contains data to send.

^

Jarolift_MQTT:95: error: redefinition of 'byte disc_low [16]'

byte disc_low[16]        = {0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0,  0x0,  0x0,  0x0};

^

Jarolift_MQTTv5:110: error: 'byte disc_low [16]' previously defined here

byte disc_low[16]        = {0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0,  0x0,  0x0,  0x0};

^

Jarolift_MQTT:96: error: redefinition of 'byte disc_high [16]'

byte disc_high[16]       = {0x0, 0x0, 0x0, 0x0, 0x0,  0x0,  0x0,  0x0, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80};

^

Jarolift_MQTTv5:111: error: 'byte disc_high [16]' previously defined here

byte disc_high[16]       = {0x0, 0x0, 0x0, 0x0, 0x0,  0x0,  0x0,  0x0, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80};

^

Jarolift_MQTT:97: error: redefinition of 'byte serials [16]'

byte serials[16]         = {0x0, 0x1, 0x2, 0x3, 0x4,  0x5,  0x6,  0x7, 0x8, 0x9, 0xA, 0xB, 0xC,  0xD,  0xE,  0xF }; // Represents last serial digit in binary 1234567[8] = 0xF

^

Jarolift_MQTTv5:112: error: 'byte serials [16]' previously defined here

byte serials[16]         = {0x0, 0x1, 0x2, 0x3, 0x4,  0x5,  0x6,  0x7, 0x8, 0x9, 0xA, 0xB, 0xC,  0xD,  0xE,  0xF }; //Represents Last Serial Digit in Binary 1234567[8] = 0xF

^

Jarolift_MQTT:98: error: redefinition of 'byte disc_l'

byte disc_l              = 0;

^

Jarolift_MQTTv5:113: error: 'byte disc_l' previously defined here

byte disc_l              = 0;

^

Jarolift_MQTT:99: error: redefinition of 'byte disc_h'

byte disc_h              = 0;

^

Jarolift_MQTTv5:114: error: 'byte disc_h' previously defined here

byte disc_h              = 0;

^

Jarolift_MQTT:100: error: redefinition of 'byte adresses []'

byte adresses[]          = {5, 11, 17, 23, 29, 35, 41, 47, 53, 59, 65, 71, 77, 85, 91, 97 }; // Defines start addresses of channel data stored in EEPROM 4bytes s/n.

^

Jarolift_MQTTv5:115: error: 'byte adresses [16]' previously defined here

byte adresses[]          = {5, 11, 17, 23, 29, 35, 41, 47, 53, 59, 65, 71, 77, 85, 91, 97 }; //Defines Start Addresses of Channel data stored in EEPROM 4bytes s/n.

^

Jarolift_MQTT:101: error: redefinition of 'uint64_t new_serial'

uint64_t new_serial      = 0;

^

Jarolift_MQTTv5:119: error: 'uint64_t new_serial' previously defined here

uint64_t new_serial      = 0;

^

Jarolift_MQTT:102: error: redefinition of 'byte marcState'

byte marcState;

^

Jarolift_MQTTv5:124: error: 'byte marcState' previously declared here

byte marcState;

^

Jarolift_MQTT:103: error: redefinition of 'int MqttRetryCounter'

int MqttRetryCounter = 0;                 // Counter for MQTT reconnect

^

Jarolift_MQTTv5:125: error: 'int MqttRetryCounter' previously defined here

int MqttRetryCounter = 0;                 // Counter for MQTT reconnect

^

Jarolift_MQTT:109: error: redefinition of 'uint32_t rx_serial'

uint32_t rx_serial       = 0;

^

Jarolift_MQTTv5:131: error: 'uint32_t rx_serial' previously defined here

uint32_t rx_serial       = 0;

^

Jarolift_MQTT:110: error: redefinition of 'char rx_serial_array [8]'

char rx_serial_array[8]  = {0};

^

Jarolift_MQTTv5:132: error: 'char rx_serial_array [8]' previously defined here

char rx_serial_array[8]  = {0};

^

Jarolift_MQTT:111: error: redefinition of 'char rx_disc_low [8]'

char rx_disc_low[8]      = {0};

^

Jarolift_MQTTv5:133: error: 'char rx_disc_low [8]' previously defined here

char rx_disc_low[8]      = {0};

^

Jarolift_MQTT:112: error: redefinition of 'char rx_disc_high [8]'

char rx_disc_high[8]     = {0};

^

Jarolift_MQTTv5:134: error: 'char rx_disc_high [8]' previously defined here

char rx_disc_high[8]     = {0};

^

Jarolift_MQTT:113: error: redefinition of 'uint32_t rx_hopcode'

uint32_t rx_hopcode      = 0;

^

Jarolift_MQTTv5:135: error: 'uint32_t rx_hopcode' previously defined here

uint32_t rx_hopcode      = 0;

^

Jarolift_MQTT:114: error: redefinition of 'uint16_t rx_disc_h'

uint16_t rx_disc_h       = 0;

^

Jarolift_MQTTv5:136: error: 'uint16_t rx_disc_h' previously defined here

uint16_t rx_disc_h       = 0;

^

Jarolift_MQTT:115: error: redefinition of 'byte rx_function'

byte rx_function         = 0;

^

Jarolift_MQTTv5:137: error: 'byte rx_function' previously defined here

byte rx_function         = 0;

^

Jarolift_MQTT:116: error: redefinition of 'int rx_device_key_msb'

int rx_device_key_msb    = 0x0;           // stores cryptkey MSB

^

Jarolift_MQTTv5:138: error: 'int rx_device_key_msb' previously defined here

int rx_device_key_msb    = 0x0;           //stores cryptkey MSB

^

Jarolift_MQTT:117: error: redefinition of 'int rx_device_key_lsb'

int rx_device_key_lsb    = 0x0;           // stores cryptkey LSB

^

Jarolift_MQTTv5:139: error: 'int rx_device_key_lsb' previously defined here

int rx_device_key_lsb    = 0x0;           //stores cryptkey LSB

^

Jarolift_MQTT:118: error: redefinition of 'volatile uint32_t decoded'

volatile uint32_t decoded         = 0x0;  // decoded hop code

^

Jarolift_MQTTv5:140: error: 'volatile uint32_t decoded' previously defined here

volatile uint32_t decoded         = 0x0;  //decoded hop code

^

Jarolift_MQTT:119: error: redefinition of 'volatile byte pbwrite'

volatile byte pbwrite;

^

Jarolift_MQTTv5:141: error: 'volatile byte pbwrite' previously declared here

volatile byte pbwrite;

^

Jarolift_MQTT:120: error: redefinition of 'volatile unsigned int lowbuf [216]'

volatile unsigned int lowbuf[pufsize];    // ring buffer storing LOW pulse lengths

^

Jarolift_MQTTv5:142: error: 'volatile unsigned int lowbuf [216]' previously declared here

volatile unsigned int lowbuf[pufsize];    // ring buffer storing LOW pulse lengths

^

Jarolift_MQTT:121: error: redefinition of 'volatile unsigned int hibuf [216]'

volatile unsigned int hibuf[pufsize];     // ring buffer storing HIGH pulse lengths

^

Jarolift_MQTTv5:143: error: 'volatile unsigned int hibuf [216]' previously declared here

volatile unsigned int hibuf[pufsize];     // ring buffer storing HIGH pulse lengths

^

Jarolift_MQTT:122: error: redefinition of 'volatile bool iset'

volatile bool iset = false;

^

Jarolift_MQTTv5:144: error: 'volatile bool iset' previously defined here

volatile bool iset = false;

^

Jarolift_MQTT:123: error: redefinition of 'volatile byte value'

volatile byte value = 0;                  // Stores RSSI Value

^

Jarolift_MQTTv5:145: error: 'volatile byte value' previously defined here

volatile byte value = 0;                  //Stores RSSI Value

^

Jarolift_MQTT:124: error: redefinition of 'long int rx_time'

long rx_time;

^

Jarolift_MQTTv5:146: error: 'long int rx_time' previously declared here

long rx_time;

^

Jarolift_MQTT:125: error: redefinition of 'int steadycnt'

int steadycnt = 0;

^

Jarolift_MQTTv5:150: error: 'int steadycnt' previously defined here

int steadycnt = 0;

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void measure()':

Jarolift_MQTT:134: error: redefinition of 'void measure()'

void ICACHE_RAM_ATTR measure()

^

Jarolift_MQTTv5:157: error: 'void measure()' previously defined here

void ICACHE_RAM_ATTR measure()        //Receive Routine

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: At global scope:

Jarolift_MQTT:175: error: redefinition of 'CC1101 cc1101'

CC1101 cc1101;

^

Jarolift_MQTTv5:197: error: 'CC1101 cc1101' previously declared here

CC1101 cc1101;

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void setup()':

Jarolift_MQTT:180: error: redefinition of 'void setup()'

void setup()

^

Jarolift_MQTTv5:199: error: 'void setup()' previously defined here

void setup()

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'String getContentType(String)':

Jarolift_MQTT:280: error: redefinition of 'String getContentType(String)'

String getContentType(String filename) {

^

Jarolift_MQTTv5:273: error: 'String getContentType(String)' previously defined here

String getContentType(String filename) { // convert the file extension to the MIME type

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'bool handleFileRead(String)':

Jarolift_MQTT:291: error: redefinition of 'bool handleFileRead(String)'

bool handleFileRead(String path) {

^

Jarolift_MQTTv5:281: error: 'bool handleFileRead(String)' previously defined here

bool handleFileRead(String path) { // send the right file to the client (if it exists)

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void loop()':

Jarolift_MQTT:309: error: redefinition of 'void loop()'

void loop()

^

Jarolift_MQTTv5:296: error: 'void loop()' previously defined here

void loop()

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'int keeloq()':

Jarolift_MQTT:453: error: redefinition of 'int keeloq()'

int keeloq () {

^

Jarolift_MQTTv5:420: error: 'int keeloq()' previously defined here

int keeloq () {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'int keygen()':

Jarolift_MQTT:464: error: redefinition of 'int keygen()'

int keygen () {

^

Jarolift_MQTTv5:428: error: 'int keygen()' previously defined here

int keygen () {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void senden(int)':

Jarolift_MQTT:480: error: redefinition of 'void senden(int)'

void senden(int repetitions) {

^

Jarolift_MQTTv5:453: error: 'void senden(int)' previously defined here

void senden(int repetitions) {                            //Simple TX routine. Repetitions for simulate continuous Button press.

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void group_h()':

Jarolift_MQTT:519: error: redefinition of 'void group_h()'

void group_h() {

^

Jarolift_MQTTv5:490: error: 'void group_h()' previously defined here

void group_h() {                    //Sending of high_group_bits 8-16

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void frame(int)':

Jarolift_MQTT:542: error: redefinition of 'void frame(int)'

void frame(int l) {

^

Jarolift_MQTTv5:510: error: 'void frame(int)' previously defined here

void frame(int l) {                   //Generates sync-pulses

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'int rx_keygen()':

Jarolift_MQTT:554: error: redefinition of 'int rx_keygen()'

int rx_keygen () {

^

Jarolift_MQTTv5:576: error: 'int rx_keygen()' previously defined here

int rx_keygen () {      //Calculate device code from received serial number

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'int rx_decoder()':

Jarolift_MQTT:569: error: redefinition of 'int rx_decoder()'

int rx_decoder () {

^

Jarolift_MQTTv5:601: error: 'int rx_decoder()' previously defined here

int rx_decoder () {     //Decoding of the hopping code

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void ReadRSSI()':

Jarolift_MQTT:582: error: redefinition of 'void ReadRSSI()'

void ReadRSSI()

^

Jarolift_MQTTv5:612: error: 'void ReadRSSI()' previously defined here

void ReadRSSI()

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void enterrx()':

Jarolift_MQTT:604: error: redefinition of 'void enterrx()'

void enterrx() {

^

Jarolift_MQTTv5:631: error: 'void enterrx()' previously defined here

void enterrx() {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void entertx()':

Jarolift_MQTT:617: error: redefinition of 'void entertx()'

void entertx() {

^

Jarolift_MQTTv5:641: error: 'void entertx()' previously defined here

void entertx() {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void mqtt_callback(char*, byte*, unsigned int)':

Jarolift_MQTT:630: error: redefinition of 'void mqtt_callback(char*, byte*, unsigned int)'

void mqtt_callback(char* topic, byte* payload, unsigned int length) {

^

Jarolift_MQTTv5:654: error: 'void mqtt_callback(char*, byte*, unsigned int)' previously defined here

void mqtt_callback(char* topic, byte* payload, unsigned int length) {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void cmd_up(int)':

Jarolift_MQTT:790: error: redefinition of 'void cmd_up(int)'

void cmd_up(int channel) {

^

Jarolift_MQTTv5:698: error: 'void cmd_up(int)' previously defined here

void cmd_up(int channel) {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void cmd_down(int)':

Jarolift_MQTT:816: error: redefinition of 'void cmd_down(int)'

void cmd_down(int channel) {

^

Jarolift_MQTTv5:729: error: 'void cmd_down(int)' previously defined here

void cmd_down(int channel) {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void cmd_stop(int)':

Jarolift_MQTT:842: error: redefinition of 'void cmd_stop(int)'

void cmd_stop(int channel) {

^

Jarolift_MQTTv5:760: error: 'void cmd_stop(int)' previously defined here

void cmd_stop(int channel) {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void cmd_shade(int)':

Jarolift_MQTT:868: error: redefinition of 'void cmd_shade(int)'

void cmd_shade(int channel) {

^

Jarolift_MQTTv5:789: error: 'void cmd_shade(int)' previously defined here

void cmd_shade(int channel) {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void cmd_set_shade_position(int)':

Jarolift_MQTT:894: error: redefinition of 'void cmd_set_shade_position(int)'

void cmd_set_shade_position(int channel) {

^

Jarolift_MQTTv5:821: error: 'void cmd_set_shade_position(int)' previously defined here

void cmd_set_shade_position(int channel) {

^

/var/folders/04/nt2zghxs5nbd_hy94cnffvw40000gn/T/arduino_modified_sketch_270704/Jarolift_MQTT.ino: In function 'void cmd_learn(int)':

Jarolift_MQTT:927: error: redefinition of 'void cmd_learn(int)'

void cmd_learn(int channel) {

^

Jarolift_MQTTv5:856: error: 'void cmd_learn(int)' previously defined here

void cmd_learn(int channel) {

^

exit status 1

variable 'dstRule StartRule' has initializer but incomplete type

Ich hoffe, es kann mir jemand was zu sagen?

Als weiteres Problem habe ich im Moment, dass mein WIFI Netz massiv gestört wird, wenn ich den Jarolift Sketch am laufen habe (der Dongle liegt weit weg vom Router). Insbesondere unsere Handys werden im WIFI Netz so gestört, dass ein surfen nicht mehr möglich ist. Die Frage sollte ich aber vielleicht im anderen Thread stellen!?

 

Vielen Dank

Olli

Hi,

zuerst einmal: ja, neuer Thread wäre nicht schlecht.

Dann beschreibe bitte: Welche Quellen hast Du verwendet? Ich sehe der Sketch heißt "Jarolift_MQTTv5.ino" - hast Du ihn umbenannt (denn der von https://github.com/madmartin/Jarolift_MQTT heißt nicht so) oder kenne ich die Quelle nicht?

Dann nenne bitte welche Arduino Version Du benutzt, welche ESP8266 Core-Version (siehe Startmeldung vom Sketch im serial log oder in der Arduino Boardverwaltung).

Ich hab den Verdacht Du benutzt nicht die aktuellen stabilen Versionen von Arduino oder ESP Core. Bitte lies auch noch mal genau  https://github.com/madmartin/Jarolift_MQTT/blob/master/README.md durch.

Die Störungen des WiFI Netz mit dem laufenden Sketch kenne ich so ähnlich von der allerersten MQTT Version. Daher vermute ich daß Du auch dort eine uralte (-> vor Mai 2018) Version verwendest.

Grüsse

Martin

Schande über mein Haupt. Ich hatte die MQTTv5 und die MQTT doppelt offen beim kompilieren. Vielen Dank für den Schlag auf den Hinterkopf. Jetzt läuft alles.

Inwieweit der MQTT Sketch mein WIFI stört, kann ich jetzt erst testen. Bislang war es ja der Jarolift Sketch der die Störungen verursachte.

Ganz klasse Arbeit, was ihr da bislang geleistet habt!

Guten Tag und ein gesundes neues Jahr,

mit sehr grossem Interesse verfolge ich dieses Thema hier schon etwas länger und da die letzen zwei Wochen etwas Zeit war, habe ich mich in dieses Projekt gestürzt.

Nur jetzt bin ich an einem Punkt wo ich nicht mehr so recht weiterkomme bzw. in einen wilden Aktionismus verfalle und bevor alles durcheinander ist möchte ich hier um Hilfe oder Denkanstösse bitten.

Mein Setup ist wie folgt, ein Jarolift TDEF Motor verbaut (Bj.2018, unter Putz), eine 16 Kanal FB, ein NodeMCU v3 mit CC1101 Receiver und dem aktuellem Sketch von madmartin.

Der Dongle ist im WLAN, im seriellen Monitor empfange ich auch die Signale von der FB (low,high,serial, usw.),

low und high wechseln dabei ihre Werte, der Jarolift Dongle sendet auch Signale, laut Monitor.

Als Seriennummer benutze ich erstmal die 12345600, master MSB und master LSB verhauen mir alles.

Das ist die Stelle wo ich nicht mehr weiterkomme, habe schon die  Original Projektpage rauf und runter gelesen, aber irgendwo hab ich da nen Brett vorm Kopf.

Wie kann ich jetzt am besten weiter vorgehen.

Danke für die Unterstützung.

Mit freundlichen Gruß.

Yves

 

Guten Morgen,

inzwischen hab ich auch die MasterMSB und MasterLSB herausgefunden, heute morgen wieder den Strom vom Motor genommen, Strom wieder drauf, Motor ist im Lernmodus, im Jarolift WebGui Channel 1 Learn gedrückt, im Log steht Channel learnend... Aber keine Reaktion der Jalousie...

Was mach ich falsch...

Einen schönen Tag...

Yves

Hi,

 

schau mal hier im anderen Thread.

http://www.bastelbudenbuben.de/forum/topic/probleme-beim-anlernen-github-version/

Da könnte deine Lösung drin stehen.

 

Stelle mal bei channel serial number prefix  0x010016 ein.