-
Notifications
You must be signed in to change notification settings - Fork 46
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
Upgrading from rfxsend.py: how to send raw commands? #99
Comments
Welcome to I am not familiar with In If you look in file To send your two example commands, you should create a
The second call omits the Similarly, there is the The file Finally, each If you have any other questions, please ask and I will try to answer them. |
Wow, thank you so much for this extensive reply. Got most of my devices working fine now. Great.
This is my test code:
I'm pretty sure that Then some additional questions:
Is there something I should do different? Or is this a mishap in node-rfxcom's code?
These turn out to be exactly the raw commands I was using as an argument to |
I think the problem is BLINDS_T6 uses the top 4 bits of the 8th byte as part of the id, not the unit code. So in your example the id ought to be Also, the RfxCom object emits an event for each type of packet received, so if you handle the Plain Javascript doesn't actually support privacy, so you can always access any method of an object - feel free to call But... ...if you want to implement home automation using NodeJS, can I recommend you take a look at Node-RED? It's a graphical, flow-based programming environment originally developed by a couple of guys at IBM, and now an Eclipse Foundation project. I have contributed a graphical node, |
The |
Works, thank you so much!
Great. I've given it a go myself, successfully:
in
Maybe you need/want to add some extra checks (for devices other then BLINDS_T6), but this works for me.
Might, might not.... not sure as everything now works the way you intended it!
Thanks! |
Three other blinds subtypes support an intermediate position, of which one actually has three different positions. The API needs to cover them all, and of course I will have to write test cases for each. Deep joy... |
Good luck with that .... ;-) |
I decided to send raw commands; here is how I do that (for future reference):
|
Just published version 2.4.0 which adds the |
Works brilliantly. Thank you very much for all you efforts. |
I am writing my own home automation software in nodejs. I've got an RFXcom on a Raspberry Pi. Until now I used the rfxcmd python scripts for sending and receiving commands: received sensor data is forwarded to nodejs via MQTT.
Works fine, but this node-rfxcmd library seems to fit my needs even better.
I've been playing around, and I can successfully receive data from my temperature, humidity and motion sensors. Great!
Next step is sending commands to the few 433MHz devices I have. Until now, I used the
rfxsend.py
script for that.Here are some examples:
rfxsend.py -r 09130000155451015000 // Turn light on
rfxsend.py -r 09130000155454015200 // Turn light off
rfxsend.py -r 0C1A000F010234010100000000 // Somfy blinds up
rfxsend.py -r 0C1A000E010234010000000000 // Somfy blinds down
These raw commands were found with the RFXmngr program (Windows).
How can I send these raw commands in node-rfxcmd? I've been playing with this:
I don't know what the first 2 arguments to
sendRaw
should be?I am hopeful somebody can & will help me. Thanks in advance!
The text was updated successfully, but these errors were encountered: