Комментарии:
Thank you so much! Great for presenting custom ESPHome devices better!
ОтветитьExcellent Tutorial. I'm an experienced coder but a noob to Home Assistant so I needed some help to get over the first hurdles in a new interface and language. This was exactly what I needed. I'll be watching your whole series when I have time. Thanks.
ОтветитьEnjoying your video's! Very helpful! HOWEVER, I missed the part where the "sensor.tumble_dryer_power" entity came from. Did you define it as part of the Shelly1PM? I'm currently only using esp's.
ОтветитьHello and congratulations for the home assistant videos, I need help on the dryer status template. How can I insert a delay that if it is under 6 w for 10 seconds is it stanbay?
ОтветитьThis is what I was looking for. Thank you so much.
Ответитьthe sensor name will convert to xxxx_xxxx from name in template automatically right ?
ОтветитьYou create the code in templates but then you don't use that when you're typing the code into the config yaml so I am confused. I have got my code in the template but what do i do with that? I cannot see why you do that first as you just create some different code in the config yaml
ОтветитьThanks for all the work and time you have given us. I was not able to use the term state. When I went looking on other sites I found a different way of creating sensor as follows
- platform: template
sensors:
quickpot:
friendly_name: 'fastcook'
value_template: >
{% if states("sensor.dishwasher_energy_current") | float == 0 %}
OFF
{% elif states("sensor.dishwasher_energy_current") | float <= 2 %}
Stand by
{% elif states("sensor.dishwasher_energy_current") | float <= 4 %}
warming
{% else %}
cooking
{% endif %}
Have things changed in HA?
Setting up an automation for our dryer is the one thing I've been unable to do so far. I live in the U.S. and we have the funky plugs for our dryers, so using a normal power monitor smart plug won't work. I've heard of Shelly before, do you have a link to the one you used? I know Shelly offers some products here in the US, so hopefully I can get one that will work.
ОтветитьThanks for the great video!
I'm using Developer Tools, Template
But, I'm stuck here is my code:
```
(% if states("number.humidifier_target_level") == 55 %)
off
(% else %)
on
(% endif %)
```
I am getting this error:
This template does not listen for any events and will not update automatically.
I have checked the States and it shows 55.
Any help would be greatly appreciated!
TIA
Thanks Gio, a great video on templates! Much needed as I expand my use cases in HAS. By chance do you have a video that returns a specific entity that triggered an automation? For example I have 5 smoke sensors and I want my notification to return the specific sensor that triggered the automation. Thank you!
ОтветитьHow do we know when drying finishes to get notifications?
ОтветитьStudio Code editor throws immediate error
template:
- sensor: incorrect type expected array
state:
Any ideas? thx
Could you make a video where you make a value depending on the states of 2 diffrent sensors?
ОтветитьImej itu terlalu menyinggung perasaan
Ответитьwooooww just what I was searching. thank you very much!!!
ОтветитьThank you so much. Just two weeks into Home Assistant and struggling with 'custom sensors.' This was the perfect introduction!
ОтветитьI followed this video to a T. My template works within the generator but every line of code throws back an error. As soon as i write the word template: i cant seem to correct it at all.
ОтветитьThank you for making this video. I'm a programmer by day, but a lot of the explanations around custom sensors seemed as clear as mud until I found your video. This breaks it down and explains it very clearly. You have saved me a lot of future headache, thank you so much for the simple and concise explanation!
ОтветитьVery clear and much obliged. Only struggle here is to make the outcome of the if/else a trigger for an automation. I.e. if status dryer changes from standby to drying: send me a message or whatever action needed.
Ответитьit will work with sonoff ewelink?
Ответитьthanks for the tutorial! i'm getting this error, any idea what is going wrong here?
'float' got invalid input 'unknown' when rendering template '{% if states("sensor.dryer_power")|float == 0 %} Off {% elif states("sensor.dryer_power")|float <= 4 %} Standby {% else %} Drying {% endif %}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
1000 times Thank you!! Being new to this is overwhelming but you helped greatly!! I made a simple little sensor to show whether I'm home or not... it's a start to bigger and better things :)
ОтветитьCan home assistant be used to send IR or RS232 command to control tv, audio receivers etc…?
Ответить+1 for the tutorial. I have no experience with ginja so this is great
ОтветитьAre you kidding? My wife would love a tumble dryer as a present. Definitely do that.
ОтветитьCan you assign a unique id to the template sensor?
ОтветитьCan this be used to make a virtual motion or contact sensor in HA?
ОтветитьHEy whenever i do the check i get a config invalid for
Integration error: name - Integration 'name' not found.
Integration error: platform - Integration 'platform' not found.
Integration error: host - Integration 'host' not found.
i have no errors on my code and it is exactly the same as yours other than the name ( i am running mine for the washer right now)
I am trying to evaluate the last notification on my phone whether it contains a list of words and if NOT contain any of the specified words then it should update the sensor. What is the best way to write this code?
ОтветитьYou have just solved me another problem …. just one question left: how do you describe a value between two values let’s say „if sensor value is>= 40 but <=50“ ? Thanks for you’re help.
ОтветитьDanke!
Ответитьplenty of examples presented in a simple way 😁👍
ОтветитьExcellent! I had no idea what templating was! I actually had made one months ago I think, made a switch and a contact sensor into a cover(garage door). But you explanation of those crazy brackets was super helpful, last time I did any programming was in the early 80’s and it was the Basic language, so I’m pretty much less than zero on programming knowledge. Thanks a bunch!
ОтветитьWell done. That's clarified a whole bunch of things. Thank you.
ОтветитьOnce again, thanks for a very helpful video. Your content selection and quality is constantly growing and I enjoy your channel 👍
ОтветитьThanks for the video. BTW you have a spelling mistake in your splash screen. Cobing instead of Coding :D
ОтветитьNice bite size & useful intro to templates.
ОтветитьSir, you have opened my mind to new ideas! I've seen the dryer power monitor before and it's on my list of to-dos, but you have me thinking about it differently. Thank you! I feel better prepared to get started.
ОтветитьNice! Thanks.
ОтветитьLove your coding videos. Keep up the good work. Could you maybe do a sensor for daily power consumption?
ОтветитьThanks for the video. I followed everything you did but after restarting I do not get a new sensor.tumble_dryer. Any idea why?
ОтветитьThanks for the video. I got it to work with a Sonoff S31PM by using {% if state_attr('switch.sonoff_s31pm', 'power') == 0 %} in place of what you were using.
ОтветитьThis video will help me a lot with templating. Always had struggles with it, but now it is more clear for me. Many thanks 🙂
ОтветитьThanks for the tutorial, really nicely explained.
I wish there was entities ID autocomplete in this editor, just like in VS Code.
Would make playing around it so much easier.
Great video
ОтветитьThank you for this, I have searched for any syntax documentation for creating templates and have had to rely on looking at other users code for clues, can you point at such documentation? For example I first thought to use a case statement rather than if but can’t find if one is available for use!
I also found that I could just update templates rather than restarting HA, saved a ton of time with my many errors and restarts.
Thanks for what you are doing to help us all!
Great video. Thank you
ОтветитьThanks for the information.. I like the sound of the keyboard.. Can you tell me what kind it is?
Ответить