That makes sense! Awesome! Thanks for the quick reply!
eBes
@eBes
Best posts made by eBes
-
RE: Call/Trigger custom functions/effects from Home Assistant
-
[Solved] Does not work after latest update
Hey all!
I just updated to the latest 2.0 release and everything stopped working. I have researched as much as I can on this topic, especially this thread. But nothing has worked for me this far, I've tried for hours and hours and now I feel like I've hit a wall. I tried the development branch too but to no success.I have updated my gateway (esp8266 mqtt gateway with a nrf24l01+pa+lna) and one Arduino Nano (with a nrf24l01) having DHT22 and motion sensor, all this is reporting to Home Assistant. It worked perfectly before with 2.0.0b.
I've tried adjusting the rf24 power to LOW and 1mbps etc, playing with stuff that people have suggested, keeping the gw and node at a bigger distance etc. Now I kind of wish I could find the older 2.0.0b libraries but I can't, but I would appreciate any help that I can with getting this latest version working, sorry if I repeated a similar question but I thought I'd start a new thread since the other ones does not work for me.
I get this message (which some may recognize from the other posts) which is pretty much the same for release 2.0. and dev branch. Let me know if I should provide some more info.
Starting sensor (RNNNA-, 2.0.1-beta) TSM:INIT TSM:INIT:TSP OK TSM:INIT:STATID,ID=10 TSF:ASID:OK,ID=10 TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL TSM:FAILURE TSM:FAILURE:PDT TSM:FAILURE:RE-INIT
and this is some output from the esp8266 gw:
0;255;3;0;9;Attempting MQTT connection... 0;255;3;0;9;MQTT connected 0;255;3;0;9;TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=10 0;255;3;0;9;TSF:CHKUPL:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;!TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=10 0;255;3;0;9;TSF:CHKUPL:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK```
-
RE: [Solved] Does not work after latest update
Ok, so you truly rock Tekka!
I just took entirely new modules, soldered 22uf instead of 10uf caps on them both, just plugged everything in, and it WORKS now!I've disconnected it a few times, re-connected, tried back and forth and it communicated and sends everything to Home assistant each time flawlessly, even better than before!
Super happy guy here! A huge thank you for having patience with me! This new release of mysensors is awesome!
Latest posts made by eBes
-
RE: [Solved] Does not work after latest update
I just upgraded all my nodes + gateway to latest dev branch (2.10) and it's working great with home assistant, they communicate without issues. As mentioned earlier my setup is nrf24l01 (with antenna mod) for all nodes (arduino nano) and then the gateway (esp8266) is with a nrf24l01+plna, and they all have a 22uF cap, it's been like 6+ months and it's been working great this far. I ordered all the nrf24l01 from aliexpress.
-
RE: [Solved] Does not work after latest update
@Jic said:
@Emil-Besirevic I have the same problem, I follow the same steps. I have already soldered a 22uF + 100nF, but I still have the problem.
Is yours still working? Any other idea?Thanks
Hi! I have only soldered a 22uF on all, the arduino nano nodes and the esp8266 gate which uses a nrf24l01 antenna version, and it all works great still! Have you tried with different modules?
-
RE: Call/Trigger custom functions/effects from Home Assistant
That makes sense! Awesome! Thanks for the quick reply!
-
Call/Trigger custom functions/effects from Home Assistant
Hey!
I'm currently playing around mysensors lights and Home Assistant being able to control rgb color values and brightness, and it works great with the below sketch!However, does anyone know how you can call your own "functions" if I add them? Like I want to add rainbow effects, different mood color animations etc, but how would I call for it from Home Assistant? Do I add a custom "mymessage"? I would love if you could have a list in Home Assistant when clicking the light (that is currently added with the sketch below) where you can trigger different effects. I am not sure how to approach this and how to trigger them with a mysensors setup. If anyone is familiar with this I would appreciate it.
// Enable debug prints #define MY_DEBUG #define MY_RADIO_NRF24 #define MY_NODE_ID 6 #include <SPI.h> #include <MySensors.h> #include <FastLED.h> #define CHILD_ID 5 // Child Id's const int stripPin = 4 ; // pin where 2812 LED strip is connected const int numPixel = 2 ; // set to number of pixels CRGB leds[numPixel]; char actRGBvalue[] = "000000"; // Current RGB value uint16_t actRGBbrightness = 0xFF ; // Controller Brightness int actRGBonoff=0; // OnOff flag MyMessage dimmerMsg(CHILD_ID, V_PERCENTAGE); MyMessage lightMsg(CHILD_ID, V_STATUS); MyMessage rgbMsg(CHILD_ID, V_RGB); MyMessage lastColorStatusMsg(CHILD_ID,V_VAR1); void setup() { FastLED.addLeds<NEOPIXEL, stripPin >(leds, numPixel); // initialize led strip // begin(incomingMessage, NODE_ID, false); // initialize MySensors // Flash the "hello" color sequence: R, G, B, black. colorBars(); //Request the last stored colors settings request(CHILD_ID, V_VAR1); wait(2000); send(lightMsg.set(actRGBbrightness > 0 ? 1 : 0)); send(dimmerMsg.set(actRGBbrightness)); send(rgbMsg.set(actRGBvalue)); send(lastColorStatusMsg.set("0")); } void presentation() { sendSketchInfo("RGBLigtTest", "1.1"); present(CHILD_ID, S_RGB_LIGHT); // present to controller } void loop() { } void receive(const MyMessage &message) { if (message.type == V_RGB) { // check for RGB type actRGBonoff=1; strcpy(actRGBvalue, message.getString()); // get the payload SendColor2AllLEDs(strtol(actRGBvalue, NULL, 16)); SendLastColorStatus(); } else if (message.type == V_DIMMER) { // if DIMMER type, adjust brightness actRGBonoff=1; actRGBbrightness = map(message.getLong(), 0, 100, 0, 255); FastLED.setBrightness( actRGBbrightness ); SendLastColorStatus(); } else if (message.type == V_STATUS) { // if on/off type, toggle brightness actRGBonoff = message.getInt(); FastLED.setBrightness((actRGBonoff == 1)?actRGBbrightness:0); SendLastColorStatus(); } else if (message.type==V_VAR1) { // color status String szMessage=message.getString(); strcpy(actRGBvalue, getValue(szMessage,'&',0).c_str()); actRGBbrightness=atoi(getValue(szMessage,'&',1).c_str()); actRGBonoff=atoi(getValue(szMessage,'&',2).c_str()); SendColor2AllLEDs(strtol(actRGBvalue, NULL, 16)); FastLED.setBrightness((actRGBonoff == 1)?actRGBbrightness:0); } FastLED.show(); } void colorBars() { SendColor2AllLEDs( CRGB::Red ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Green ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Blue ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Black ); FastLED.show(); delay(500); } void SendColor2AllLEDs(const CRGB lcolor) { for(int i = 0 ; i < numPixel ; i++) { leds[i] = lcolor; } } void SendLastColorStatus() { String cStatus=actRGBvalue+String("&")+String(actRGBbrightness)+String("&")+String(actRGBonoff); send(lastColorStatusMsg.set(cStatus.c_str())); } String getValue(String data, char separator, int index) { int found = 0; int strIndex[] = {0, -1}; int maxIndex = data.length()-1; for(int i=0; i<=maxIndex && found<=index; i++){ if(data.charAt(i)==separator || i==maxIndex){ found++; strIndex[0] = strIndex[1]+1; strIndex[1] = (i == maxIndex) ? i+1 : i; } } return found>index ? data.substring(strIndex[0], strIndex[1]) : ""; } void FastledCustomEffect1() { // add custom fastled effect } void FastledCustomEffect2() { // add custom fastled effect }
-
RE: [Solved] Does not work after latest update
Ok, so you truly rock Tekka!
I just took entirely new modules, soldered 22uf instead of 10uf caps on them both, just plugged everything in, and it WORKS now!I've disconnected it a few times, re-connected, tried back and forth and it communicated and sends everything to Home assistant each time flawlessly, even better than before!
Super happy guy here! A huge thank you for having patience with me! This new release of mysensors is awesome!
-
RE: [Solved] Does not work after latest update
Hi Tekka!
Thanks for you reply!The sketches I used for the testing in the end was the included ones, which is the esp8266 mqtt gateway and then I tried with the motion sensor sketch, both are from the mysensors library examples.
The wiring, cap etc. are all identical to how it has always been when it was working with the 2.0.0beta, it's all in place and sturdy, what do you mean by changing/re-seating the radios?
EDIT: Tried with different radio modules, both usual and the one with antenna for the node etc, but still the same
EDIT2: It worked randomly for like 1 minute but stopped working again, with this ouput from the node:
TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSF:MSG:READ,0-0-10,s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSF:MSG:FPAR RES,ID=0,D=0 TSF:MSG:FPAR OK,ID=0,D=1 TSM:FPAR:OK TSM:ID TSM:ID:OK,ID=10 TSM:UPL TSF:PING:SEND,TO=0 !TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1 TSF:CHKUPL:FAIL !TSM:UPL:FAIL TSM:FPAR```
-
[Solved] Does not work after latest update
Hey all!
I just updated to the latest 2.0 release and everything stopped working. I have researched as much as I can on this topic, especially this thread. But nothing has worked for me this far, I've tried for hours and hours and now I feel like I've hit a wall. I tried the development branch too but to no success.I have updated my gateway (esp8266 mqtt gateway with a nrf24l01+pa+lna) and one Arduino Nano (with a nrf24l01) having DHT22 and motion sensor, all this is reporting to Home Assistant. It worked perfectly before with 2.0.0b.
I've tried adjusting the rf24 power to LOW and 1mbps etc, playing with stuff that people have suggested, keeping the gw and node at a bigger distance etc. Now I kind of wish I could find the older 2.0.0b libraries but I can't, but I would appreciate any help that I can with getting this latest version working, sorry if I repeated a similar question but I thought I'd start a new thread since the other ones does not work for me.
I get this message (which some may recognize from the other posts) which is pretty much the same for release 2.0. and dev branch. Let me know if I should provide some more info.
Starting sensor (RNNNA-, 2.0.1-beta) TSM:INIT TSM:INIT:TSP OK TSM:INIT:STATID,ID=10 TSF:ASID:OK,ID=10 TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL TSM:FAILURE TSM:FAILURE:PDT TSM:FAILURE:RE-INIT
and this is some output from the esp8266 gw:
0;255;3;0;9;Attempting MQTT connection... 0;255;3;0;9;MQTT connected 0;255;3;0;9;TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=10 0;255;3;0;9;TSF:CHKUPL:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;!TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=10 0;255;3;0;9;TSF:CHKUPL:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK```