Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guest room TRV support #272

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2963966
Guest room TRV
kylegordon Feb 14, 2021
3d7d897
Merge branch 'master' into guest-room-trv
kylegordon Feb 14, 2021
5f0af21
Mini climate card
kylegordon Feb 14, 2021
6b4b87b
too many keys
kylegordon Feb 15, 2021
848bf04
Programmable thermostat custom component
kylegordon Feb 15, 2021
1e84dd7
Testing with programmable climate
kylegordon Feb 15, 2021
798ecd8
Doesn't create
kylegordon Feb 15, 2021
2d3bf5e
Merge branch 'master' into guest-room-trv
kylegordon Feb 15, 2021
303b3a9
Use proposed Call-For-Heat switch
kylegordon Feb 16, 2021
d33de82
Merge branch 'guest-room-trv' of github.com:kylegordon/home-assistant…
kylegordon Feb 16, 2021
3e71b6d
Merge branch 'master' into guest-room-trv
kylegordon Feb 16, 2021
e22b89e
Merge branch 'guest-room-trv' of github.com:kylegordon/home-assistant…
kylegordon Feb 16, 2021
6889e74
Simple thermostat resource
kylegordon Feb 16, 2021
4a6e043
Doh, move to correct location
kylegordon Feb 16, 2021
3248d23
stabbing in the dark
kylegordon Feb 16, 2021
0e07e5f
Current state
kylegordon Feb 27, 2021
ebaebf7
Call set_temperature action with the new target temperature
kylegordon Feb 27, 2021
64d61a5
Dampen user input
kylegordon Feb 27, 2021
23a9fdd
Fix maths
kylegordon Feb 27, 2021
ff6b43f
Remove cruft
kylegordon Feb 27, 2021
185399e
Merge branch 'master' into guest-room-trv
kylegordon Feb 28, 2021
66d1422
Temporary template switch
kylegordon Mar 4, 2021
f112ca2
Merge branch 'master' into guest-room-trv
kylegordon Apr 27, 2021
0d1b7d0
Merge branch 'master' into guest-room-trv
kylegordon May 3, 2021
600acd3
Merge branch 'master' into guest-room-trv
kylegordon Jun 2, 2021
78a65a2
Merge branch 'master' into guest-room-trv
kylegordon Jun 2, 2021
e329b53
Merge branch 'master' into guest-room-trv
kylegordon Aug 21, 2021
c9ebcf9
Merge branch 'master' into guest-room-trv
kylegordon Sep 13, 2021
8265d76
Merge branch 'master' into guest-room-trv
kylegordon Sep 20, 2021
a9f2c1d
Merge branch 'master' into guest-room-trv
kylegordon Oct 4, 2021
3a0ce97
Merge branch 'master' into guest-room-trv
kylegordon Oct 4, 2021
3940d78
Fix indent
kylegordon Oct 18, 2021
4018e0b
Merge branch 'master' into guest-room-trv
kylegordon Oct 22, 2021
ea71ca8
Merge branch 'guest-room-trv' of github.com:kylegordon/home-assistant…
kylegordon Oct 22, 2021
8b908ae
Merge branch 'master' into guest-room-trv
kylegordon Oct 22, 2021
f66a7a2
Merge branch 'master' into guest-room-trv
kylegordon Oct 22, 2021
e82577c
Use new input_boolean
kylegordon Oct 22, 2021
e16f8e5
Merge branch 'guest-room-trv' of github.com:kylegordon/home-assistant…
kylegordon Oct 22, 2021
9cd8a19
Use input_boolean call, and tidy up sensor
kylegordon Oct 22, 2021
ef30077
Keep yamllint happy for now
kylegordon Oct 22, 2021
279ea96
Merge branch 'master' into guest-room-trv
kylegordon Oct 22, 2021
98289c3
Remove guest room from overall zone
kylegordon Oct 22, 2021
6e51b12
Merge branch 'guest-room-trv' of github.com:kylegordon/home-assistant…
kylegordon Oct 22, 2021
f93afd3
Don't include guest room in house average
kylegordon Oct 30, 2021
447a756
Merge branch 'guest-room-trv' of github.com:kylegordon/home-assistant…
kylegordon Oct 30, 2021
e986eb8
Merge branch 'master' into guest-room-trv
kylegordon Nov 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions packages/guest_room_climate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
sensor:
- platform: template
sensors:
guest_bedroom_trv_temperature:
friendly_name: "Guest Bedroom TRV Current Temperature"
value_template: "{{ state_attr('climate.guest_bedroom_trv', 'current_temperature') }}"
unit_of_measurement: '°C'
device_class: temperature
guest_room_trv_offset:
friendly_name: Guest Room TRV Offset
value_template: '{{ ((states.sensor.guest_room_temperature.state | float) - (states.sensor.guest_bedroom_trv_temperature.state | float)) }}'
unit_of_measurement: '°C'
device_class: temperature
guest_room_fake_temperature:
friendly_name: Guest Room Fake TRV Temperature
value_template: '{{ (states.sensor.guest_bedroom_trv_temperature.state | float) + (states.sensor.guest_room_trv_offset.state | float) }}'
unit_of_measurement: '°C'
device_class: temperature
guest_room_target_temperature:
friendly_name: Guest Room Target
value_template: "{{ ( state_attr('climate.guest_room', 'temperature') | float) - (states.sensor.guest_room_trv_offset.state | float) }}"

climate:
- platform: generic_thermostat
name: Guest Room
heater: input_boolean.call_for_guest_heat
target_sensor: sensor.guest_room_fake_temperature
min_temp: 10
max_temp: 25
away_temp: 15

automation:
trigger:
platform: state
entity_id: sensor.guest_room_target_temperature
for:
seconds: 10
action:
- service: climate.set_temperature
data:
entity_id: climate.guest_bedroom_trv
temperature: "{{ trigger.to_state.state | float }}"
1 change: 0 additions & 1 deletion sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
entity_ids:
- sensor.kitchen_temperature
- sensor.craft_room_temperature
- sensor.guest_room_temperature
- sensor.living_room_temperature
- sensor.master_bedroom_temperature
- sensor.nook_temperature
Expand Down