Sensor virtual de humedad para detectar cambios repentinos.
Sensor virtual de humedad para detectar cambios repentinos.
Hola!! Estoy con un problema, quiero agregar un par de sensores virtuales que verifiquen la humedad de un sensor sonoff actual y la del mismo pero hace 10 minutos atras. Si aumenta en 5% deberia pasar de off a on. Pero me encuentro con el mismo valor siempre, el que busca como 10 minutos atras y el actual. Lo que hice fue esto:
- platform: template
sensors:
incremento_humedad:
value_template: >-
{% set current_humidity = states('sensor.sonoff_humidity_pruebas') | float %}
{% set previous_humidity = states('sensor.sonoff_humidity_pruebas', '10 minutes ago') | float %}
{% set humidity_difference = current_humidity - previous_humidity %}
{{ 'on' if humidity_difference > (previous_humidity * 0.05) else 'off' }}
Este sensor lo hice para ver los valores que esta tomando y siempre me muestra el mismo valor que el actual del sensor.
- platform: template
sensors:
humedad_hace_10_minutos:
value_template: "{{ states('sensor.sonoff_humidity_pruebas', '10 minutes ago') }}"
unit_of_measurement: '%'
Saludos cordiales!!
- platform: template
sensors:
incremento_humedad:
value_template: >-
{% set current_humidity = states('sensor.sonoff_humidity_pruebas') | float %}
{% set previous_humidity = states('sensor.sonoff_humidity_pruebas', '10 minutes ago') | float %}
{% set humidity_difference = current_humidity - previous_humidity %}
{{ 'on' if humidity_difference > (previous_humidity * 0.05) else 'off' }}
Este sensor lo hice para ver los valores que esta tomando y siempre me muestra el mismo valor que el actual del sensor.
- platform: template
sensors:
humedad_hace_10_minutos:
value_template: "{{ states('sensor.sonoff_humidity_pruebas', '10 minutes ago') }}"
unit_of_measurement: '%'
Saludos cordiales!!
Re: Sensor virtual de humedad para detectar cambios repentinos.
I admit, I have not been on this blog in a long time, however it was joy to find it again. It is such an important topic and ignored by so many, even professionals! I thank you for helping to make people more aware of these issues. Just great stuff as per usual! 우리카지노
Re: Sensor virtual de humedad para detectar cambios repentinos.
Hello. I don’t know whether it is too much, but this site is pretty eye-pleasing. Indiase e visa in aanmerking komen Servische burgers
Re: Sensor virtual de humedad para detectar cambios repentinos.
Good submit. We study something more challenging upon very different weblogs everyday. It’s going to often be revitalizing to learn content material through different authors as well as observe a bit some thing at their store. We’d choose to utilize some with the content on my small website whether an individual don’t brain. Natually My partner and i’ll supply you with a website link on your internet weblog. Thank you for revealing. Garage Door Spring Repair Westwood
-
- Mensajes: 141
- Registrado: Lun Dic 11, 2023 6:38 am
online baccarat strategy
Very interesting information! Perfect just what I was looking for! My site: real money baccarat online
Re: Sensor virtual de humedad para detectar cambios repentinos.
I reckon something really interesting about your website so I bookmarked . pentobarbital buy
-
- Mensajes: 141
- Registrado: Lun Dic 11, 2023 6:38 am
Holidays Lucky Wheel
Excellent to the point article and news.. Well appreciated, My sites: Take the Wheel in OKBet.com Lucky Wheel Extravagant!
Re: Sensor virtual de humedad para detectar cambios repentinos.
The care about this fundamental standard of knowledge further than the strategy that most experts provide. Your article informed me to thinking that I had previous skipped. In the event you keep this up blogging I think you may be a force in this industry. 미국 온라인 비자 요구 사항
Re: Sensor virtual de humedad para detectar cambios repentinos.
I think that is essentially the most vital information personally. And i am glad reading your article. But should remark on few general things, The site style is perfect, the articles is really excellent : D. Good job, cheers Caluanie Muelear Oxidize Manufacturer
Re: Sensor virtual de humedad para detectar cambios repentinos.
You made some decent points there. I looked online with the issue and located most people is going along with using your site. Bourbon whiskey