Comments (6)
Probably because it's inferred as a string. Please try simplifying to a single statement which just returns the expression
from core.
sorry, but I don't understand what test you want me to do.
I just tried to start the automation:
- "switch.schedule_trigger_ac_on_2" state is "triggered"
- "sensor.temperatura_salotto" is above 25°
but if I go to look at the automation traces, this condition has a false result. And I don't understand why.
If instead I go to the condition menu inside the automation, and click TEST, Home assistant returns message "condition pass"
This automation worked fine before the update.
from core.
Instead of if
just return the expression directly, as something > something else
already returns True
from core.
OK. Now I understand.
I just did these tests:
Sensor status:
- "switch.schedule_trigger_ac_on_2" state is "triggered"
- "sensor.temperatura_salotto" is above 25°
Template condition:
{% if (states('switch.schedule_trigger_ac_on_2') == "triggered") %}
true
{% endif %}
This condition result TRUE
Template condition:
{% if (states('sensor.temperatura_salotto') > '25') %}
true
{% endif %}
This condition result TRUE
Template condition:
{% if ((states('switch.schedule_trigger_ac_on_1') == "triggered") and (states('sensor.temperatura_salotto') > '25')) %}
true
{% endif %}
This condition result FALSE
from core.
{{ states('sensor.temperatura_salotto') > '25' }}
from core.
with the syntax you told me it works correctly
{{ (states('switch.schedule_trigger_ac_on_2') == 'triggered') and (states('sensor.temperatura_salotto') > '25') }}
thank you
from core.
Related Issues (20)
- Climate not working anymore : ConversionError description="HVACStatus value not initialized. Can not write new mode." HOT 6
- allowlist_external_dirs directive ignored HOT 1
- HomeKit Television: no turn on/off HOT 1
- Blueprints imported via generated My HA widget links broken when original link contains spaces. HOT 1
- Failed to deliver message: <sl_Status.ZIGBEE_DELIVERY_FAILED: 3074> HOT 7
- Localization error for component.sql.issues.entity_id_query_does_full_table_scan.description HOT 2
- time variables interpreted as string HOT 3
- Unable to delete old Proximity Entities HOT 2
- Matter Event Entity Not Recognized in a Conditional Template HOT 2
- HomeKit integration 2024.8/8.2 Aqara FP2 PS connectivity issue (some presence events not relayed to HA) HOT 1
- Xiaomi Miio setup timezone error HOT 1
- zwave not responding HOT 1
- LG WebOS Smart TV Integration: TV sends state off without reason occasionally HOT 1
- cant add a newly mpd player because it already exists HOT 2
- Roborock integration: unsupported operand type(s) for /: 'list' and 'int' HOT 1
- Reolink integration holding up start of HA & sometimes after initialisation, fails with error HOT 1
- Alexa not working well since 2024.8.0 HOT 10
- Renaming Script Entities does not rename script ID HOT 2
- Light "Transition" is broken
- Restoring on the fly Snapshot Entities is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.