|
|
|
@ -70,11 +70,40 @@ sections:
|
|
|
|
action: none
|
|
|
|
action: none
|
|
|
|
layout: horizontal
|
|
|
|
layout: horizontal
|
|
|
|
fill_container: true
|
|
|
|
fill_container: true
|
|
|
|
- type: tile
|
|
|
|
# Fallback card: Mushroom renders optional schedule details from the controller
|
|
|
|
entity: switch.daily_flex_watering_schedule
|
|
|
|
# summary sensor so a missing native schedule switch does not break the view.
|
|
|
|
name: Flex watering schedule
|
|
|
|
- type: custom:mushroom-template-card
|
|
|
|
hold_action:
|
|
|
|
primary: >-
|
|
|
|
|
|
|
|
{% set summary = state_attr('sensor.rachio_controller_status', 'schedule_summary') %}
|
|
|
|
|
|
|
|
{% set schedule_state = state_attr('sensor.rachio_active_zone', 'schedule_state') %}
|
|
|
|
|
|
|
|
{% if summary not in ['unknown', 'unavailable', 'none', '', none] %}
|
|
|
|
|
|
|
|
Schedule: {{ summary }}
|
|
|
|
|
|
|
|
{% elif schedule_state not in ['unknown', 'unavailable', 'none', '', none] %}
|
|
|
|
|
|
|
|
Schedule: {{ schedule_state | title }}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
Schedule not exposed
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
secondary: >-
|
|
|
|
|
|
|
|
{% set duration = state_attr('sensor.rachio_controller_status', 'schedule_duration') %}
|
|
|
|
|
|
|
|
{% set schedule_type = state_attr('sensor.rachio_controller_status', 'schedule_type') %}
|
|
|
|
|
|
|
|
{% if schedule_type not in ['unknown', 'unavailable', 'none', '', none] and duration not in ['unknown', 'unavailable', 'none', '', none] %}
|
|
|
|
|
|
|
|
{{ schedule_type }} - {{ duration }}
|
|
|
|
|
|
|
|
{% elif duration not in ['unknown', 'unavailable', 'none', '', none] %}
|
|
|
|
|
|
|
|
{{ duration }}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
Controller schedule details are unavailable.
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
icon: mdi:calendar-clock
|
|
|
|
|
|
|
|
entity: sensor.rachio_controller_status
|
|
|
|
|
|
|
|
icon_color: blue
|
|
|
|
|
|
|
|
tap_action:
|
|
|
|
action: more-info
|
|
|
|
action: more-info
|
|
|
|
|
|
|
|
hold_action:
|
|
|
|
|
|
|
|
action: none
|
|
|
|
|
|
|
|
double_tap_action:
|
|
|
|
|
|
|
|
action: none
|
|
|
|
|
|
|
|
layout: horizontal
|
|
|
|
|
|
|
|
fill_container: true
|
|
|
|
- type: tile
|
|
|
|
- type: tile
|
|
|
|
entity: switch.carlo_rachio_rain_delay
|
|
|
|
entity: switch.carlo_rachio_rain_delay
|
|
|
|
name: Rain delay
|
|
|
|
name: Rain delay
|
|
|
|
|