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.
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!!
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.
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).
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.
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?
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?
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
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?
@@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. 🤭
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
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.
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:", ...)?
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...
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 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.'
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.
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.
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!!
So glad it helped. You're project sounds interesting.
GREAT EXAMPLE !!! Nice clear walk through of all the steps. Looking forward to viewing your other "tubes"
Thanks! Let me know if you have anything you want covered.
This is wonderful, thank you for the detailed explanation!
Glad it was helpful!
Your videos do really help me get started with Home Assistant. Thank you so much!!
That's why I make them. I am so glad it helped. Anything you want to see that would help you?
1000 subs will be coming! Keep up the good work:)
Thank you so much!!!
really very good informative and the way of your illustration very clear definitely i will follow your channel
Thank you so much!
Awesome!! Thank you for the always awesome work!!
My pleasure!
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.
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).
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.
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?
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?
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
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
Glad it helped! Learning how to interact with APIs is a super helpful skill to have.
cna youdo the same with TikTok?
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?
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.
Might be easier if you jump on our discord so I can give you some things to try. tshouse.link/discord
@@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. 🤭
That is true rule in IT (just had that this week), but in home assistant it is ALWAYS YAML.
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
That's an array of integers, so you'd do value_json['voltage'][0] to get the first in the array
Great video!
Thanks!
This is great, but I can't get to actually pull the information automatically.... the scan interval doesn't do anything
thank you for this tutorial
Super cool. Thanks
You are welcome
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.
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:", ...)?
Thanks for the video!
You bet!
what about MySensors , NRF24 integration ? make some step_by_step ... please
Thx so much, gonna use this to pull bus line arrival times ...
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...
Thanks!
No problem!
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.
For sure. I was trying to get people's "feet wet" with APIs, but you are right much more efficient.
@@ThisSmartHouse makes sense, totally get it. Might be too intimidating if you go all out in an explanation video. :)
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...
Hey, any chance you could explain on how to implement that? Or have example code for it?
Actually sometimes I don't understand why integrate any Google products into HA - point of HA is to avoid of Tech totalitarism.
Yeah Google makes things difficult but you have to work with what you get. But you can apply this method to other APIs.
you called the file 'sensors.yaml', but i'm pretty sure it's supposed to be 'sensor.yaml'
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).
@@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.'
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.
Things do change on apis. But mine still seems to be working. What error are you getting?