Thanks for your reply. I'll try to answer your questions below and recap my findings.
- I am using HG running on RPI witn CM15Pro connected to RPI. When I switch on or off a device (for example kitchen light at A4) I do this by pressing the ON or OFF button in HG>control. In this case, I see the issue described above, ie the previous device controlled follows the latest device.
- I can run HG on a Windows PC with CM15Pro connected to PC. I see the same issue in this case as well.
- I can run AHB on the same PC with CM15Pro connected to PC. I cannot reproduce the issue in this case.
- I used to run Homeseer on PC with CM15Pro where I also did not face the issue.
- I also have an X10 remote control (Marmitek EI10RF), with this one, I dont see the issue either.
Unfortunately I have no signal meter so cannot check noise or signal strength. The fact that it is/was working properly with AHB and Homeseer leads me to believe that it is caused by a difference in control software, in this case HomeGenie.
When I look at the mono log when switching on A4, I see below logging. After reading
http://www.linuxha.com/USB/cm15a.html, I looks like the commands being sent are correct; 04 6A 06 63 => Address A4 Fuction A Off
However, I do not understand the next log lines? They seem to represent what has been received on the PL? These are not representing A4 Off...but mention two times that house code is A and unit is 4 but no function code mentioned. Furthermore, as stated before, the first command after reboot is always non functional (in the logging shows as time out)
In any case I do not see any reference to the previous unit that is also swicthing.
[15:46:21.004044] X10 < 04 6A
[15:46:21.508237] X10 > 55
[15:46:21.508514] X10 > COMMAND SUCCESSFUL
[15:46:21.561701] X10 < 06 63
[15:46:22.060267] X10 > 55
[15:46:22.060547] X10 > COMMAND SUCCESSFUL
2014-12-29T15:46:22.1183840+00:00 HomeAutomation.X10 A4 - Status.Level 0
[15:46:22.860401] X10 > 5A 02 00 6A
[15:46:22.860727] X10 > PLCRX: 5A 02 00 6A
[15:46:22.860948] X10 > FNMAP: 00
[15:46:22.861183] X10 > DATA: 6A
[15:46:22.861683] X10 > 0) House code = A
[15:46:22.861888] X10 > 0) Unit code = 4
[15:46:23.668483] X10 > 5A 02 00 6A
[15:46:23.668816] X10 > PLCRX: 5A 02 00 6A
[15:46:23.669039] X10 > FNMAP: 00
[15:46:23.669273] X10 > DATA: 6A
[15:46:23.669769] X10 > 0) House code = A
[15:46:23.669978] X10 > 0) Unit code = 4
If I control A4 via the remote control (X10 RF), I see below logging. I dont know how to exactly interpret this logging but now the received commands do seem to be correct. In this case I switched on A4 and I indeed see in the logging house code A, unit 4, house code A, on.
[15:46:47.144224] X10 > 5D 20 60 9F 18 E7
[15:46:47.145906] X10 > RFCOM: 5D 20 60 9F 18 E7
2014-12-29T15:46:47.1574470+00:00 HomeAutomation.X10 RF X10 RF Receiver Receiver.RawData 5D 20 60 9F 18 E7
[15:46:47.247398] X10 > 5D 20 60 9F 18 E7
[15:46:47.247761] X10 > RFCOM: 5D 20 60 9F 18 E7
[15:46:47.663371] X10 > 5A 02 00 6A
[15:46:47.663699] X10 > PLCRX: 5A 02 00 6A
[15:46:47.663917] X10 > FNMAP: 00
[15:46:47.664148] X10 > DATA: 6A
[15:46:47.664608] X10 > 0) House code = A
[15:46:47.664849] X10 > 0) Unit code = 4
[15:46:48.144321] X10 > 5A 02 01 62
[15:46:48.145816] X10 > PLCRX: 5A 02 01 62
[15:46:48.161613] X10 > FNMAP: 01
[15:46:48.169076] X10 > DATA: 62
[15:46:48.174007] X10 > 0) House code = A
[15:46:48.179891] X10 > 0) Command = ON
2014-12-29T15:46:48.1899600+00:00 HomeAutomation.X10 A4 - Status.Level 1
2014-12-29T15:46:48.1948840+00:00 HomeAutomation.X10 RF X10 RF Receiver Receiver.RawData
Hope this gives a bit more background info.