Hi guys,
I`m not sure if this is the right way to do it for its my first question ;)
I started ha 4 weeks ago, and flashed all my devices I’d already used with eWelink to Tasmota.
Wow its really great to work with ha combined with Tasmota!
Mostly everything works but i have to automations i can`t get to word, keep getting errors:
1- this should be a simple heating automation, but for some reason it won’t trigger:
```
alias: Badkamer - verwarming 20 graden
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.th16_bk1_si7021_temperature
above: 20
id: Badkamer 20+
- platform: numeric_state
entity_id:
- sensor.th16_bk1_si7021_temperature
for:
hours: 0
minutes: 0
seconds: 10
id: Badkamer 20-
below: 19
condition:
- condition: time
after: "08:00:00"
weekday:
- sun
- sat
before: "10:00:00"
enabled: true
- condition: time
after: "20:00:00"
weekday:
- sun
- sat
before: "23:30:00"
enabled: true
- condition: time
before: "09:00:00"
after: "07:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
enabled: true
- condition: time
before: "23:30:00"
after: "21:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
enabled: true
action:
- choose:
- conditions:
- condition: trigger
id:
- Badkamer 20+
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.th16_bk1_badkamer_verwarming
- service: notify.mobile_app_iphone_van_henk
data:
message: Badkamer verwarming uit
title: Melding
- conditions:
- condition: trigger
id:
- Badkamer 20-
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.th16_bk1_badkamer_verwarming
- service: notify.mobile_app_iphone_van_henk
data:
message: Badkamer verwarming aan
title: Melding
mode: single
```
2 This I where I try to trigger a pump with the temp difference between two sensors
But it keep getting errors
```
- alias: Pomp WP wisselaar in en uitschakelen
platform: template
sensors:
temperature_difference:
friendly_name: Temperature Difference
unit_of_measurement: °C
value_template: >
{{ ( states('sensor.tasmota_basic_ds18b20_ds18b20_temperature')|float(0) - states('sensor.thr316d_ht1_ds18b20_temperature')|float(0) )|round(2) }}
alias: pomp aan
trigger:
platform: numeric_state
entity_id: sensor.temperature_difference
above: 10
action:
service: switch.turn_on
entity_id: switch.4ch_ht8_pomp_hottub_ww_warmtepomp
alias: pomp uit
trigger:
platform: numeric_state
entity_id: sensor.temperature_difference
below: 5
action:
service: switch.turn_off
entity_id: switch.4ch_ht8_pomp_hottub_ww_warmtepomp
```
Help would be much appreciated 😉
Greetings Henk
Please read the Rules section of the documents
Sent from Outlook for Android
From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Amal Jacob <amal...@gmail.com>
Sent: Saturday, October 7, 2023 7:34:24 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Tasmota + HC-SR04_DISTANCE + RelayI want to post this to ask for help. I'm creating a water tank monitoring system with Tasmota, using an HC-SR04 sensor and a relay. I need to activate the relay when the water level in the tank drops below 30cm and deactivate it when the water level reaches 80cm. Currently, I am able to retrieve readings from the sensor, and I can manually toggle the relay. How can I implement the automation described above? Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.
This is a HA issue not a Tasmota issue but, in Tasmota, Switches(switchx or buttonx) are inputs and Relays (powerx) are outputs so make sure they are setup correctly.
Sent from Mail for Windows
From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Amal Jacob <amal...@gmail.com>
Sent: Saturday, October 7, 2023 7:34:24 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Tasmota + HC-SR04_DISTANCE + Relay
I want to post this to ask for help. I'm creating a water tank monitoring system with Tasmota, using an HC-SR04 sensor and a relay. I need to activate the relay when the water level in the tank drops below 30cm and deactivate it when the water level reaches 80cm. Currently, I am able to retrieve readings from the sensor, and I can manually toggle the relay. How can I implement the automation described above? Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/42776504-576e-4aaa-a094-046c6627732cn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/986f8dff-48b7-42ed-b290-118ab743b9f0n%40googlegroups.com.