-
Notifications
You must be signed in to change notification settings - Fork 103
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
Create new methods for building packets. #14
Comments
Hmm, I wondered why this seemed a bit familiar 😆 |
Great !! Thanks a lot ! |
I'll try and write this suggested solution tonight, as it would make creation of packets even easier. |
Thx @kipe :-) |
Hi @kipe I am testing the code.
but then, i have 'enocean.protocol.eep: Cannot find type in EEP' I am searching if rorg=0xA5, func=0x02, type=0x06 is correct. |
Oups... |
Well, at least the EEP.xml in the project doesn't include a profile for 0XA5, 0x02, 0x06 ;) |
Ok :-) |
Basically yes. You should be able to get the information about the plug settings from the manufacturer, and the device ID should be printed on the label. |
Thanks ! |
Damn, I think VLD-messages are over all very much untested. Not sure if I can even dare to try and write support for that without a device to test on :( |
I have an error : RORG is not supported by this function. |
Unfortunately not... As mentioned in packet.py, the new function currently only support rorgs RPS, BS1 and BS4. Yours is VLD. This issue is already under consideration as issue #6. I can try and make a basic support based on the documentation at some point, but it does require a bit more thought 😕 |
Ok... |
The Shouldn't we use type list for |
Yes, yes, yes 👍 Reopening as a reminder. //E: Maybe create an |
One more comment with regard to class member types: |
So you mean Can you post an example of usage, on how you'd like to use it? |
I think And a short example: For my HVAC device I need to teach-in with 4BS in Variation 3. This requires the EEP profile to be set also in the teach-in response packet. Currently I do this by
|
Thank you for your comments. I think I'll make an experiment to another branch when I have the time. Could you possibly create a test for the teach-in -procedure you're using, so I can test against it? |
- Convert all values received by `Packet.parse_msg` to integers. - Replace `RadioPacket.sender` and `RadioPacket.destination` with lists of integers. Create corresponding functions for receiving hex and integer values. - Move commonly used stuff to `enocean.utils`
…s discussed in issue #14. `Packet._bit_optional` is non-existant for now, as there is no method currently utilizing it.
Some of the stuff discussed here is included in c2e3922 and 2022ae6. As for the |
From my perspective, this would be a good solution.
|
Damn, this really should be put on a priority, I once again managed to confuse myself with this issue :P |
Closing, as most stuff is implemented. Moving the restructuring to #28. |
As shown by issue #13, the current method for creating and sending packages is a bit complicated.
Maybe we should build methods for creating packages based on EEP.xml?
My initial idea is to create an
Packet
(class?) -method with the following style:I can create the methods, but as I don't have any devices to send data to, at least help with testing would be required.
Comments?
The text was updated successfully, but these errors were encountered: