Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plex user sensor:
- - platform: template
- sensors:
- plex_users:
- value_template: >-
- {% for attr in states.sensor.plex.attributes %}
- {%- if not attr=="friendly_name" and not attr=="unit_of_measurement" and not attr=="icon" -%}
- {{attr}} is watching {{states.sensor.plex.attributes [attr]}}
- {%- endif %}
- {%- endfor -%}
- plex lovelace card:
- - type: custom:vertical-stack-in-card
- title: Plex
- cards:
- - type: custom:mini-graph-card
- entities:
- - sensor.plex
- height: 50
- font_size: 60
- show:
- labels: false
- name: false
- icon: false
- color_thresholds:
- - value: 1
- color: "#64f211"
- - value: 2
- color: "#f1f111"
- - value: 3
- color: "#c0392b"
- - value: 4
- color: "#f09b11"
- - value: 5
- color: "#ef5710"
- - value: 6
- color: "#ef0f0f"
- - type: conditional
- conditions:
- - entity: sensor.plex
- state_not: '0'
- card:
- type: custom:useful-markdown-card
- content: >
- [[ sensor.plex_users.state ]]
- pi-hole switch:
- # PiHole
- - platform: command_line
- switches:
- pihole_switch:
- command_on: "curl -X GET 'http://XXX.XXX.X.XX:XXXX/admin/api.php?enable&auth=KEY'"
- command_off: "curl -X GET 'http://XXX.XXX.X.XX:XXXX/admin/api.php?disable=3600&auth=KEY'"
- command_state: "curl -X GET 'XXX.XXX.X.XX:XXXX/admin/api.php?status&auth=KEY'"
- value_template: "{{ value_json.status == 'enabled' }}"
- pi-hole lovelace card:
- - type: custom:vertical-stack-in-card
- title: Pi-Hole
- cards:
- - type: custom:mini-graph-card
- entities:
- - sensor.pi_hole_ads_blocked_today
- height: 50
- font_size: 60
- show:
- name: true
- state: true
- icon: false
- - type: glance
- show_name: false
- show_state: false
- columns: 2
- entities:
- - entity: switch.pihole_switch
- icon: mdi:cancel
- tap_action:
- action: toggle
- - entity: switch.pausepihole
- icon: mdi:pause
- tap_action:
- action: toggle
- docker lovelace card:
- - type: custom:vertical-stack-in-card
- title: Docker
- cards:
- - type: glance
- show_name: true
- show_state: false
- columns: 3
- entities:
- - entity: switch.piholedocker
- name: Pi-Hole
- icon: mdi:chart-pie
- tap_action:
- action: more-info
- - entity: switch.mariadbdocker
- name: MariaDB
- icon: mdi:database
- tap_action:
- action: more-info
- - entity: switch.mosquittodocker
- name: Mosquitto
- icon: mdi:message
- tap_action:
- action: more-info
- - entity: switch.dockermonitor
- name: Monitor
- icon: mdi:monitor
- tap_action:
- action: more-info
- - entity: switch.portainerdocker
- name: Portainer
- icon: mdi:file-document-box-multiple-outline
- tap_action:
- action: more-info
- - entity: switch.letsencryptdocker
- name: Lets Encrypt
- icon: mdi:lock-plus
- tap_action:
- action: more-info
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement