-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support of homeduino local sensors and weather protocols #3
Comments
You can indeed add any missing protocols to rfcontrolpy, just follow any of the other protocols as an example together with the original rfcontroljs code. I think it should be straight forward. You can then use the Homeduino CLI to test your protocol |
Thank you for your explanation. |
Ah, I see what you mean. Yes, the HA integration needs some work to implement sensors. |
If you enable logging of the Homeduino integration do you see any messages from your weather sensors? |
Thank you very much for your extensions. 👍 Since I do not use HACS and to avoid any update issues I installed your recent build from scratch after deleting the existing configuration. My local sensor DHT 22 is connected to GPIO 14 which cannot be selected (pinout attached). |
Sorry, but this integration is only developed for the original Arduino Nano based Homeduino, and that one only goes till Digital IO 13. The latest development also doesn't yet support DHT11/22, only digital in, digital out, analog in and PWM out. You could move the DHT 22 to an other GPIO, but then support still needs to be added to the Homeduino library. The integration actually already has some work done to support DHT11/22 in the future. |
For switch1, there seems to be something going wrong in the rfcontrol library |
Did you have the problems with switch1 also with a previous version? |
No, it worked without any problems. |
Ok, should be fixed now in the latest Github code |
again working ... |
DHT11/22 should now work too, but only on Digital IO 3 till 12 |
You finally convinced me to reopen my homeduino case and to do the necessary soldering. 😉 I have now selected GPIO 2 which is outside of the range given above. GPIO 2 is the only free pin on my board apart from GPIO 14 to GPIO 16. By the way, is it that problematic to expand the GPIO range up to 16 supporting also the capabilities of ESP devices which are widely used? |
GPIO 2 should actually work too. The first 2 GPIO are used for the serial port, and those are on GPIO 0 an 1, hence the confusion from my side. The goal of my homeduino integration was to support the original homeduino which is based on the Arduino Nano and which I have myself. If I start to support other boards than the Arduino Nano I open up a rabbit hole with all kind of specifications and setups. The next person want to have support for the Arduino Mega with 53 digital IO and 16 analog inputs. It's just not worth my effort my own free time after all. Also, most people using an ESP will be using ESPHome I guess, which will integrate better in Home Assistant. I'll look into the |
I think the latest version should work, try the new code and give it a try |
Far enough, I understand your concerns and appreciate your activities. |
You could also give the weather sensor a try. I couldn't test it myself due to lack of equipment |
Could you give the latest code a try? |
Great, weather data of protocol weather4 are now available in the log. 👍👍 |
Meanwhile, I have added the missing protocol weather4 to both if statements and HA log reports the following error: Concerning both devices temperature values will only be read once. |
Ah, I see what you did, and also why no unique id is generated, that's a bug in my code. |
Current Github code should now also support weather4 (I solved it in a bit more generic way) and generate a unique id |
I didn't create a sensor for lowBattery yet |
Just tested your latest code. Modified if statements now always false? |
Yes, there is something wrong wit the if statement, I went back to hard coded protocol names. Check again please |
Device and entities are now available. 👍 |
After the deactivation of the homeduino transceiver DHT entities show not available but the weather entities keep the old and outdated values. |
I don't own any of the hardware you have, so whatever I'm doing is a bit trial and error. I think the changes made are already quite substantial. Maybe you can first try to build further upon the available code and try to make it work. |
Just a small finding in sensor.py: |
I don't see what the problem is and don't have any test data or hardware to test. Can you make the needed changes yourself and create a pull request? |
Ok, I see it, but you can still create pull request for future changes |
The small change did it. You are challenging me: |
Thanks for your contribution, both by means of coffee and with your pull request @roku133! I will look into the lowBattery support, but only in August as I'm running a bit out of time before going on holidays. If you dare the challenge, the lowBattery should be implemented in the If you like to get involved in other ways you could also add a translation file for your language, I'm guessing German, by translating the |
Based on your hints I will try it. To be honest - I am not convinced that I will succeed. |
Hi rrooggiieerr,
excellent job enabling us to continue with our homeduino implementations in HA.
You have mentioned that you are currently supporting protocols you personally need - this is completely understandable.
Looking into the protocols folder of rfcontrolpy two weather protocols (7, 19) are already available.
File sensor.py seems to basically support local sensors (DHT).
Is there an option to support them in homeassistant-homeduino with limited additional effort?
This extension would be great.
No problems for me to support testing.
The text was updated successfully, but these errors were encountered: