Skip to content

Commit

Permalink
chore: readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanSchalton committed Mar 16, 2024
1 parent 70f3014 commit 584468b
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 0 deletions.
162 changes: 162 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,168 @@ climate:
precision: 0.1
```
# Dashboard
## Current Pool Dashboard (for Inspiration)
![Mobile Dashboard](screenshots/mobile-dashboard.png)
### Glance Yaml:
```yaml
show_name: true
show_icon: true
show_state: true
type: glance
entities:
- entity: sensor.ibs_m2_temperature_3
name: Temperature
- entity: sensor.ibs_m2_ch_2_battery
name: Battery
state_color: true
```
### Pump Yaml
`It's disabled right now because the breaker is off for my pool house`
```yaml
type: custom:button-card
name: Pump
show_state: false
show_icon: true
show_name: true
entity: switch.pool_pump_socket_1
icon: mdi:water-pump
state:
- operator: template
value: |
[[[ return entity.state === 'on'; ]]]
styles:
icon:
- color: rgb(16, 30, 194)
- operator: template
value: |
[[[ return entity.state === 'off'; ]]]
icon: mdi:water-pump-off
styles:
icon:
- color: rgb(90, 90, 90)
- operator: template
value: >
[[[ return entity.state === 'unknown'; ]]] # Set "unknown" as the default
state
icon: mdi:alert-circle-outline
styles:
icon:
- color: rgb(255, 0, 0)
tap_action:
action: toggle
```

### Heater

`It's disabled right now because the breaker is off for my pool house`

```yaml
type: custom:button-card
name: Heater
show_state: false
show_icon: true
show_name: true
entity: switch.pool_heater_socket_1
icon: mdi:heat-wave
state:
- operator: template
value: |
[[[ return entity.state === 'on'; ]]]
styles:
icon:
- color: rgb(194, 28, 16)
- operator: template
value: |
[[[ return entity.state === 'off'; ]]]
icon: mdi:heat-wave
styles:
icon:
- color: rgb(90, 90, 90)
- operator: template
value: >
[[[ return entity.state === 'unknown'; ]]] # Set "unknown" as the default
state
icon: mdi:alert-circle-outline
styles:
icon:
- color: rgb(255, 0, 0)
tap_action:
action: toggle
```

# Automations
Turn on the pump anytime the heater is on:
```yaml
- id: 'xxxxxx'
alias: Pump turns on with heater
description: ''
trigger:
- platform: state
entity_id:
- switch.pool_heater_socket_1
attribute: 'On'
condition: []
action:
- type: turn_on
device_id: xxxxxx
entity_id: xxxxxx
domain: switch
mode: single
```

Run the pump for 20 minutes after the heater turns off
```yaml
alias: Turn off pump first
description: ""
trigger:
- platform: device
type: changed_states
device_id: __pump_device_id__
entity_id: __pump_entity_id__
domain: switch
condition:
- condition: device
type: is_on
device_id: __heater_device_id__
entity_id: __heater_entity_id__
domain: switch
action:
- type: turn_on
device_id: __pump_device_id__
entity_id: __pump_entity_id__
domain: switch
- type: turn_off
device_id: __heater_device_id__
entity_id: __heater_entity_id__
domain: switch
- delay:
hours: 0
minutes: 20
seconds: 0
milliseconds: 0
- if:
- condition: device
type: is_off
device_id: __heater_device_id__
entity_id: __heater_entity_id__
domain: switch
then:
- type: turn_off
device_id: __pump_device_id__
entity_id: __pump_entity_id__
domain: switch
mode: restart
```
> This should be improved upon: I could store pump/heater on/off timestamps to action if the pump should stay on after the heater turns off -- I haven't tested this w/ the new themostat controller so they may interact oddly, in which case I'll need to update.

# Other Ideas
1. I'll probably add weather integration that controls the pool temp based on the weather (no point in heating when it's raining or on a particularly cool night or overcast day where we wont want to swim)
2. I happen to have multiple sensors, instead of having one sit on the shelf I'm going to play with creating a sensor that averages the and is used as the `target_sensor` in the climate control.
Binary file added screenshots/mobile-dashboard.png
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 584468b

Please sign in to comment.