Weekday clock RULE

Hello good morning I have recently implemented a Webthings. I am trying to make an alarm that sounds certain days of the week at a certain time, but I can only tell it the time without a day. Would there be any way to make the rule by days of the week? I hope your help, it is very important.

Thank you very much.

Hello, the calendar addons will help you with that!

Yes, I had seen them correctly, but the truth is that I would not know how it can be used. Could you help me implement it? What I would need would be for Monday to Thursday to be one schedule and Friday a different one. Example: from Monday to Thursday it is activated at 14:45 and on Friday it would be activated at 15:15. It would be more or less an example of what I would like.

image

This exactly with what complement is done?

this is a rule with datetime from calendar addon as condition. then you could mix multiple day of week if you want.
EDIT: sorry my bad, it was the DateTime Adapter that you need!


imagen
After installing the plugin I don’t see it in the rules. Do I have it configured correctly?

you need long and lat, could find it from google maps!

Hello Martin, I think he got it, he did it in the following way.

See if it’s correct.


Thank you very much.

look good, congrats!

After carrying out several tests with the conditions, it does not work for me if I add more than an hour, I attach a screenshot.

If I leave it this way the siren never sounds, I have tried making the changes in the if for while, also changing the or for and and vice versa. Could you tell me what would be the best way to perform the condition so that it would work correctly. Thank you so much for everything.

The rules only allow simple condition, if you need to build more complexe situation, i suggest you to take a look at the macros addon

Could you tell me an example of how I should put the condition as I have told you so that I can perform this function. Right now I already have the plugin you indicated installed and it seems perfect for what I need.

can you tell me exctly what you want
ex: on monday at 18h43 and 13h23 i want to set sirene to on

If you look, for example, we would like that from Monday to Thursday, the siren will sound at 06:00, 9:30 and 15:15, to give an example

you start like this:
image
and then you use if block with or and and to compare everything you need!

Could you give me a graphic example with the complete example parameters, because the truth is that I don’t know how to do it, sorry.

what you need to do:

If weekday = monday or weekday = tuesday or weekday = wednesday or weekday = thursday

do
if hour = 6 and minute =0 or hour = 9 and minute = 30 or hour = 15 and minute = 15

do
set sirena attribute to ON
else

else

this is basicly what you need to see on your screen with the different block, unfortunately i can’t do it myself to give you a screen shot.

Okay perfect, this is exactly what I need, the only thing I don’t know how to enter the days once indicated that I need the day of the week and I don’t know how to enter the time either.

1)your trigger must be on minutes, not even minute
2)you will have to add multiple or and and to make it work, and to check for weekday and hour and minute, you have to see almost exactly what i write :wink:
3) for comparaison you should add a = with a text after for the week day