{"id":12902,"date":"2023-07-01T09:06:07","date_gmt":"2023-07-01T16:06:07","guid":{"rendered":"https:\/\/smarthomesolver.com\/reviews\/?p=12902"},"modified":"2023-07-01T09:06:08","modified_gmt":"2023-07-01T16:06:08","slug":"room-presence-temperature-automation","status":"publish","type":"post","link":"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/","title":{"rendered":"Room Presence Temperature Automation"},"content":{"rendered":"\n<p>Here is the YAML code and template sensors I used for the automations. <\/p>\n\n\n\n<p>I have three HVAC zones in my house and each zone has two automations. One to make it colder if someone is in the area. The second is to make it warm. <\/p>\n\n\n\n<p>This is the first automation to cool down the kitchen area. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Kitchen Climate Control On\ndescription: \"\"\ntrigger:\n  - platform: state\n    entity_id:\n      - binary_sensor.presence_sensor_fp2_8576_presence_sensor_1\n    to: \"on\"\n    for:\n      hours: 0\n      minutes: 3\n      seconds: 0\n  - platform: state\n    entity_id:\n      - sensor.hvac_reed_area\n    to: hvac_kitchen\n    for:\n      hours: 0\n      minutes: 3\n      seconds: 0\ncondition:\n  - condition: or\n    conditions:\n      - condition: state\n        entity_id: climate.kitchen\n        attribute: preset_mode\n        state: Home\n      - condition: state\n        entity_id: climate.kitchen\n        attribute: preset_mode\n        state: Normal Cool\n  - condition: time\n    after: \"07:00:00\"\n    before: \"23:55:00\"\naction:\n  - choose:\n      - conditions:\n          - condition: state\n            entity_id: sensor.hvac_reed_area\n            state: hvac_kitchen\n        sequence:\n          - device_id: abcdefg1234567\n            domain: climate\n            entity_id: climate.kitchen\n            type: set_preset_mode\n            preset_mode: Really Cool\n      - conditions:\n          - condition: state\n            entity_id: climate.kitchen\n            attribute: preset_mode\n            state: Home\n        sequence:\n          - device_id: abcdefg1234567\n            domain: climate\n            entity_id: climate.kitchen\n            type: set_preset_mode\n            preset_mode: Normal Cool\n    default: &#91;]\nmode: single\n<\/code><\/pre>\n\n\n\n<p>I&#8217;m using ecobee thermostats and it&#8217;s just changing the temperature using the presets in the ecobee app. As I mentioned in the video this automation does not run when the thermostat is changed manually. That is because there is a condition to make sure it&#8217;s in the &#8220;Home&#8221; preset or the &#8220;Normal Cool&#8221; preset. <\/p>\n\n\n\n<p>When the temperature is changed manually it overrides the preset and sets it to something else so that would make this automation not run. But, if the manual temperature is &#8220;cleared&#8221; on the thermostat, the preset goes back to &#8220;Home&#8221;. <\/p>\n\n\n\n<p>This automation turns the temperature back up if no one is in the area. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Kitchen Climate Low Power\ndescription: \"\"\ntrigger:\n  - platform: state\n    entity_id:\n      - binary_sensor.presence_sensor_fp2_8576_presence_sensor_1\n    to: \"off\"\n    for:\n      hours: 0\n      minutes: 10\n      seconds: 0\n  - platform: state\n    entity_id:\n      - sensor.hvac_reed_area\n    for:\n      hours: 0\n      minutes: 10\n      seconds: 0\n    from: hvac_kitchen\ncondition:\n  - condition: or\n    conditions:\n      - condition: state\n        entity_id: climate.kitchen\n        attribute: preset_mode\n        state: Really Cool\n      - condition: state\n        entity_id: climate.kitchen\n        attribute: preset_mode\n        state: Normal Cool\n  - condition: time\n    after: \"07:00:00\"\n    before: \"23:55:00\"\n  - condition: device\n    device_id: abcdefg1234567\n    domain: media_player\n    entity_id: media_player.denon_avr_x4700h\n    type: is_off\naction:\n  - choose:\n      - conditions:\n          - condition: state\n            entity_id: sensor.hvac_reed_area\n            state: hvac_kitchen\n        sequence: &#91;]\n      - conditions:\n          - condition: state\n            entity_id: binary_sensor.presence_sensor_fp2_8576_presence_sensor_1\n            state: \"on\"\n            for:\n              hours: 0\n              minutes: 3\n              seconds: 0\n        sequence:\n          - device_id: abcdefg1234567\n            domain: climate\n            entity_id: climate.kitchen\n            type: set_preset_mode\n            preset_mode: Normal Cool\n    default:\n      - service: ecobee.resume_program\n        data:\n          resume_all: false\n          entity_id: climate.kitchen\nmode: single\n<\/code><\/pre>\n\n\n\n<p>This can be done in many different ways but to keep it simple I just have the default &#8220;Home&#8221; preset on the ecobee be slightly warm. Then if no one is in the room it calls &#8220;ecobee.resume_program&#8221; which makes it go back to the &#8220;Home&#8221; mode. <\/p>\n\n\n\n<p>I also have a few template sensors to make these automations easy. If you want a more detailed explanation on how these work check out the video I just made on them. <a href=\"https:\/\/youtu.be\/g53jpdWoXVk\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/youtu.be\/g53jpdWoXVk<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- platform: template\n  sensors:\n    reed_room:\n      friendly_name: \"Reed current room\"\n      value_template: >\n        {% if is_state(\"input_boolean.reed_phone_charging\", \"on\") and (states.sensor.iphone_reed_esp.state != \"not_home\") -%}\n          {{(states.sensor.apple_watch_reed.state)}}\n        {%- else -%}\n          {{(states.sensor.iphone_reed_esp.state)}}\n        {%- endif %}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>- platform: template\n  sensors:\n    hvac_reed_area:\n      friendly_name: \"HVAC Reed Area\"\n      value_template: >\n        {% if (states.sensor.reed_room.state == \"bedroom_esp\") or (states.sensor.reed_room.state == \"closet_esp\") -%}\n          hvac_master_bedroom \n        {% elif (states.sensor.reed_room.state == \"kitchen_esp\") or (states.sensor.reed_room.state == \"living_room_esp\") -%}\n          hvac_kitchen\n        {% elif (states.sensor.reed_room.state == \"studio_esp\") or (states.sensor.reed_room.state == \"office_esp\") or (states.sensor.reed_room.state == \"kids_esp\") -%}\n          hvac_bedrooms\n        {%- else -%}\n          hvac_none\n        {%- endif %}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is the YAML code and template sensors I used for the automations. I have three HVAC zones in my house and each zone has two automations. One to make it colder if someone is in the area. The second <a href=\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\"><\/p>\n<div class=\"read-more\">\n<p>Read more &#8250;<\/p>\n<\/div>\n<p><!-- end of .read-more --><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Room Presence Temperature Automation | Smart Home Solver<\/title>\n<link rel=\"canonical\" href=\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Room Presence Temperature Automation | Smart Home Solver\" \/>\n<meta property=\"og:description\" content=\"Here is the YAML code and template sensors I used for the automations. I have three HVAC zones in my house and each zone has two automations. One to make it colder if someone is in the area. The second Read more &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\" \/>\n<meta property=\"og:site_name\" content=\"Smart Home Solver\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-01T16:06:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-01T16:06:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"3 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"name\":\"Smart Home Solver\",\"description\":\"Smart Home Solver\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/smarthomesolver.com\/reviews\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/#webpage\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\",\"name\":\"Room Presence Temperature Automation | Smart Home Solver\",\"isPartOf\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\"},\"datePublished\":\"2023-07-01T16:06:07+00:00\",\"dateModified\":\"2023-07-01T16:06:08+00:00\",\"author\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\"},\"breadcrumb\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/room-presence-temperature-automation\/\",\"name\":\"Room Presence Temperature Automation\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\",\"name\":\"Reed Kleinman\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#personlogo\",\"inLanguage\":\"en\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f0b2a85b039ba9da5470ee40dc5ab57a?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f0b2a85b039ba9da5470ee40dc5ab57a?s=96&r=g\",\"caption\":\"Reed Kleinman\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/12902"}],"collection":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/comments?post=12902"}],"version-history":[{"count":1,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/12902\/revisions"}],"predecessor-version":[{"id":12903,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/12902\/revisions\/12903"}],"wp:attachment":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/media?parent=12902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/categories?post=12902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/tags?post=12902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}