Pull Data From The Web & Display In Home Assistant - Working with APIs - Display YouTube Sub Count

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

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

  • @bencoleman42
    @bencoleman42 7 месяцев назад +2

    3 years old and this still helps! Thanks for a well explained walk through. I've managed to run a REST API call to build a Sensor in HA using your details and newly updated HA docs on REST sensors.

  • @rishabMehta7
    @rishabMehta7 3 года назад +10

    I am a Network engineer with not much exposure to programming, but have always wanted to build a custom integration to pull info from a lot of websites. This is by far the most amazing video that help me understand literally everything I ever wanted to know. Thank you! You have earned yourself a life time subscriber!!

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад +1

      So glad it helped. You're project sounds interesting.

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

    GREAT EXAMPLE !!! Nice clear walk through of all the steps. Looking forward to viewing your other "tubes"

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

      Thanks! Let me know if you have anything you want covered.

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

    This is wonderful, thank you for the detailed explanation!

  • @Zeehondenromp
    @Zeehondenromp 3 года назад +1

    Your videos do really help me get started with Home Assistant. Thank you so much!!

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      That's why I make them. I am so glad it helped. Anything you want to see that would help you?

  • @SmartHomeMakers
    @SmartHomeMakers 3 года назад +3

    1000 subs will be coming! Keep up the good work:)

  • @2mohannadhamed
    @2mohannadhamed 3 года назад +1

    really very good informative and the way of your illustration very clear definitely i will follow your channel

  • @mikesmods317
    @mikesmods317 9 месяцев назад

    Awesome!! Thank you for the always awesome work!!

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

    Did you notice your subscriber count increment just now? haha.
    Very well explained but a little out of my league just for now. However this demonstration answered a lot of questions I had about the method used to extract info like that. Time for me to watch again and go off to experiment.
    Thanks for taking the time to help others.

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

      Thank you! I appreciate every sub I have. Don't be intimidated learning this stuff is extremely powerful. I've been able to apply so many bits of knowledge I gained by playing around with apis to my day job (I work in IT).

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

    buonasera,ho seguito il tuo video per creare lo stesso sensore che hai creato tu, dopo aver seguito le tue indicazioni ho effettuato la prova su modelli di homeassistant ed il risultato era corretto, ma una volta riavviato homeassistant il sensore da me creato èin stato unknow, uso homeassistant supervisor su debian 11 ultimo aggiornamento.

  • @DaveMason-vi3mv
    @DaveMason-vi3mv 2 года назад

    Thanks for the video, i am trying to get data from a web site I log into for my pool temp and various levels. What API do I need to find in Google Developer Console to achieve this?

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

    Not sure if you are still checking comments - I've been using the Google Sheets API to pull a single cell value from a spreadsheet. When tested using the template editor in HA I get the data I want with the Result Type: Number but the rest sensor keeps reporting state:unknown.
    Any suggestions?

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      Hmmm. Because of the complexity it'd be better for you to join the discord channel so I can help you more directly. tshouse.link/discord

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

    Thank you so much - now i can read the marker states from my lightmanager air and integrate my smoke detectors ! the ha documentary was kinda confusing with reading json

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

      Glad it helped! Learning how to interact with APIs is a super helpful skill to have.

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

    cna youdo the same with TikTok?

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

    This is exactly what I'm looking. The integrated OCR engines of home assistant are not really good and easy to use. For a project I wanted to use an API OCR engine. As i understood the video correctly you are doing to get commands for you're two sensors. Is there a way to do it only by one pull and to the values as attributes into the sensor?

  • @Dmkjr
    @Dmkjr 3 года назад

    I'm not seeing the sensor come up when using Developer tools. All worked until the end. Any ideas? HA showing no errors in the YAML.

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      Might be easier if you jump on our discord so I can give you some things to try. tshouse.link/discord

    • @Dmkjr
      @Dmkjr 3 года назад +1

      @@ThisSmartHouse Thanks! I'll jump on the channel because I love learning, but I think I just figured out what I was doing wrong. :|. YAMMMMMLLLL. I thought when it's broke it was always DNS. 🤭

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      That is true rule in IT (just had that this week), but in home assistant it is ALWAYS YAML.

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

    I got voltge values for three phases as a list. How to get values only for phase L1?
    {
    "status":"ok",
    "voltage": [230.2, 229.8, 224.6],
    }
    {{ value_json['voltage'] }} is giving me all three values

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

      That's an array of integers, so you'd do value_json['voltage'][0] to get the first in the array

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

    Great video!

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

    This is great, but I can't get to actually pull the information automatically.... the scan interval doesn't do anything

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

    thank you for this tutorial

  • @lingchaocao1870
    @lingchaocao1870 3 года назад +1

    Super cool. Thanks

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

    Nice video, with 1 suggestion - the youtube player controls are obscuring what you are typing at the bottom of the screen. I'm trying to pause your video so I can type in my HA window, and the YT player controls are overlapping what you have types at the bottom.

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

    How to add attributes to your scrape-sensor?
    I have a scrape-sensor which gets the water-temperature from a lido. So I want the coordinates as attributes.
    like:
    latitude: 47.3519
    longitude: 8.5360
    If possible I would even like to have an attribute with the website-link where I scraped the information.
    Are there some informations about how I can create such attributes or how they have to be named ("link:", "source:", "web:", ...)?

  • @SeanRynearson
    @SeanRynearson 3 года назад +1

    Thanks for the video!

  • @farkasroman
    @farkasroman 3 года назад

    what about MySensors , NRF24 integration ? make some step_by_step ... please

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

    Thx so much, gonna use this to pull bus line arrival times ...

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

      Awesome! There is no end to the stuff you can do with APIs. I am constantly researching if a service has an API. I really wish Amazon would open up theirs for parental control of Kindles...

  • @97Giorgos97
    @97Giorgos97 3 года назад +1

    Thanks!

  • @Zizzy7
    @Zizzy7 3 года назад +4

    Nice video! I would suggest one minor improvement.. or at least an improvement IMO.
    One sensor can have multiple attributes (attribute_templates). Instead of creating more sensors doing the same Api call, just add attributes to the same sensor. I would suggest maybe adding the "status" part in the Api call, using the "privacyStatus" as the State (public = "on") and use the "statistics" part for attributes.

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад +1

      For sure. I was trying to get people's "feet wet" with APIs, but you are right much more efficient.

    • @Zizzy7
      @Zizzy7 3 года назад +1

      @@ThisSmartHouse makes sense, totally get it. Might be too intimidating if you go all out in an explanation video. :)

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад +1

      This is the struggle I have. I want to have a video be complete on a subject but then it will be an hour long...

    • @aleharder
      @aleharder 3 года назад

      Hey, any chance you could explain on how to implement that? Or have example code for it?

  • @asdkjh4370
    @asdkjh4370 3 года назад +1

    Actually sometimes I don't understand why integrate any Google products into HA - point of HA is to avoid of Tech totalitarism.

    • @ThisSmartHouse
      @ThisSmartHouse  3 года назад

      Yeah Google makes things difficult but you have to work with what you get. But you can apply this method to other APIs.

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

    you called the file 'sensors.yaml', but i'm pretty sure it's supposed to be 'sensor.yaml'

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

      It doesn't matter as long as it matches what you defined in configuration.yaml. Mine is called sensors.yaml (I had to double check).

    • @3litepker
      @3litepker Месяц назад

      @@ThisSmartHouse The file name doesn't matter but the key does. You put 'sensors' as the key instead of 'sensor'. Maybe that worked 3 years ago but it doesn't anymore. It will show the warning 'Configuration warnings
      Integration error: sensors - Integration 'sensors' not found.'

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

    ehm no... It does not in fact work, though I reasonably sure I've done it correct, asper your instruction, only I couldn't split up the fine, for some odd reason. At any rate, I did learn a thing or two, so thanks.

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

      Things do change on apis. But mine still seems to be working. What error are you getting?