Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
theneweinstein committed Aug 16, 2021
1 parent 0b06ed0 commit 3d9465a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 74 deletions.
102 changes: 28 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,85 +18,39 @@ to your ```configuration.yaml```.
Add a "manual" card into lovelace UI and copy paste the following code. It will create a card for the first Somneo Alarm (alarm0).
Other cards can be created for other alarms (alarm1, alarm2, etc.)
```
type: vertical-stack
cards:
- type: entities
entities:
- entity: switch.somneo_alarm0
name: On/Off
- type: custom:slider-entity-row
entity: number.somneo_alarm0_hours
hide_state: false
- type: custom:slider-entity-row
entity: number.somneo_alarm0_minutes
hide_state: false
title: Alarm Yoga
show_header_toggle: false
- type: horizontal-stack
cards:
- type: button
tap_action:
action: toggle
hold_action:
action: none
show_icon: true
show_name: true
icon_height: 40px
name: workdays
show_state: true
entity: switch.somneo_workdays_alarm0
- type: button
tap_action:
action: toggle
hold_action:
action: none
show_icon: true
show_name: true
icon_height: 40px
entity: switch.somneo_weekend_alarm0
name: Week-ends
show_state: true
type: entities
entities:
- entity: switch.somneo_alarm0
name: On/Off
- type: custom:slider-entity-row
entity: number.somneo_alarm0_hours
hide_state: false
name: Hours
- type: custom:slider-entity-row
entity: number.somneo_alarm0_minutes
hide_state: false
name: Minutes
- entity: select.somneo_alarm0_days
name: Days
title: Alarm work
show_header_toggle: false
```
<img src="https://github.com/theneweinstein/somneo/blob/master/lovelace1.jpg" alt="Example Lovelace Slider" width="80%"/>

### Without slider-entity-row from HACS

```
type: vertical-stack
cards:
- type: entities
entities:
- entity: switch.somneo_alarm0
name: On/Off
- entity: number.somneo_alarm0_hours
hide_state: false
- entity: number.somneo_alarm0_minutes
hide_state: false
title: Alarm Yoga
show_header_toggle: false
- type: horizontal-stack
cards:
- type: button
tap_action:
action: toggle
hold_action:
action: none
show_icon: true
show_name: true
icon_height: 40px
name: workdays
show_state: true
entity: switch.somneo_workdays_alarm0
- type: button
tap_action:
action: toggle
hold_action:
action: none
show_icon: true
show_name: true
icon_height: 40px
entity: switch.somneo_weekend_alarm0
name: Week-ends
show_state: true
type: entities
entities:
- entity: switch.somneo_alarm0
name: On/Off
- entity: number.somneo_alarm0_hours
name: Hours
- entity: number.somneo_alarm0_minutes
name: Minutes
- entity: select.somneo_alarm0_days
name: Days
title: Alarm work
show_header_toggle: false
```
<img src="https://github.com/theneweinstein/somneo/blob/master/lovelace2.jpg" alt="Example Lovelace" width="80%"/>
Binary file modified lovelace1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lovelace2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d9465a

Please sign in to comment.