Ok clear.
I will try to go then with your bash script, the only issue may come from the remote device I also use on the same blind. Cause then the script won't be executed on the ON coming from the remote device but only on the Domiticz switch ( even if they are on the same RF 433 code )
I was also ...
Search found 11 matches
- Friday 05 February 2016 16:47
- Forum: LUA
- Topic: Lua script doesn't send commands to switch
- Replies: 13
- Views: 4401
- Friday 05 February 2016 15:28
- Forum: LUA
- Topic: Lua script doesn't send commands to switch
- Replies: 13
- Views: 4401
Re: Lua script doesn't send commands to switch
I was maybe a bit naive, but I thought that the first condition would not be true if there was no "state" change :
I thought : if (devicechanged['Fixe haut'] == 'Open') then was triggered only if there was a change meaning coming from Closed to Open.
If this is not the case then we would need to ...
I thought : if (devicechanged['Fixe haut'] == 'Open') then was triggered only if there was a change meaning coming from Closed to Open.
If this is not the case then we would need to ...
- Friday 05 February 2016 15:04
- Forum: LUA
- Topic: Lua script doesn't send commands to switch
- Replies: 13
- Views: 4401
Re: Lua script doesn't send commands to switch
Chacon switch works as such:
when push On = Open switch for 2 minutes, if you push On again before the 2 minutes it will stop sending the On signal.
As I need to send an Impulse, I need to send On, 1 or 2 seconds after the "On" command has been triggered.
To summarize, I need to send the command a ...
when push On = Open switch for 2 minutes, if you push On again before the 2 minutes it will stop sending the On signal.
As I need to send an Impulse, I need to send On, 1 or 2 seconds after the "On" command has been triggered.
To summarize, I need to send the command a ...
- Friday 05 February 2016 14:52
- Forum: LUA
- Topic: Lua script doesn't send commands to switch
- Replies: 13
- Views: 4401
Re: Lua script doesn't send commands to switch
THanks for your help.
So I simplified the code to take your remarks.
Here is the code:
commandArray = {}
if (devicechanged['Fixe haut'] == 'Open') then
print (" ####### ---- Envoi commande Open sur Fixe Haut" )
-- oss = "curl 'http://192.168.0.39:8080/json.htm?type=command¶m=udevice&idx=119 ...
So I simplified the code to take your remarks.
Here is the code:
commandArray = {}
if (devicechanged['Fixe haut'] == 'Open') then
print (" ####### ---- Envoi commande Open sur Fixe Haut" )
-- oss = "curl 'http://192.168.0.39:8080/json.htm?type=command¶m=udevice&idx=119 ...
- Friday 05 February 2016 13:54
- Forum: LUA
- Topic: Lua script doesn't send commands to switch
- Replies: 13
- Views: 4401
Re: Lua script doesn't send commands to switch
Hi,
thanks !
Now I have one error : Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_device_FixeHaut.lua has been running for more than 10 seconds
what could be the reason? Is the system entering in a loop?
regards,
Pierre
thanks !
Now I have one error : Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_device_FixeHaut.lua has been running for more than 10 seconds
what could be the reason? Is the system entering in a loop?
regards,
Pierre
- Friday 05 February 2016 12:10
- Forum: LUA
- Topic: Lua script doesn't send commands to switch
- Replies: 13
- Views: 4401
Lua script doesn't send commands to switch
Hi,
Here is my problem:
I try to send simple command to switches through Lua scripting in order to "dupplicate" a command when it is triggered One. Short explanation:
I have blinds interfaced with a Chacon 54754 switch and a RF433 remote control. I have created a blind switch "Fixe Haut" that send ...
Here is my problem:
I try to send simple command to switches through Lua scripting in order to "dupplicate" a command when it is triggered One. Short explanation:
I have blinds interfaced with a Chacon 54754 switch and a RF433 remote control. I have created a blind switch "Fixe Haut" that send ...
- Wednesday 03 February 2016 10:55
- Forum: Switches and Scenes
- Topic: How to Send Twice a command to a switch to pilot blinds
- Replies: 3
- Views: 1540
Re: How to Send Twice a command to a switch to pilot blinds
Hi,
thanks for this information.
The only way to make it work ( not fully effective anyway ) is to build a scenario including the switch twice with a delay of 1 second for the second event...
Unfortunnatly I have a an issue when I use the remote control that work with Chacon switches.
My dream ...
thanks for this information.
The only way to make it work ( not fully effective anyway ) is to build a scenario including the switch twice with a delay of 1 second for the second event...
Unfortunnatly I have a an issue when I use the remote control that work with Chacon switches.
My dream ...
- Monday 01 February 2016 15:07
- Forum: Switches and Scenes
- Topic: How to Send Twice a command to a switch to pilot blinds
- Replies: 3
- Views: 1540
How to Send Twice a command to a switch to pilot blinds
Hi to all,
I have blinds that need to receive some impulsion ( between 200ms and 3 seconds ) to be open or closed.
I have interfaced them with some Chacon 54754 to pilot them with Domoticz. But this swich stay in On or Off position for 2 minutes. This make my blinds to beep as then receive a too ...
I have blinds that need to receive some impulsion ( between 200ms and 3 seconds ) to be open or closed.
I have interfaced them with some Chacon 54754 to pilot them with Domoticz. But this swich stay in On or Off position for 2 minutes. This make my blinds to beep as then receive a too ...
- Wednesday 01 April 2015 15:53
- Forum: Bash / PowerShell / Batch etc.
- Topic: Daikin integration
- Replies: 112
- Views: 56876
Re: Daikin integration
Hi,
here is the result of the execution of the script:
sudo ./daikin.sh
./daikin.sh: eval: line 57: unexpected EOF while looking for matching `]'
./daikin.sh: eval: line 58: syntax error: unexpected end of file
./daikin.sh: eval: line 70: unexpected EOF while looking for matching `]'
./daikin.sh ...
here is the result of the execution of the script:
sudo ./daikin.sh
./daikin.sh: eval: line 57: unexpected EOF while looking for matching `]'
./daikin.sh: eval: line 58: syntax error: unexpected end of file
./daikin.sh: eval: line 70: unexpected EOF while looking for matching `]'
./daikin.sh ...
- Monday 30 March 2015 18:11
- Forum: Bash / PowerShell / Batch etc.
- Topic: Daikin integration
- Replies: 112
- Views: 56876
Daikin integration
Hi Philos,
thanks a lot for these scripts. It seems there are some issues in the shell code as it returns errors when I try to execute it. line 82, line 86 then line 93.
it also seems that the Domoticz adress in you case is 127.0.0.1 but should be a parameter.
I am not expert enough to make some ...
thanks a lot for these scripts. It seems there are some issues in the shell code as it returns errors when I try to execute it. line 82, line 86 then line 93.
it also seems that the Domoticz adress in you case is 127.0.0.1 but should be a parameter.
I am not expert enough to make some ...
- Tuesday 17 March 2015 15:06
- Forum: Bash / PowerShell / Batch etc.
- Topic: Daikin integration
- Replies: 112
- Views: 56876
Daikin integration
I would also be very interested, as I have Daikin pump heater and newbee in programmation...