RFXCom RAW transmit in Domoticz Topic is solved

Moderator: leecollings

User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by EdwinK »

WORKS!!!

Somehow the line was split on two places. Stitching them together fixed the HEX error :)

Next on...trying to put this in a script so it uses the room temp. And in a selector-switch.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
solarboy
Posts: 300
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by solarboy »

There is a section in the RFXCOM user guide about over length packets.

"If you receive multiple RAW packet with more than 62 pulses, try to find the gap. This is normally a higher value and smaller than 8000. Here an example with a gap value of 6600 and the next 6596."

Page 51

This may be a case of the blind leading the blind :lol:
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
solarboy
Posts: 300
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by solarboy »

edit .. just read your reply..fantastic !
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by EdwinK »

Can you share your script?
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
solarboy
Posts: 300
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by solarboy »

So these are the raw codes captured for a Lucci AirfusionDCII fan with the default dip switches. Other versions of this fan may or may not have the same codes but they can be captured as explained above.

I created "sh" scripts for each of the button presses and these scripts all called by virtual switches in domoticz. I made the virtual switches "push on" switches and the script is loaded for the "on" action with scripts like;

"On action = script://luccion1.sh"

Once the scripts are in place in the "scripts" folder and the virtual switches have been created, they can be called from any other Blockly etc script.

For Fan "OFF"
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 03 19 00 C2 01 94 02 3B 02 DB 00 F2 02 DD 00 EF 02 DD 00 F0 02 DE 00 F0 01 9D 02 30 02 E3 00 EB 02 E1 00 EE 02 DE 00 F1 02 DC 00 F2 01 9B 02 31 02 E0 00 EF 27 10"

For speed 1
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 07 19 00 C3 01 92 02 3D 02 D1 00 FC 02 D8 00 F5 02 D5 00 F9 02 DF 00 EF 01 92 02 3C 02 D6 00 F8 02 D7 00 F6 01 93 02 3A 02 D9 00 F6 02 D6 00 F8 02 DA 00 F3 27 10"

For speed 2
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 08 19 00 C6 01 91 02 3E 02 DD 00 F3 02 D9 00 F2 02 DD 00 F3 02 D9 00 F6 01 99 02 35 02 DF 00 EF 02 DA 00 F6 01 97 02 38 02 D8 00 F3 01 9F 02 2F 02 DB 00 F3 27 10"

For speed 3
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 09 19 00 CB 01 99 02 32 02 DF 00 F0 02 E0 00 EF 02 D6 00 F8 02 DB 00 F6 01 91 02 3C 02 DB 00 F3 01 98 02 34 02 DE 00 EF 02 DD 00 F2 02 DB 00 F3 02 DA 00 F5 27 10"

For speed 4
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 0A 19 00 B6 01 98 02 37 02 DE 00 EF 02 DF 00 F2 02 E0 00 EF 02 DF 00 EE 01 9C 02 30 02 EF 00 DF 01 9C 02 31 01 99 02 35 02 E9 00 E5 02 E5 00 EA 02 E5 00 E8 27 10"

For speed 5
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 0B 19 00 CC 01 91 02 3D 02 D6 00 F9 02 D6 00 FB 02 D2 00 FD 02 D4 00 F8 01 95 02 38 01 91 02 3D 02 D6 00 F8 02 DC 00 F3 02 DB 00 F4 01 97 02 36 02 D6 00 FA 27 10"

For speed 5
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 0C 19 00 CF 01 90 02 3E 02 D6 00 FA 02 D5 00 F9 02 D3 00 FB 02 D7 00 F6 01 94 02 39 01 92 02 3C 02 DB 00 F3 02 D7 00 F8 02 D6 00 F8 02 D4 00 FD 02 CF 00 FD 27 10"

Change direction
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "38 7F 00 0D 19 00 C3 01 8F 02 3F 02 DA 00 F5 02 D6 00 F9 02 DC 00 F4 02 D9 00 F7 01 94 02 39 02 D3 00 F9 02 D9 00 F6 02 D9 00 F6 01 98 02 35 02 D7 00 F6 02 DD 00 F3 27 10"
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by EdwinK »

deleted
Last edited by EdwinK on Thursday 22 July 2021 17:43, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by EdwinK »

Will add the codes for the Westington remote 77841B as well. Mind you, the MED settings needs to be worked on, that one will also turn the lights on.

Thanks to user solarboy for his help on this.

Fan On:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 0F 06 01 03 03 40 01 2E 03 3F 01 30 03 3F 01 2E 03 45 01 2C 01 B6 02 B6 01 BB 02 B5 03 44 01 2C 01 BA 02 B5 01 B8 02 B7 03 45 01 2C 03 43 01 28 03 44 01 2E 03 43 01 2C 03 40 01 2D 03 45 01 2C 03 40 01 2D 23 28"

Fan Off:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 07 06 01 04 03 41 01 29 03 45 01 2B 03 43 01 2C 03 44 01 29 01 BD 02 B1 01 BB 02 B4 01 BE 02 B1 01 BE 02 B1 01 BD 02 B5 03 45 01 2A 03 45 01 2A 03 44 01 2A 03 44 01 2B 03 44 01 2B 03 42 01 2A 03 45 01 2A 23 28"

Fan Low:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 08 06 01 03 03 40 01 2E 03 3F 01 30 03 3F 01 2E 03 45 01 2C 01 B6 02 B6 01 BB 02 B5 03 44 01 2C 01 BA 02 B5 01 B8 02 B7 03 45 01 2C 03 43 01 28 03 44 01 2E 03 43 01 2C 03 40 01 2D 03 45 01 2C 03 40 01 2D 23 28"

Fan Med_Low:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 09 06 00 E8 03 3A 01 2F 03 40 01 2E 03 42 01 2E 03 40 01 2E 03 41 01 2B 03 43 01 2E 01 B6 02 B7 01 BA 02 B7 01 B5 02 B5 03 45 01 2C 03 42 01 2F 03 41 01 2C 03 40 01 30 03 3F 01 2F 03 41 01 30 03 42 01 2B 23 28"

Fan Med needs to be worked on, also turns on ligths:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 0A 06 01 19 03 42 01 2D 03 3E 01 2F 03 40 01 30 03 3E 01 2E 01 BA 02 B5 03 44 01 2C 01 B7 02 B6 01 BA 02 B7 01 B9 02 B6 03 44 01 2D 03 40 01 2F 03 41 01 2F 01 B7 02 B5 01 BC 02 B6 01 B8 02 B6 01 BA 02 B6 23 28"

Fan High:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 0C 06 01 1A 03 3B 01 32 03 3E 01 35 03 3C 01 34 03 3E 01 33 03 3A 01 38 01 B1 02 BD 01 B5 02 BC 01 B4 02 BF 01 B4 02 BC 03 3F 01 36 03 39 01 33 03 3F 01 35 03 3C 01 36 03 3A 01 34 03 3D 01 36 03 39 01 38 23 28"

Lights On:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 0E 06 01 04 03 3F 01 2C 03 44 01 2E 03 40 01 2C 03 42 01 2E 01 B8 02 B4 01 BB 02 B5 01 BB 02 B3 01 BC 02 B4 01 BC 02 B2 03 46 01 2C 03 45 01 2B 03 43 01 2B 01 BA 02 B5 01 BA 02 B3 01 BE 02 B3 01 BB 02 B5 23 28"

Lights Off:
sudo /home/pi/domoticz/scripts/rfxcmd/rfxcmd.py -d /dev/ttyUSB0 -s "48 7F 00 0F 06 00 FD 03 3E 01 2E 03 43 01 2B 03 42 01 2C 03 42 01 2D 01 BB 02 B1 01 BB 02 B4 01 BB 02 B6 01 BB 02 B3 01 BC 02 B5 03 44 01 2B 03 42 01 2E 03 44 01 29 03 44 01 2D 03 41 01 2C 03 43 01 2C 03 42 01 2C 23 28"

(I have a small error left, 'serial port closed: end of file' but that doesn't influence the performance of the fan.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
solarboy
Posts: 300
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by solarboy »

I also have the serial port closed error, it appears rfxcmd takes exclusive control of the RFXCOM device when it transmits but Domoticz gracefully recovers the connection. Thanks also to you edwin :mrgreen:
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
ilkaskim
Posts: 19
Joined: Friday 20 August 2021 2:20
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Germany
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by ilkaskim »

Hi, I have a question. how can I send this RAW code with RFXtrxLAN via wifi ?? :?:
ilkaskim
Posts: 19
Joined: Friday 20 August 2021 2:20
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Germany
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by ilkaskim »

nobody an idea :?: ? What should the command be if it sends RAW data via WIFI/LAN ?? I've been looking for a few days on the net but can't find anything there and my knowledge is also limited.
I would be very happy about a help.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by EdwinK »

Sorry, I can't remember how I did this
ilkaskim wrote: Wednesday 07 September 2022 4:39 nobody an idea :?: ? What should the command be if it sends RAW data via WIFI/LAN ?? I've been looking for a few days on the net but can't find anything there and my knowledge is also limited.
I would be very happy about a help.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: RFXCom RAW transmit in Domoticz

Post by EdwinK »

Had to reinstall again, but... now the rfxcmd.py thingy isn't working on python3.

For future reference I hAd to remove the rfxcmd directory and install from here https://github.com/nbeguier/rfxcmd
This works with python3.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests