Create a Generic Thermostat control for simple temp sensor and binary switch in Home Assistant.

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • Today I share how to create a generic thermostat control in Home Assistant using a simple binary switch and temperature sensor. Such a asimple setup will allow you to control your comfort level with ease.
    === Links ===
    Home Assistant Documentation for Generic Thermostat
    www.home-assistant.io/integra...
    === Timestamps ===
    00:00 Beginning
    00:09 Introduction to the Generic Thermostat Concept
    01:10 The History of my Comfort Chases
    05:00 Setting up the Generic Thermostat
    08:05 Finding the Right Sensor Names
    10:55 Make Configuration Changes take Effect with Restart Core
    11:40 Checking our Changes
    12:30 Adding the Thermostat Card to Lovelace
    13:30 Checking our New Card Function
    15:45 Thank you to my Patrons and Subscribers
    === Contact ===
    Twitter: @mickintx
    Telegram: @MickInTx
    Mastodon: mastodon.partecipa.digital/ @MickInTX
    Try out SSDNodes VPS Services! Amazing Specs for incredibly low costs. I'm running a 32 GB RAM / $ CPU Server for only $9 a month! Seriously. FOr long term server usage, this is the way to go!
    www.ssdnodes.com/manage/aff.p...
    Get a $50.00 credit for Digital Ocean by signing up with this link:
    m.do.co/c/a6a61ae55242
    Use Hover as your Domain Name Registrar to get some great control over you domains / sub-domains:
    hover.com/SHPaiirr
    Support my Channel and ongoing efforts through Patreon:
    www.patreon.com/bePatron?u=23...
    What does the money go to?
    To Pay for Digital Ocean droplets, donations to open source projects I feature, any hardware I may need to purchase for future episodes (which I will then give to a subscriber in a drawing or contest).
    === Attributions ===
    Intro and Outro music provided by www.bensound.com

Комментарии • 47

  • @pheniox44
    @pheniox44 Год назад +2

    Thank you for this, really appreciate you taking the time showing everything about the automation. I have no problem with hardware, sensor, and microcontrollers but automations kick my ***. Again thank you

  • @TwanJaarsveld1
    @TwanJaarsveld1 8 месяцев назад +1

    Awesome, just made a cheap heater smart using a 3,50 zigbee switch and a 3,50 climat sensor

  • @chrisrosenkreuz23
    @chrisrosenkreuz23 2 года назад +3

    also a quick tip if you want the room to hold the same temperature for longer, turn your ac to low fan mode mode instead of switching it off. After heating, switch to fan and set your grill to point at the top of the room so the fan pushes the already heated air drawing cool air from the bottom. After cooling, switch to fan and point the grill down. I mean the difference you'll see is astounding, it was to me at least

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад +1

      Unfortunately, the AC unit itself isn't being switched between modes for me, it's just controlling a smart plug that powers the unit. So the setting is just on. I do use a standalone fan to help maintain the temp when the AC is off though. Great tip!

  • @asimabusallam3147
    @asimabusallam3147 2 года назад +1

    Awesome

  • @Serafinogplym
    @Serafinogplym Год назад +2

    Great video! Except that you forget to mention the essential part about how to integrate the yaml file in HA. See comments below for SOLUTION

  • @tonymansson7203
    @tonymansson7203 3 месяца назад +2

    Hm. I created the file in /config/climate but HA does not pick it up. Are you sure you didn't omit any step? So HA is supposed to automatically look for files here?

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 месяца назад

      I believe you have to include the folder / file in the main configuration file. You'll see others that are included there already. This is a bit older now, so may not be the same anymore.

  • @chrisrosenkreuz23
    @chrisrosenkreuz23 2 года назад +1

    what if you need to run the same unit as both a heater and ac depending on season?
    awesome content btw

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      I've seen that done as well, but my system is just a Window AC unit connected to a smart plug. I'm not sure how the yaml for both is formatted though.

  • @geoboy007
    @geoboy007 2 года назад +1

    Hi great job on the video although i am having trouble adding the card. Afer restarting the core then going to the card configuration i do not have any options to pick from in the "entity" drop down. It just says "no matching entities found". the to the right there is a red box that says "specify an entity from within the climate domain" in bold then below it 2 lines thats says "type: thermostat" and below that "entity: ' ' " The card example doesn't even show the temperature "dial" just all text. Did i possibly miss something in the yaml code?

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      You are choosing the thermostat card to start with from the UI, then selecting your thermostat you just made?

  • @sumeetpatney
    @sumeetpatney Год назад +1

    A built in AC thermostat will typically, if the temperature drops below the set threshold, will let the
    AC fan be on and not entirely power it down/switch off.
    Whereas the generic thermostat in Home Assistant typically completely switches off the AC unit.
    How can we make the HA thermostat emulate the built in AC thermostat and set it to run the fan on reaching the temperature instead of powering off?
    One obvious workaround is to replace the IR code for 'Off' with fan only or very high temperature so the AC will use its built in thermostat to turn off cooling and just run the fan. But now the AC cannot be fully powered off by the thermostat.
    Any solutions?

    • @AwesomeOpenSource
      @AwesomeOpenSource  Год назад

      Not from my end, but a great question to post over on the home assistant forums. Lots of super bright folks there that are always willing to help out.

  • @gio6778
    @gio6778 2 года назад +1

    Hello thanks for the video !!
    How we add more generic thermostats ?

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      It's really the same process. You just want to name them differently for the device / entity.

    • @gio6778
      @gio6778 2 года назад

      @@AwesomeOpenSource Thanks for the fast reply. I tried to make a second generic_thermostat.yaml in the climate folder but merged with previous one so I made a new named generic_thermostat2.yaml.it did not appear as an option when I went to create a thermostat card. May I’m doing something wrong ?

    • @gio6778
      @gio6778 2 года назад

      Could you tell me how to name them differently ? I’m noob in HA
      Thanks !!!

  • @zsoltnagy2227
    @zsoltnagy2227 2 года назад +1

    Hi. Great video.
    Can I ask you to provide what kind of products (binary switch and thermostat) do I need exactly to work via WIFI. If exists this kind of products.
    Thank you

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      I really like the Shelly line of products. They seem to be very reliable, and integrate quite well with Home Assistant. You can keep them all under local (no cloud) control if you want, and you don't even have to use their app. As for Thermostat, I don't know of a hardware thermostat that would work specifically for this purpose, thus I made my thermostat in Home assistant. I have a simple temperature sensor made from a NodeMCU that runs on wifi, and I use that to trigger my AC plug to turn on and off. for the plug I'm using one that has to go through the Tuya system, only because it's one I already had. I definitely suggest Shelly products currently though.

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      BTW, if you go to the Shelly Shop web pages to shop, make sure it's shellyshop for europe if you live in Europe or cuntries that use 220 - 240 V, and make sure to go to shellyshopusa if you are in North America or Mexico, as this is where you get the 110 - 120 V stuff.

  • @ikekite2000
    @ikekite2000 2 года назад +1

    just a few problems I have the first was I did not have file editor installed yet, next I still cant seem to get the thermostat to bring up the entity.
    there are two line (climate: !include_dir_merge_list climate/) this one does nothing when added to my config and (climate: !include climate/generic_thermostat.yaml) will not allow for system core to restart. what could I be doing wrong?

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      It should definitely be the first one. I have that in my main configuration.yml file, then I created a folder called "climate", and in that the generic_thermostat.yml file. Is this what you've done?

  • @hk9443
    @hk9443 2 года назад +5

    Hi thanks for the tutorial, however I realised I could not get it to work if I create a climate folder and add the generic_thermostat.yaml file. I could however get it to work if I put that in configuration.yaml based on the official docs. Do you know why?

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      If you create the separate climate and Tom file, you need to include it in the main configuration.tmb file. Did you do that part? I need to re-watch the video myself, as I may have forgotten this step in the video. If so, I apologize.

    • @hk9443
      @hk9443 2 года назад +4

      @@AwesomeOpenSource ok noted, so we need to include the "climate" into the configuration.yaml file
      climate: !include climate/generic_thermostat.yaml

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад +3

      @@hk9443 i added this line to the end of my include section in the configuration.yaml file.
      climate: !include_dir_merge_list climate/

    • @hk9443
      @hk9443 2 года назад

      @@AwesomeOpenSource thanks

    • @ktraglin
      @ktraglin 2 года назад +10

      @@AwesomeOpenSource I wish I'd seen this "!include" part before I tried over, and over, and over, then stayed up all night, re-installing home-assistant, reconfiguring all my customizations, etcetera. Maybe you could re-edit this video to add the necessary "climate: !include climate/generic_thermostat.yaml" section for the configuration.yaml file? I imagine this video could get many more "likes" if you were able to add this step.

  • @darenjay85
    @darenjay85 Год назад +1

    hi, very good Video. I want to make an Thermostat for Heating, but i don't know how to get an entity for the heater. i will use a tuya tempsensor and an sonoff switch to open and close the valve. Can xou explain how to create an entity to use it? thank you

    • @AwesomeOpenSource
      @AwesomeOpenSource  Год назад

      Let me look back at this, but as I recall I actually modified a heater thermostat so I could make it work for cooling. So I think the original project I found on the Home Assistant forum was for a heater.

    • @AwesomeOpenSource
      @AwesomeOpenSource  Год назад

      Here's the page I referenced. Maybe it will help you. www.home-assistant.io/integrations/generic_thermostat/

  • @antoniostrihas9892
    @antoniostrihas9892 2 года назад

    Hello did you managed to set the away mode with automation ?

    • @AwesomeOpenSource
      @AwesomeOpenSource  2 года назад

      I never tried, basically I never leave. I work from home, and have 5 others who live in my house. So there’s never a time where all are away.

  • @stardebrisx9
    @stardebrisx9 Год назад +1

    I followed your video but I am stuck at an issue. It seems like anything yaml doesn't really load. Do you have to include these yaml subfolders somewhere? It doesn't look like this automatically loads in?

    • @AwesomeOpenSource
      @AwesomeOpenSource  Год назад

      You have to include the subfolders in your main configuration.yaml file if they aren't already there. You'll see a section in that file where other includes are already set.

    • @stardebrisx9
      @stardebrisx9 Год назад

      @@AwesomeOpenSource I see they include like files. Can I include an entire folder? Recursively?

  • @andyduffill1498
    @andyduffill1498 Год назад +1

    No entities available when I try to set up the card. followed every step

    • @AwesomeOpenSource
      @AwesomeOpenSource  Год назад

      I'm sorry to hear that. I imagine this may have changed since I made the video. You may need to check the Home Assistant Forum and Wiki to see what may have changed.

    • @rasmAn2
      @rasmAn2 Год назад

      @@AwesomeOpenSource it hasn't, but the incluide into configuration needs to be done. any ideas on making more than one thermostat?

    • @KaidoLP
      @KaidoLP Год назад

      @@rasmAn2 there has to be an entry in the configuration.yaml to point to the generic_thermostat.yaml