- Platform information:
- Hardware: CPUArchitecture/RAM/storage
Rasberry Pi - OS: what OS is used and which version
Linux openhabian 6.1.21-v8 - Java Runtime Environment: which java platform is used and what version
- openHAB version:
4.1
- Hardware: CPUArchitecture/RAM/storage
- Issue of the topic: please be detailed explaining your issue
I am trying to create a simple rule that switches off my office screens every night at 8pm and switches them on again at 8am but only if not a holiday or weekend. I created two rules (see below). One to switch off at 8pm and one to switch on at 8 am on certain days under the condition that it is NOT a holiday.
However, if I switch the Plug off manually and run the second rule (for switching ‘ON’), it runs and switches the plug on, although it is a Saturday. In my understanding, the script should not even run on a workday, because it is also not 8:00 am.
Can someone point me in the right direction?
-
Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
Rule to switch ‘OFF’
configuration: {}
triggers:
- id: "1"
configuration:
time: 20:00
type: timer.TimeOfDayTrigger
conditions:
- inputs: {}
id: "3"
configuration:
offset: 0
type: ephemeris.WeekdayCondition
actions:
- inputs: {}
id: "2"
configuration:
command: ""
itemName: tasmota_office_tasmota_office_switch
type: core.ItemCommandAction
Rule to switch ‘ON’
configuration: {}
triggers:
- id: "1"
configuration:
time: 08:00
type: timer.TimeOfDayTrigger
conditions:
- inputs: {}
id: "3"
configuration:
days:
- TUE
- WED
- THU
- FRI
type: timer.DayOfWeekCondition
- inputs: {}
id: "4"
configuration:
offset: 0
type: ephemeris.NotHolidayCondition
actions:
- inputs: {}
id: "2"
configuration:
command: ON
itemName: tasmota_office_tasmota_office_switch
type: core.ItemCommandAction
- Services configuration related to the issue
- If logs where generated please post these here using code fences: