Showing the cause of brightening

Moderator: leecollings

Post Reply
User avatar
abdolhamednik
Posts: 39
Joined: Sunday 27 September 2020 7:33
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Showing the cause of brightening

Post by abdolhamednik »

Hello friends
I have a problem thank you to help me.
I have a collection of programs that some of them are devoid and some of them.
For different modes in the worker system, one is activated. Now I want a plan that when the alarm is activated, it is clear that this is the problem because of which problem?
That is, I want different scenarios that are in programs and clearly identifiable.
To better understand the following example:

commandArray={}
if devicechanged ['circule1']=='On' then
commandArray['alarm']= "On FOR 2 SECONDS REPEAT 5 INTERVAL 5 SECONDS"

end
if devicechanged ['power3ph']=='Closed' then
commandArray['alarm']= "On FOR 2 SECONDS REPEAT 5 INTERVAL 5 SECONDS"
end

if devicechanged ['auto/man']=='Open' then
commandArray['alarm']= "On FOR 2 SECONDS REPEAT 5 INTERVAL 5 SECONDS"
end
return commandArray

I want the program to be such that each time that is activated, it is precisely determined what has been activated.
Meanwhile, I want a way of writing print.
Thanks for your guidance.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest