Open reglisse69 opened 6 months ago
Hi @reglisse69 - I came across this project as I'd like to extract away from the RFXCOM integration in Home Assistant and use MQTT.
It looks like this project doesn't support RFY but I can see the library it uses does have support for it
https://github.com/rfxcom/node-rfxcom/blob/master/lib/rfy.js
I'm going to take a look this weekend to see if I can get this working. When I do, I'll update this issue and I'll also open a PR for the developer to check
Hi @reglisse69 - I made quite a few changes but have been able to use this with my Somfy RFY blinds using my fork here
https://github.com/MrNorm/rfxcom2mqtt
Changes include a fundamental rewrite of how the library is accessed including a change to the MQTT topics and mandatory payload which is now JSON over a command string.
It's worth noting that I have 0 other devices to test against this library, so it is very untested. I will be happy to take a look if you let me know your use case.
To build it's the usual deal. Check out the repo, update the config and add devices if required (it's optional) . Then build using docker-compose build
and docker-compose up
Hope that helps!
I Oliver;
Awesome ! Thanks in advance for your work and I'm looking forward to testing quickly.
My use case :
At the beginning, all was on a single raspberry (local CC2652P / RFXtrx433XL)... and no real problem with RFXCOM RFXtrx HA integration .
Now, with the distance HA communicates with RFXCOM via usb2ip client/server but got some disconnection that needs to restart HA or usb2ip client and/or server.
In RFY/Somfy protocol, got :
Will try your fork this week, but I'm not sure how to declare those devices.
Once again thank you for your help !
Le sam. 6 janv. 2024 à 13:24, Oliver Northam @.***> a écrit :
Hi @reglisse69 https://github.com/reglisse69 - I made quite a few changes but have been able to use this with my Somfy RFY blinds using my fork here
https://github.com/MrNorm/rfxcom2mqtt
Changes include a fundamental rewrite of how the library is accessed including a change to the MQTT topics and mandatory payload which is now JSON over a command string.
It's worth noting that I have 0 other devices to test against this library, so it is very untested. I will be happy to take a look if you let me know your use case.
To build it's the usual deal. Check out the repo, update the config and add devices if required (it's optional) . Then build using docker-compose build and docker-compose up
Hope that helps!
— Reply to this email directly, view it on GitHub https://github.com/Legobas/rfxcom2mqtt/issues/2#issuecomment-1879665462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGS2BZB3UXWKKSZ35E2IIMLYNE67HAVCNFSM6AAAAABA3TTZ7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZGY3DKNBWGI . You are receiving this because you were mentioned.Message ID: @.***>
Ok thanks for the summary. I feel like rfxcom2mqtt matches your use case perfectly
I will double check that the fork will work with those devices and I'll throw together come examples for you in the week. It has been working with my Somfy venetian blinds well so far
Thanks, Oli
Thanks.
For now, your container is build, started, connected to my MQTT server and my RFXCOM device.
[image: image.png]
I'm not very comfortable with MQTT publish, but will try.
My real question is the fill of the command_topic: "rfxcom2mqtt/command/Rfy/0x00000A/3"
For my gate for example in rfxcommgr, on open command on it is :
01/01/2024 05:41:03:988= 0402010400 Packettype = Receiver/Transmitter Message subtype = Transmitter Response Sequence nbr = 4 response = ACK, data correct transmitted Possible to write the command_topic with those informations ?
Le dim. 7 janv. 2024 à 18:59, Oliver Northam @.***> a écrit :
Ok thanks for the summary. I feel like rfxcom2mqtt matches your use case perfectly
I will double check that the fork will work with those devices and I'll throw together come examples for you in the week. It has been working with my Somfy venetian blinds well so far
Thanks, Oli
— Reply to this email directly, view it on GitHub https://github.com/Legobas/rfxcom2mqtt/issues/2#issuecomment-1880127081, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGS2BZBO6JYTQNCYWCAEKLTYNLPBRAVCNFSM6AAAAABA3TTZ7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGEZDOMBYGE . You are receiving this because you were mentioned.Message ID: @.***>
Hi @reglisse69 apologies for the late reply
Based on what I'd seen in the RFY.js library, you should be able to send this
Topic: rfxcom2mqtt/command/Rfy/0x00000A/3
Payload:
{ "deviceFunction": "up", "subType": "RFY" }
And to close
Topic: rfxcom2mqtt/command/Rfy/0x00000A/3
Payload:
{ "deviceFunction": "down", "subType": "RFY" }
If you're using Home Assistant, it should look like this in Developer Tools
Does that help?
Oli
Hi @MrNorm, Late reply ! No problem you help me it's already invaluable
tooks a long time for me to find the correct address & unitcode. I have read https://github.com/rfxcom/node-rfxcom/tree/master and https://www.home-assistant.io/integrations/rfxtrx/.
Finaly the topic is : rfxcom2mqtt/command/Rfy/0x[ID1][ID2][ID3]/
So now it's ok :
Tried in MQTTExplorer (https://mqtt-explorer.com/) and Home Assistant as a service call.
Just a last (noobs) question : with zigbee2mqtt we can have devices in home assistant. With rfxcom2mqtt we had to deal with publish command only ?
Anyway thank you for your help !
Hello
Very interested in your project, but don't know now how to declare RFY Somfy devices.
Your Docker container worked (built with your Dockerfile) and my RFXCOM RFXtrx433XL addressed without any issues: MQTT output: rfxcom2mqtt/info {"receiverType": "433.92MHz transceiver","hardwareVersion": "3.0","firmwareVersion": 1048,"firmwareType": "ProXL1", "enabledProtocols": [], "transmitterPower": -18,"Noise level": 68}
...and connected to my HomeAssistant MQTT server.
But I'm a bit lost on how to declare the devices. I have already received the RFY EventCode from my devices,
Unit Code ID1 ID2 ID3 OK Description Event Code Name RFY 00 00 01 01 x Garage Store 071a000000010100 garage_store 00 00 01 02 x Véranda Store 071a000000010200 veranda_store 00 00 01 03 x Kitchen Store 071a000000010300 kitchen_store 00 00 01 04 x Portal 071a000000010400 portal_yard 00 00 01 05 x Light 071a000000010500 leds_yard
but I don't know now how to declare RFY devices in your config.yml.
Any help appreciated.