Skip to content

Commit

Permalink
update popup
Browse files Browse the repository at this point in the history
  • Loading branch information
matt8707 committed Aug 8, 2020
1 parent fa1f9f8 commit 0ec2fb0
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 46 deletions.
6 changes: 2 additions & 4 deletions popup/hemma_data_kwh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
- entity: sensor.oresundskraft_year
style: |
:host {
--paper-item-icon-color:
#405914;
--paper-item-icon-color: #405914;
}
ha-card {
margin-left: 50%;
Expand All @@ -27,8 +26,7 @@
- entity: sensor.oresundskraft_last_year
style: |
:host {
--paper-item-icon-color:
#323637;
--paper-item-icon-color: #323637;
}
- type: custom:mod-card
Expand Down
70 changes: 52 additions & 18 deletions popup/hemma_mattias.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,64 @@
type: custom:stack-in-card
cards:
- type: entities
state_color: true
show_header_toggle: false
entities:

- entity: person.mattias
secondary_info: last-changed

- type: history-graph
entities: [entity: person.mattias]
hours_to_show: 24
refresh_interval: 0
- type: custom:hui-element
card_type: history-graph
entities: [entity: person.mattias]
hours_to_show: 24
refresh_interval: 0

- type: glance
show_state: false
entities:
- entity: device_tracker.mattias
name: Router
icon: mdi:wifi
- entity: device_tracker.mattias_bluetooth
name: Bluetooth
icon: mdi:bluetooth
- entity: device_tracker.iphone
name: Position
icon: custom:iphone-modern

- type: map
- type: custom:hui-element
card_type: glance
show_state: false
entities:

- entity: device_tracker.mattias
name: Router
icon: mdi:wifi

- entity: device_tracker.mattias_bluetooth
name: Bluetooth
icon: mdi:bluetooth

- entity: device_tracker.iphone
name: Position
icon: custom:iphone-modern

- type: custom:hui-element
card_type: horizontal-stack
style: |
#root {
justify-content: space-evenly;
margin: -0.5em 0 0.5em 0;
}
cards:

- type: custom:button-card
name: >
<ha-icon icon="mdi:volume-high"></ha-icon> Spela upp ljud på iPhone X
tap_action:
action: call-service
service: notify.mobile_app_iphone
service_data:
title: Hitta min iPhone
message: Här är jag
data:
push:
sound:
name: Ringtone_UK_Haptic.caf
critical: 1
volume: 1.0
template: name_action

- type: custom:hui-element
card_type: map
entities: [device_tracker.iphone]
default_zoom: 15
style: |
Expand Down
42 changes: 23 additions & 19 deletions popup/hemma_sanja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,36 @@
card:
type: custom:stack-in-card
cards:

- type: entities
state_color: true
show_header_toggle: false
entities:

- entity: person.sanja
secondary_info: last-changed

- type: history-graph
entities: [entity: person.sanja]
hours_to_show: 24
refresh_interval: 0
- type: custom:hui-element
card_type: history-graph
entities: [entity: person.sanja]
hours_to_show: 24
refresh_interval: 0

- type: glance
show_state: false
entities:
- entity: device_tracker.sanja
name: Router
icon: mdi:wifi
- entity: device_tracker.sanja_bluetooth
name: Bluetooth
icon: mdi:bluetooth
- entity: sensor.placeholder
name: Position
icon: mdi:help
- type: custom:hui-element
card_type: glance
show_state: false
entities:

- type: entities
entities:
- entity: device_tracker.sanja
name: Router
icon: mdi:wifi

- entity: device_tracker.sanja_bluetooth
name: Bluetooth
icon: mdi:bluetooth

- entity: sensor.placeholder
name: Position
icon: mdi:help

- entity: sensor.printer_status

Expand Down
2 changes: 1 addition & 1 deletion popup/sidebar_information.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

- entity: sensor.fullykiosk_plugged

- entity: sensor.fullykiosk_motion
- entity: binary_sensor.fullykiosk_motion

- type: custom:bar-card
width: 55%
Expand Down
3 changes: 1 addition & 2 deletions popup/sidebar_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
{% if states('sensor.hass_version_latest') == states('sensor.hass_release_notes') %}
{{- state_attr('sensor.hass_release_notes', 'body') }}
{% else %}
{% endif %}
{% endif %}

Expand All @@ -87,7 +86,7 @@
card_type: markdown
content: >
<span><ha-icon icon="hacs:hacs"></ha-icon> Community Store {{ states('sensor.hacs_version') }}</span><br>
{% if is_state('sensor.hacs', '0') %}
{% if is_state('sensor.hacs', '0') or is_state('sensor.hacs', 'unknown') %}
<b>Inga uppdateringar</b>
{% else %}
<b>{{ states('sensor.hacs') }} {{ 'uppdatering tillgänglig' if is_state('sensor.hacs', '1')
Expand Down
4 changes: 2 additions & 2 deletions popup/studio_monitorer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
style: |
:host {
--paper-item-icon-color:
{% if is_state('sensor.monitors_mute_check', 'true') %} #FFFFFF20;
{% if is_state('binary_sensor.monitors_mute_check', 'on') %} #FFFFFF20;
{% elif states(config.entity) | int == 0 %} #9da0a2;
{% elif states(config.entity) | int < 60 %} #3182b7;
{% else %} red;
{% endif %}
}
- entity: automation.turn_off_monitorer
- entity: automation.turn_off_monitors

- entity: automation.eq_calibration

Expand Down

0 comments on commit 0ec2fb0

Please sign in to comment.