Skip to content

General Discussion

A place to talk about whateeeever you want
1.5k Topics 14.2k Posts
  • Possible to focus PIR "beam" ?

    4
    0 Votes
    4 Posts
    2k Views
    m26872M
    I have a CVD ZnSe (Chemical Vapor Deposited Zinc Selenide) lens I'm planning to experiment with in this kind of use case. It should work in theory. It bought it for my IR camera, but I've understood it's commonly used in laser cutters.
  • 2.0 gateway with 1.5 sensors [SOLVED]

    3
    0 Votes
    3 Posts
    873 Views
    dbemowskD
    Thanks @korttoma , that's what I was hoping to hear.
  • Newbie Gateway login & client Loging

    1
    0 Votes
    1 Posts
    508 Views
    No one has replied
  • [Solved] RF24 connection MySensors 2.0 doesn't works but 1.5.4 works

    3
    1 Votes
    3 Posts
    1k Views
    Robinek70R
    It's me again, sorry that I bother you. I found problem so I just copy definition RF24_PA_LEVEL instead of MY_RF24_PA_LEVEL regards,
  • When requesting with request() function what reply should I expect?

    10
    0 Votes
    10 Posts
    3k Views
    palande.vaibhavP
    @sundberg84 As far as I understand by looking at the code you have sensor on the same node which is requesting the pulse count from the GW?? OR you have reed switch on this node and sensor is on some other node? In the debug prints do you see a READ message in the serial monitor for your node which has reed switch? With me, I am sending the request() from node 1 to node 2. I can see SEND message in serial monitor of node 1 and READ message in the serial monitor of GW and also a SEND message in GW serial monitor and READ message in node 2. So the message is reaching node 2 successfully but my node 2 is not sending any reply to that message. So, node 1 is sending to GW, GW is receiving it and sending it to node 2, node 2 is receiving the message but node 2 is not replying. Is this what is supposed to happen? OR node 2 is actually supposed to send a reply back to node 1?
  • Constant Pushing messages

    frequency updates
    5
    0 Votes
    5 Posts
    2k Views
    CrankyCoderC
    so my 1 message a second is literally like nothing as far as the mysensors RF protocol is concerned. Shouldn't impact at all?
  • RF24_BASE_RADIO_ID

    5
    0 Votes
    5 Posts
    2k Views
    BartEB
    @Spanners what hek means, the channel ID is set compile time. So before uploading to your node. So putting it in before() is currently not an option. What you can do is putting the RF_BASE_RADIO_ID define in a separated include file (.h) and include this file before the other defines in all the sketches. So you only have to update the ID once for all your sketches.
  • codebender.cc no more

    1
    0 Votes
    1 Posts
    720 Views
    No one has replied
  • Can the NodeMCU (ESP8266) be used as a node without an NRF24L01?

    6
    0 Votes
    6 Posts
    2k Views
    mfalkviddM
    It might be possible to put nodered between the gateways and your controller to aggregate the gateways. I don't know how to do that though.
  • Newbie Question

    11
    0 Votes
    11 Posts
    3k Views
    M
    @mfalkvidd, when you download the library 2.0 and you extract this. There is a folder documentation which is almost empty. But in the meantime I found also a link api on the download location with more info. The sketch did work! Great! Based on this example I can going forward.
  • Esp8266 with wifi off

    4
    0 Votes
    4 Posts
    8k Views
    AWIA
    :thumbsup: sounds good. The processing power and memory would allow for a (basic) controller functionality.
  • How does mysensors relate to MQTT?

    18
    0 Votes
    18 Posts
    4k Views
    AnticimexA
    @NeverDie sounds like mysensors is not your cup of tea then.
  • sleep() or smartsleep() in 2.0b MySensors

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    5 Posts
    2k Views
    V
    @AWI Thanks for the piece of code. Now i can see where i was wrong! Let me run it... this seems to be missing the interrupt part though. I will try using DV on Int2...
  • SIGNING Gateway with no SIGNING Nodes?

    2
    0 Votes
    2 Posts
    761 Views
    scalzS
    hello. Yes you can. I advice you to read this great guide for more infos : https://www.mysensors.org/about/signing
  • The basics of MySensors?

    11
    0 Votes
    11 Posts
    5k Views
    mfalkviddM
    Discussion continued at https://forum.mysensors.org/topic/5080/the-basics-of-mysensors-continued/ (couldn't figure out how to fork such a long discussion into just one topic, the forum software doesn't seem to handle that. Sorry.)
  • The basics of MySensors? (continued)

    4
    0 Votes
    4 Posts
    2k Views
    mfalkviddM
    @marex after sleeping I think I understand your question. Start by writing nothing in the setup, presentation and loop. Just use the examples as they are, following the instructions on the links I have already posted. That will get you a working gateway and working temperature nodes. You can then add your own code for handling communication with your phone, or just use one of the available controllers which will handle that communication as well. With MySensors it really is that simple. Note: I am moving this discussion to a separate thread, since it really has nothing to do with the MySensors 2.0 release.
  • USB gateway for 433MHz

    3
    0 Votes
    3 Posts
    2k Views
    janvier123J
    Take a look at this, works pretty good for me // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 // Enable repeater functionality for this node //#define MY_REPEATER_FEATURE #include <SPI.h> #include <MySensors.h> #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); #define RELAY_1 1 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 18 // Total number of attached relays #define SLEEP_BETWEEN_ALL_ON 100 #define SLEEP_BETWEEN_ALL_OFF 100 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() { // Transmitter is connected to Arduino Pin #10 mySwitch.enableTransmit(8); // Optional set pulse length. // mySwitch.setPulseLength(320); } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("RF 433Mhz", "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_BINARY); } } void loop() { } void receive(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_STATUS) { // Switch on: // The first parameter represents the setting of the first rotary switch. // In this example it's switched to "1" or "A" or "I". // // The second parameter represents the setting of the second rotary switch. // In this example it's switched to "4" or "D" or "IV". // 1 = channel A // 2 = channel B // 3 = channel C // 4 = channel D switch (message.sensor-1+RELAY_1) { case 1: if(message.getBool() == 1){mySwitch.switchOn(1, 1);}else{mySwitch.switchOff(1, 1);} break; case 2: if(message.getBool() == 1){mySwitch.switchOn(1, 2);}else{mySwitch.switchOff(1, 2);} break; case 3: if(message.getBool() == 1){mySwitch.switchOn(1, 3);}else{mySwitch.switchOff(1, 3);} break; case 4: if(message.getBool() == 1){mySwitch.switchOn(1, 4);}else{mySwitch.switchOff(1, 4);} break; case 5: if(message.getBool() == 1){mySwitch.switchOn(2, 1);}else{mySwitch.switchOff(2, 1);} break; case 6: if(message.getBool() == 1){mySwitch.switchOn(2, 2);}else{mySwitch.switchOff(2, 2);} break; case 7: if(message.getBool() == 1){mySwitch.switchOn(2, 3);}else{mySwitch.switchOff(2, 3);} break; case 8: if(message.getBool() == 1){mySwitch.switchOn(2, 4);}else{mySwitch.switchOff(2, 4);} break; case 9: if(message.getBool() == 1){mySwitch.switchOn(3, 1);}else{mySwitch.switchOff(3, 1);} break; case 10: if(message.getBool() == 1){mySwitch.switchOn(3, 2);}else{mySwitch.switchOff(3, 2);} break; case 11: if(message.getBool() == 1){mySwitch.switchOn(3, 3);}else{mySwitch.switchOff(3, 3);} break; case 12: if(message.getBool() == 1){mySwitch.switchOn(3, 4);}else{mySwitch.switchOff(3, 4);} break; case 13: if(message.getBool() == 1){mySwitch.switchOn(4, 1);}else{mySwitch.switchOff(4, 1);} break; case 14: if(message.getBool() == 1){mySwitch.switchOn(4, 2);}else{mySwitch.switchOff(4, 2);} break; case 15: if(message.getBool() == 1){mySwitch.switchOn(4, 3);}else{mySwitch.switchOff(4, 3);} break; case 16: if(message.getBool() == 1){mySwitch.switchOn(4, 4);}else{mySwitch.switchOff(4, 4);} break; // ALL ON case 17: mySwitch.switchOff(1, 1); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(1, 2); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(1, 3); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(1, 4); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(2, 1); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(2, 2); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(2, 3); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(2, 4); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(3, 1); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(3, 2); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(3, 3); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(3, 4); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(4, 1); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(4, 2); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(4, 3); delay(SLEEP_BETWEEN_ALL_OFF); mySwitch.switchOff(4, 4); break; // ALL OFF case 18: mySwitch.switchOn(1, 1); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(1, 2); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(1, 3); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(1, 4); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(2, 1); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(2, 2); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(2, 3); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(2, 4); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(3, 1); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(3, 2); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(3, 3); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(3, 4); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(4, 1); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(4, 2); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(4, 3); delay(SLEEP_BETWEEN_ALL_ON); mySwitch.switchOn(4, 4); break; default: Serial.println("Unknown Status"); break; } saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for binary switch: "); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }
  • ATtiny 13 controller

    2
    0 Votes
    2 Posts
    845 Views
    mfalkviddM
    Hi @aishwarya7 Welcome to the MySensors community! I am not familar with the attiny13, but from the datasheet it looks like it has too little flash and sram to run MySensors. Instructions on how to upload sketches to an Arduino is available at https://www.mysensors.org/about/arduino#uploading-example-sketches See the buying guide for information on which components are recommended when getting started.
  • Smart home switch touch screen hack?

    3
    0 Votes
    3 Posts
    2k Views
    tbowmoT
    They do look nice, but it seems that they have a standardized icon / layout, that can't be changed. I would like to have the possibility to display arbitrary information on my dashboard / scene controller, so I'm creating a webpage mimicking a "weatherstation type display", and plan on using a cheap wall mounted tablet for the interface. this will also make any updates to functionality on the scene controller easy, as it's just a website that needs updating. preliminary proof of concept is at https://juletraesfoden.dk/t2/app. Backend is a mix of domoticz / node-red / python webservices..

15

Online

11.8k

Users

11.2k

Topics

113.2k

Posts