Yes, that worked... I downloaded master.zip and replaced the current Liquid Crystal folder with the new one. Restarted IDE and was able to compile and upload the sketch. Thank you!
Best posts made by mrhutchinsonmn
-
RE: MySensors_Sprinkler:174: error: 'POSITIVE' was not declared in this scope
-
RE: [Solved] Getting Arduino IDE error with Relay Actuator sketch
@tekka I moved the library and reinstalled. The sketch works now. Thank you for pointing me in the right direction!
-
RE: What parts would be needed for timer with light panel indicator
Here is my first prototype of a working solution for a timing light: ( neopixal timing light):https://youtu.be/b3TDGKUS05I
Thank you for direction @mfalkvidd !
-
RE: [SOLVED] NRF24L01 Radio Fails connecting to Gateway
Thank you for your reply. I did resolve the problem and wanted to share what I did, in hopes of helping other newbies.
Firstly, I double checked the wiring, compared it to the working gateway and it seemed to be fine but still did not work.I ran across this post and it turned out to be ideal for my situation:
https://forum.arduino.cc/index.php?topic=421081.0Got the two radios communicating in a simplistic configuration and once working, uploaded mysensors sketches and the radios continued to work correctly. Maybe dismantling and reconnecting was the fix. Not sure, but things are working now. Thank you for a great resource of information and projects!
-
Is the moisture sensor build doc accurate
I am attempting to set up a moisture sensor, using the diagram and included sketch (https://www.mysensors.org/build/moisture). The diagram shows pin 3 for data but the sketch references d6 and d7. I don't see any reference to pin 3 there. I am not clear why there are references to d6 and d7 when my sensor only has a single data pin.
-
RE: Best sensor for falling alert
@bjacobse That seems to be the ticket! I will update the project as I learn more and develop a prototype.
-
RE: Relay shows up in mysensors.json but not in gui [homeassistant]
Version 0.94.4
Thank you for the recommendation. I learned to look there through trial-and-error but the relay does not show up.
However, everything works as expected (4 relays show up in Unused Entities) when I use the following sketch:
Copy to clipboard // Override Setting for Manual Node ID to 2 #define MY_NODE_ID 2 // 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> #define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 4 // Total number of attached relays: 4 // Opto Relay Module I was using Active Low - Low (0):ON, High (1): OFF #define RELAY_ON 0 // GPIO value to write to turn on attached relay #define RELAY_OFF 1 // GPIO value to write to turn off attached relay bool initialValueSent = false; //Init MyMessage for Each Child ID MyMessage msg1(1, V_LIGHT); MyMessage msg2(2, V_LIGHT); MyMessage msg3(3, V_LIGHT); MyMessage msg4(4, V_LIGHT); 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() { if (!initialValueSent) { Serial.println("Sending initial value"); send(msg1.set(loadState(1)?RELAY_OFF:RELAY_ON),true); wait(1000); send(msg2.set(loadState(2)?RELAY_OFF:RELAY_ON),true); wait(1000); send(msg3.set(loadState(3)?RELAY_OFF:RELAY_ON),true); wait(1000); send(msg4.set(loadState(4)?RELAY_OFF:RELAY_ON),true); wait(1000); Serial.println("Sending initial value: Completed"); wait(5000); } } void receive(const MyMessage &message) { Serial.println("=============== Receive Start ======================="); if (message.isAck()) { Serial.println(">>>>> ACK <<<<<"); Serial.println("This is an ack from gateway"); Serial.println("<<<<<< ACK >>>>>>"); } // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT) { Serial.println(">>>>> V_LIGHT <<<<<"); if (!initialValueSent) { Serial.println("Receiving initial value from controller"); initialValueSent = true; } // Update relay state to HA digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF); switch (message.sensor) { case 1: Serial.print("Incoming change for sensor 1"); send(msg1.set(message.getBool()?RELAY_OFF:RELAY_ON)); break; case 2: Serial.print("Incoming change for sensor 2"); send(msg2.set(message.getBool()?RELAY_OFF:RELAY_ON)); break; case 3: Serial.print("Incoming change for sensor 3"); send(msg3.set(message.getBool()?RELAY_OFF:RELAY_ON)); break; case 4: Serial.print("Incoming change for sensor 4"); send(msg4.set(message.getBool()?RELAY_OFF:RELAY_ON)); break; default: Serial.println("Default Case: Receiving Other Sensor Child ID"); break; } // Store state in Arduino eeprom saveState(message.sensor, message.getBool()); Serial.print("Saved State for sensor: "); Serial.print( message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); Serial.println("<<<<<< V_LIGHT >>>>>>"); } Serial.println("=============== Receive END ======================="); }```
-
RE: Looking for esp8266 moisture sensor sketch that works with current libraries
@mfalkvidd was part of the sketch. I could see right away that sleep did not work
-
RE: New ethernet gateway errors out on Home Assistant
Much appreciated!
This is what I ended up with for a working config:
automation: !include 'automations.yaml' default_config: ~ group: !include 'groups.yaml' scene: !include 'scenes.yaml' script: !include 'scripts.yaml' mysensors: gateways: - device: '/dev/ttyUSB0' persistence_file: 'mysensors1.pickle' - device: '10.10.1.69' persistence_file: 'mysensors2.pickle' tcp_port: 5003 optimistic: false persistence: true retain: true version: '2.3'
-
RE: Best sensor for falling alert
Apologies!! I kept getting errors when using that board, so used another. I am on a new worksation and it turns out python was not installed. The error ceased after I installed. The sketch works fine now.
-
RE: Motion Sensor not presenting to RS485 Gateway / TSM:FPAR:NO REPLY
@mrhutchinsonmn said in Motion Sensor not presenting to RS485 Gateway / TSM:FPAR:NO REPLY:
9600
Good catch.. That was an old version... both are set to 115200 after 9600 did not work
-
Recommended hardware for medical alert
Last year, I requested input on an alert system for my ailing father. His health degraded rapidly and he passed away before I could develop the project. Unfortunately, my mother is now facing her own health challenges and I want to help her by putting together a system that best suites her needs.
She currently subscribes to a medical alert service but it does not function as she would prefer. (calls go out to medical personal, by design, and not nearby family members).
She is mentally sharp but weak, so she is asking if I could put something like this together:
Press wrist button once (hold for 5-10 seconds) = text message or recorded message sent to my sister.
Press wrist button a second time (hold for 5-10 seconds)= message another nearby family member.
Press wrist button a 3rd time(hold for 5-10 seconds) = send pre-constructed message to 911.
Obviously, the unit she wears must be small and have long battery life (rechargeable).I can do everything via an arduino nano and wireless but that is not practical for wearing and battery size/life, etc...
I am not familiar with all the hardware options out there. Any ideas of how I can approach this? It is only for her home, where she has wifi.
Thank you in advance for sharing your ideas and knowledge.
-
RE: Motion Sensor not presenting to RS485 Gateway / TSM:FPAR:NO REPLY
@mfalkvidd Ugh!!! Too many versions of the sketch :)... Had to switch between my laptop and pc because of sketch upload issues.... Must have grabbed an old sketch.. I HAD commented hwserial out earlier... Getting communication now but not a valid message, not enough values to unpack errors. I will dig into that tomorrow. Thank you!!!
-
RE: Motion Sensor not presenting to RS485 Gateway / TSM:FPAR:NO REPLY
@electrik Yes... that worked!!! Moved node and child id above mysensors.h
Thank you!!!!
-
RE: Relay device not showing up in HA but does in .json
@cabat Thank you! Apparently, the MySensors sketch supplied in the Build section is not written to work with HA. I did take a stab at it and pop some code in the loop section, and the sensor now shows up but is not functional. I will have to dig more and determine what should be added to the sketch for it to work.
Thanks much for the pointer.