55[ ![ Downloads] ( https://img.shields.io/npm/dm/iobroker.time-switch.svg )] ( https://www.npmjs.com/package/iobroker.time-switch )
66[ ![ Dependency Status] ( https://img.shields.io/david/walli545/iobroker.time-switch.svg )] ( https://david-dm.org/walli545/iobroker.time-switch )
77[ ![ Known Vulnerabilities] ( https://snyk.io/test/github/walli545/ioBroker.time-switch/badge.svg )] ( https://snyk.io/test/github/walli545/ioBroker.time-switch )
8+ [ ![ Travis-CI] ( http://img.shields.io/travis/walli545/ioBroker.time-switch/master.svg )] ( https://travis-ci.org/walli545/ioBroker.time-switch )
9+ [ ![ codecov] ( https://codecov.io/gh/walli545/ioBroker.time-switch/branch/master/graph/badge.svg )] ( https://codecov.io/gh/walli545/ioBroker.time-switch )
810
911[ ![ NPM] ( https://nodei.co/npm/iobroker.time-switch.png?downloads=true )] ( https://nodei.co/npm/iobroker.time-switch/ )
1012
11- ** Tests:** : [ ![ Travis-CI] ( http://img.shields.io/travis/walli545/ioBroker.time-switch/master.svg )] ( https://travis-ci.org/walli545/ioBroker.time-switch )
1213
1314## time-switch adapter for ioBroker
1415
1516This adapter allows the user to switch devices on and off using time schedules.
1617The schedules can be fully configured by a vis widget.
17- One schedule switches one ioBroker state and consists of one or more actions that define when and how the state should be switched.
18- It is possible to configure at which time and on which weekdays the action should be triggered. There can be custom on/off values also.
18+ One schedule switches one or more ioBroker states and consists of one or more triggers that define when and how the state should be switched.
19+ It is possible to configure at which time and on which weekdays the trigger should be triggered. There can be custom on/off values also.
1920In the widget the schedule can be disabled temporarily and the switched state can be controlled manually.
2021
2122![ Preview] ( widgets/time-switch/img/prev/prev-device-schedule.jpg )
2223
23- ## How to setup a schedule
24+ ## Setup
2425
25- 1 . Install the adapter and create an instance (one instance can handle many schedules)
26- 2 . Go to the instance settings and click "Add schedule" to create a new schedule (one schedule can switch one ioBroker state).
27-
28- Keep the schedule OID of the newly created schedule in mind, we will need that later.
29- 3 . Now go to the vis editor and open the view where the schedule should be visible.
30- Create a new "Device-Schedule" widget and adjust it's size and position to fit your layout.
31- 4 . Now configure the widget with the following properties found under the "Common" attributes:
32-
33- - dataId: Open the select OID dialog and select the schedule OID that you remembered earlier. It can be found under "time-switch.0".
34- - stateId: Select the OID of the state that should be switched by the schedule, e.g. on/off status of a wall plug.
35- - onValue/offValue: Enter the values that represent the devices on/off state, e.g. 0/1, true/false, ON/OFF, ... .
36- 5 . Everything else can be configured in the view part of the widget.
37-
38- - Enable/Disable automatic switching
39- - Change the current value of the state
40- - Add/Delete/Edit actions
41- - Change the heading of the schedule plan
26+ For setup instructions visit the [ wiki] ( https://github.com/walli545/ioBroker.time-switch/wiki ) (German instructions available also).
4227
4328## Possible features in the future
4429
4530- Translations for schedule widget
4631- Astro actions (switch on sunrise, etc.)
4732- Conditional actions
48- - Switching for device groups
4933- Switching of arbitrary values
5034
5135## Changelog
5236
37+ ### 2.0.0
38+ ** Attention** : Due to breaking changes in the schedule data structure, schedules created with versions 1.x are not compatible with 2.x.
39+
40+ * Before upgrading, remove all schedules in the instance settings and remove widgets in vis.*
41+ * (walli545)
42+ * Value type can now be configured, this enables switching of real booleans and numbers (#19 )
43+ * Added a new state for each schedule to disable/enable automatic switching (#24 )
44+ * Added option to hide current value switch in widget (#23 )
45+ * Switching of multiple states with one schedule. This allows the creation of groups for devices of the same type.
46+ * Added translations to widget (#35 )
47+ * Fixed widget not working on Safari and fully browser
48+
5349### 1.1.0
5450* (walli545)
5551 * New option to hide switched oid in widget (#20 )
@@ -65,7 +61,7 @@ In the widget the schedule can be disabled temporarily and the switched state ca
6561## License
6662MIT License
6763
68- Copyright (c) 2019 walli545 < walli5446@gmail.com >
64+ Copyright (c) 2020 walli545 < walli5446@gmail.com >
6965
7066Permission is hereby granted, free of charge, to any person obtaining a copy
7167of this software and associated documentation files (the "Software"), to deal
0 commit comments