Page 1 of 1
Transmit a string char from Domoticz to Arduino
Posted: Tuesday 19 March 2024 15:32
by boggiz
Hello,
I use the X10RF protocol (433MHz) to transmit to Domoticz the quantity of water consumed every 30 seconds at my home. (via Arduino and RFXcom)
Today I am looking to transmit a character string from Domoticz => RFXcom => Arduino.
Most of the RFXcom send protocols are On/Off switches which seem incompatible with my needs.
I welcome any inexpensive idea compatible with my RFXcom.
Thx
Re: Transmit a string char from Domoticz to Arduino
Posted: Tuesday 19 March 2024 20:37
by waltervl
MQTT over wifi?
What kind of data would you like to send to your Arduino?
What connection modules has your Arduino? Wifi? Bluetooth? Serial?
Why an Arduino and not for example an esp2886 that has everything build in. Check espeasy and Tasmota projects.
Re: Transmit a string char from Domoticz to Arduino
Posted: Wednesday 20 March 2024 11:09
by boggiz
@waltervl Thank you for your reply.
I have a SOMFY garage door working with rotating codes that I have not been able to emulate from Domoticz. Currently to do this from Domoticz I installed a 433MHz module in parallel on the switch located inside the garage.
This device works perfectly except that it is not at all secure!
I'm thinking about using a one-shot code: I send the current opening code to the Arduino which the next moment sends me the code to use for the next opening. It's very simple, but there doesn't seem to be a solution with RFXcom?
I don't know ESP8266 but I have just seen that it can interface with an Arduino but I have also seen an inexpensive Arduino RF which has the advantage of operating at 7-12v unlike the ESP8266.
What else does MQTT offer?
To be continued …
Re: Transmit a string char from Domoticz to Arduino
Posted: Wednesday 20 March 2024 11:30
by habahabahaba
boggiz wrote: ↑Wednesday 20 March 2024 11:09
This device works perfectly except that it is not at all secure!
I'm thinking about using a one-shot code: I send the current opening code to the Arduino which the next moment sends me the code to use for the next opening. It's very simple, but there doesn't seem to be a solution with RFXcom?
Why dont you want to store this codes in Dz veriables ? Or it is mandatory requirement to store them outside of Dz ?
Re: Transmit a string char from Domoticz to Arduino
Posted: Wednesday 20 March 2024 11:38
by boggiz
Yes of course the code will be stored in a Dz variable but the question is how to transmit this code to my Arduino ?
Re: Transmit a string char from Domoticz to Arduino
Posted: Wednesday 20 March 2024 14:33
by habahabahaba
Re: Transmit a string char from Domoticz to Arduino
Posted: Wednesday 20 March 2024 16:49
by Kedi
I had the problem with that solution that it closes the RFXCom port on Domoticz.
It gets up again, but gives an error.
Re: Transmit a string char from Domoticz to Arduino
Posted: Wednesday 20 March 2024 18:13
by boggiz
@ habahabahaba Yes! Very interesting
Thanks for the lead! I will try this as soon as possible but it does not seem easy to implement with Domoticz
@Kedi I saw this problem but it seems that Domoticz reestablishes the connection on its own
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 9:45
by Kedi
But in the time between lost and reconnect you might lose some data and/or switches or other stuff might not be activated.
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 10:44
by boggiz
@Kedi
Are you using this solution or have you given up ?
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 11:44
by Kedi
I have given up, because of the disconnect/connect.
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 12:23
by habahabahaba
@boggiz, Isn't there a separate remote control for these gates?
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 12:50
by boggiz
@Kedi,
How often do you send raws? Because for me it will be very little because I have the switch inside the garage and the remote controls.
@habahabahaba,
Yes, of course. I have several but the only one I always have with me is my phone!
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 13:29
by Kedi
For me it was only an experiment a long time ago, but you might be able to use it, if it is just a few commands per day.
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 14:50
by habahabahaba
I went the other way. I disassembled one of the remotes, soldered the wires to the contacts of the button and connected it to the relay. now Domotics closes the relay for 1 second by emulating the physical pressing of a button

Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 15:16
by boggiz
habahabahaba wrote: ↑Thursday 21 March 2024 14:50
I went the other way. I disassembled one of the remotes, soldered the wires to the contacts of the button and connected it to the relay. now Domotics closes the relay for 1 second by emulating the physical pressing of a button
This is actually another solution which is equivalent to mine, i.e. putting the relay contacts in parallel on the push button in my garage: I lose the Somfy Rolling Code function because Domoticz always sends the same code which can be easily sniffed by a malicious person.
Re: Transmit a string char from Domoticz to Arduino
Posted: Thursday 21 March 2024 15:44
by habahabahaba
Yes. But this solution is much simpler.
And if there are intruders who are able to intercept your signal and retransmit it, then it seems to me that your decision will not stop them either

In any case, good luck finding a solution.