-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Reed Switch Support (pvvx custom firmware) #7
Comments
Hi, you have created an interesting application! I just found the information regarding the counter/flags here: If you like, you can implement the changes and create a pull request. Otherwise it may take a while until I find some to do this. Best regards, |
Hi Matthias, It's an excellent solution and at a very low cost compared to commercial solutions! I know exactly how each beehive is doing in the middle of winter so can go and check for problems. I think I've worked out how to extract the reed switch status, I can't find the count though (position 13 seems to increment on each advertisement) https://github.com/chinswain/ATC_MiThermometer/blob/main/src/ATC_MiThermometer.cpp Added to .h
Added to .cpp
Data from the flashing tool shows the counter and flag data is in the advertisement so I assume the device is configured and transmitting correctly: Vbat: 3002 mV , Temp: 23.30°C, Humi: 48.06%, ID: 1464, Reed switch counter: 11, flg: 0x05:r1/t0 Output from library: |
Maybe you can configure if the counter is incremented on each advertisement or only on events? You can create a pull request by clicking "Contribute" in your branch. |
@chinswain Added in #8. Thanks for your contribution. |
Would it be possible to add support for reading the state of the reed switch that's been added the custom format?
I have 10 sensors located in 10 beehives (they fix perfectly inside) that are currently reporting temp and humidity (Healthy beehives are always around 35C) which are monitored by an ESP32 that sends the data via LoRa to my house a few miles away.
I'd like to place a magnet in the lid to activate the reed switch I've added to the LYWSD03MMC's so I have an alert if anyone opens the hives.
Custom format (all data little-endian):
The text was updated successfully, but these errors were encountered: