Weekday clock RULE

  1. your condition a top must be on minute and not week day, you want to check every minute if the time have changed else it will start once a day at midnight only once a day
  2. yout action , if you change a boolean value(on-off, true false) you may need to use a checkbox instead
  3. not sure how your sirena work, but you never set it to off just something to think about
    4)the reste seem good to me for the image quality i have and are able to see!!!

1 As for this part, I suppose it will refer to this:
imagen

2 In this part I don’t know if it would be correct or where the red circle is, I should put something else. As for this part I don’t understand what you mean( yout action , if you change a boolean value(on-off, true false) you may need to use a checkbox instead )
imagen

3 As for the operation of the siren, I leave it here as I have it discharged.

4 Once this is completed, it should be executed automatically every minute, right?

  1. should be DateTime Minutes (and not action minute)
  2. i personnaly rarely use it i prefere to set my condition in the body since i often call macro from macro, but you could if you prefere add all your condition here
  3. for the siren you should use a boolean box(checkbox) instead of text
  4. right once it will be right set, it will check every minute if the condition are right.

also how many time did you plan to keep your siren on? because as i see, you turn it on but never off so i should guess you turn it off manually?

Okay, I’ll pass you the data in parts to see if you all understood it correctly.

1 Regarding the change of the action, I suppose you would mean that it has to be like this:
imagen

2 ok as for this option, I only commented on it in case it was mandatory for me to have something, if not, I will leave it empty

3 in the case of the siera I suppose that you would refer to this field in this way:
imagen

4 As for the time the siren turns off, I guess it should be automatic, since I have it as a pulse, I’ll pass you how it’s configured to see what you think about it or should I change something.
imagen

On the other hand, I am going to pass you the complete macro so that you can see how it turned out and if it is correct.

a greeting.

I have noticed that when I save and access again this part has changed. Before closing it like this:
imagen

After closing and reopening it looks like this:
imagen

I don’t know why the minutes value is removed. I don’t know if it’s correct either.

This is the trigger

Screenshot_20220506-060353.png

A perfect value, then making this change should work the condition without problems, right?

Should work after that!

I’ve been running some tests and everything seems to be working fine. Thank you very much for the help you have given me, I owe you one.

A query, regarding the MACROS, could there be a delay of about 20 seconds in activating the siren from the exact time of the condition? For example I have clo to ring at 5:57, but it rings at 5:57:20. Thank you very much.

The gateway could take some time to process the macros and stuff,

Then there would be no way to correct in the 20 seconds difference?

i have no idea at this point, i’ll hope someone else can help on that

don’t know anything about what’s going on internally, but could the addon “poll” every nn (20?) seconds rather than registering to obtain a real-time clock-based event?

The truth is that I don’t know, the problem is that this is a siren for work shifts, and when it sounds, 20 seconds have already passed. So it would be nice to find some solution to rectify this 15-20 second delay. Thank you very much.

Hello good morning, someone could find the solution to the problem raised above. Thank you very much.

From today the DateTime appears as “disconnected”, what could we do to resolve it and be able to connect it again?

See this https://discourse.mozilla.org/t/date-time-addon/107685

Ok perfect thank you very much, I have it solved.

The only problem that I still have with the macro is that it is delayed when ringing about 10-15 seconds after the scheduled time to ring. What could this be due to?