Mochad CM15 Domoticz sends repeat commands for blinds

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
Persisto
Posts: 18
Joined: Wednesday 03 February 2016 21:10
Target OS: Linux
Domoticz version: 2.4386
Location: Plailly France
Contact:

Mochad CM15 Domoticz sends repeat commands for blinds

Post by Persisto »

I have Domoticz (on an old laptop with Ubuntu 14) Domoticz seems to repeat commands to MOchad, (Just like pushing she wall switch for blinds twice, this will stop the blinds) Command line commands in Mochad work OK.

I have Ebode RMV X10 switches, I have similar problems with ActiveHome Pro (but MOchad command line works!)

Here is a test to show differences between command line and Domoticz

Objective: close blinds(3 pcs)
Action: Type in Mochad:

Code: Select all

pl o5 off
Mochad shows

Code: Select all

02/26 12:09:00 Tx PL HouseUnit: O5
02/26 12:09:00 Tx PL House: O Func: Off
Result:Blinds closed


Objective: Open blinds
Action: Click on icon in Domoticz
Mochad shows:

Code: Select all

02/26 12:12:37 Tx RF HouseUnit: O5 Func: On
02/26 12:12:37 Tx PL HouseUnit: O5
02/26 12:12:37 Tx PL House: O Func: On
02/26 12:12:40 Rx PL House: O Func: On
Result:The blinds move up for a fraction of a second.
(Pressing the wall switch up twice would have the same effect.)

Objective: Open blinds
Action: Type in Mochad:

Code: Select all

PL o5 on 
Mochad shows
pl o5 on

Code: Select all

02/26 12:16:37 Tx PL HouseUnit: O5
02/26 12:16:37 Tx PL House: O Func: On
Result:Blinds Open

Objective: close blinds
Action: Click on icon in Domoticz
Mochad shows:

Code: Select all

02/26 12:18:46 Tx RF HouseUnit: O5 Func: Off
02/26 12:18:46 Tx PL HouseUnit: O5
02/26 12:18:46 Tx PL House: O Func: Off
02/26 12:18:48 Rx PL HouseUnit: O5
02/26 12:18:48 Rx PL House: O Func: Off
02/26 12:18:48 Rx PL House: O Func: Off
Result:The blinds move down for a second and stop.
(Pressing the wall switch up twice would have the same effect.)

For the last action the Domoticz log for the corresponding control shows:

Code: Select all

2016-02-26 12:18:48	Off
2016-02-26 12:18:46	Off
2016-02-26 12:18:46	Off
2016-02-26 12:18:46	Off
Plailly France
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
Persisto
Posts: 18
Joined: Wednesday 03 February 2016 21:10
Target OS: Linux
Domoticz version: 2.4386
Location: Plailly France
Contact:

Re: Resolved: Mochad CM15 Domoticz sends repeat commands for blinds

Post by Persisto »

In the file MochadTCP.cpp I changed

Code: Select all

sprintf (s_buffer,"RF %c%d on\n",(char)(pdata[4]), pdata[5]);
to

Code: Select all

sprintf (s_buffer,"PL %c%d on\n",(char)(pdata[4]), pdata[5]);
(and the same for off\n)
And this seems to work!!
(First time I ever touched anthng "non Basic" :P ) Pete is a happy boy!

Clicked the Domoticz Control
Mochad shows:

Code: Select all

02/27 15:43:47 Tx PL HouseUnit: O3
02/27 15:43:47 Tx PL House: O Func: Off
02/27 15:44:40 Tx PL HouseUnit: O3
02/27 15:44:40 Tx PL House: O Func: On
Plailly France
X10 Marmitek + Ebode for lights and blinds + CM15
mochad
Domoticz, Domoticz Lite, Geofence
Raspberry Pi III
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest