Skip to content

Commit

Permalink
added workday sensors to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Jul 20, 2018
1 parent f16ca76 commit 171e4c9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
9 changes: 7 additions & 2 deletions binary_sensor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
- platform: workday
name: workday
name: workday_today
country: DE
province: HE
province: HE
- platform: workday
name: workday_tomorrow
country: DE
province: HE
offset: 1
17 changes: 17 additions & 0 deletions customize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,23 @@ sensor.pollen_101_birke_tomorrow:
icon: mdi:tree
sensor.pollen_101_birke_dayaftertomorrow:
icon: mdi:tree
binary_sensor.workday_today:
friendly_name: Ist Heute ein Arbeitstag?
templates:
icon: >
if ( state === 'on' ) {
return "mdi:briefcase";
} else if ( state === 'off' ) {
return "mdi:beach";
}
state: >
if ( state === 'on' ) {
return "Ja";
} else if ( state === 'off' ) {
return "Nein";
}
binary_sensor.workday_tomorrow:
friendly_name: Ist Morgen ein Arbeitstag?
#################################################################
## Android IP Webcam
#################################################################
Expand Down
2 changes: 2 additions & 0 deletions group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ alarm:
- input_boolean.wakemeup
- input_boolean.naturalwakeup
- input_boolean.alarmweekday
- binary_sensor.binary_sensor.workday_today
- binary_sensor.binary_sensor.workday_tomorrow
#################################################################
## Synonym
#################################################################
Expand Down

0 comments on commit 171e4c9

Please sign in to comment.