Add titanium via IOTLink

This commit is contained in:
2020-04-24 00:04:19 +03:00
parent 6d2b63ac8b
commit b9f133794d
10 changed files with 395 additions and 34 deletions
@@ -9,12 +9,9 @@
- type: custom:decluttering-card
template: floorplan_state_icon
variables:
- entity: binary_sensor.titanium
- entity: switch.titanium_power
- top: 62%
- left: 81%
- tap_action:
action: call-service
service: script.titanium_start
# Platinum
- type: custom:decluttering-card
+3 -3
View File
@@ -37,8 +37,7 @@ cards:
name: Living room
- type: custom:button-card
template: small
entity: light.tuya_hallway_main_lights
name: Hallway
entity: light.pc
- type: horizontal-stack
cards:
- type: custom:button-card
@@ -61,7 +60,8 @@ cards:
name: Kitchen
- type: custom:button-card
template: small
entity: light.pc
entity: light.tuya_hallway_main_lights
name: Hallway
- type: custom:button-card
template: small
entity: light.tuya_hallway_entrance_lights
@@ -100,9 +100,7 @@ cards:
- type: glance
show_state: false
entities:
- binary_sensor.titanium
- entity: script.titanium_start
name: Start
- switch.titanium_power
- type: vertical-stack
cards:
+93 -12
View File
@@ -20,18 +20,99 @@ cards:
cards:
- type: vertical-stack
cards:
- type: entities
title: Titanium
icon: mdi:desktop-tower
entities:
- binary_sensor.titanium
- type: custom:dummy-entity-row
entity: binary_sensor.titanium
tap_action:
action: call-service
service: script.titanium_start
name: Start
icon: mdi:power
- type: vertical-stack
cards:
- type: entities
title: Titanium
icon: mdi:desktop-tower
entities:
- switch.titanium_power
- sensor.titanium_uptime
- binary_sensor.titanium_playing
- sensor.titanium_volume
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.titanium_memory_used_percent
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.titanium_memory_used
name: Memory used
- entity: sensor.titanium_memory_available
name: Memory available
- entity: sensor.titanium_memory_total
name: Memory total
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: "C: Drive"
- entity: sensor.titanium_c_usage
- icon: mdi:harddisk
- orange: 70
- red: 85
entities:
- entity: sensor.titanium_c_used_space
name: "C: Drive used"
- entity: sensor.titanium_c_free_space
name: "C: Drive available"
- entity: sensor.titanium_c_total_space
name: "C: Drive total"
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: script.titanium_lock
name: Lock
icon: mdi:lock
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_vol_mute
name: Mute
icon: mdi:volume-mute
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_set_volume
name: Set volume
icon: mdi:volume-medium
tap_action:
action: toggle
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: script.titanium_displays_on
name: Displays on
icon: mdi:monitor-dashboard
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_displays_off
name: Displays off
icon: mdi:monitor-off
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_refresh
name: Refresh
icon: mdi:refresh
tap_action:
action: toggle
- type: entities
style: |
+97
View File
@@ -458,3 +458,100 @@ sensor.synology_dsm_type_volume_1:
legend: false
tap_action:
action: none
switch.titanium_power:
title: Titanium
style:
<<: *popup_style
card:
type: vertical-stack
cards:
- type: entities
entities:
- switch.titanium_power
- sensor.titanium_uptime
- binary_sensor.titanium_playing
- sensor.titanium_volume
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.titanium_memory_used_percent
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.titanium_memory_used
name: Memory used
- entity: sensor.titanium_memory_available
name: Memory available
- entity: sensor.titanium_memory_total
name: Memory total
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: "C: Drive"
- entity: sensor.titanium_c_usage
- icon: mdi:harddisk
- orange: 70
- red: 85
entities:
- entity: sensor.titanium_c_used_space
name: "C: Drive used"
- entity: sensor.titanium_c_free_space
name: "C: Drive available"
- entity: sensor.titanium_c_total_space
name: "C: Drive total"
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: script.titanium_lock
name: Lock
icon: mdi:lock
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_vol_mute
name: Mute
icon: mdi:volume-mute
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_set_volume
name: Set volume
icon: mdi:volume-medium
tap_action:
action: toggle
- type: horizontal-stack
cards:
- type: custom:button-card
template: small
entity: script.titanium_displays_on
name: Displays on
icon: mdi:monitor-dashboard
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_displays_off
name: Displays off
icon: mdi:monitor-off
tap_action:
action: toggle
- type: custom:button-card
template: small
entity: script.titanium_refresh
name: Refresh
icon: mdi:refresh
tap_action:
action: toggle