Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
{{ states.input_number.auto_auf_zu}}
*******
{{ states.input_number.auto_zuhaus}}
<template TemplateState(<state input_number.auto_auf_zu=2.0; initial=None, editable=True, min=1.0, max=2.0, step=1.0, mode=slider, icon=mdi:car-key, friendly_name=Auto_auf/zu @ 2022-10-12T15:13:28.877960+02:00>)>
*******
<template TemplateState(<state input_number.auto_zuhaus=2.0; initial=None, editable=True, min=1, max=2, step=1, mode=slider, icon=mdi:car, friendly_name=Auto Zuhaus @ 2022-10-12T20:45:41.958932+02:00>)>
alias: Auto noch auf/ Pushover
description: ""
trigger:
- platform: state
entity_id:
- input_number.auto_zuhaus
to: "2.0"
for:
hours: 0
minutes: 0
seconds: 5
alias: Auto seit 10 Minuten zuhause
condition:
- condition: state
entity_id: input_number.auto_auf_zu
state: "2.0"
alias: "Auto noch offen? "
action:
- condition: state
entity_id: input_number.auto_zuhaus
state: "2.0"
alias: "Auto noch zuhause? "
- service: notify.pushover
data:
message: Auto ist noch auf
data:
priority: 0
sound: Auto
alias: Benachrichtigung
mode: restart
alias: Auto auf
description: ""
trigger:
- platform: mqtt
topic: stat/Auto/POWER1
payload: "ON"
condition: []
action:
- service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "010100"
- service: input_number.set_value
data:
value: 2
target:
entity_id: input_number.auto_auf_zu
mode: single
alias: Auto zu
description: ""
trigger:
- platform: mqtt
topic: stat/Auto/POWER2
payload: "ON"
condition: []
action:
- service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "000100"
- service: input_number.set_value
data:
value: 1
target:
entity_id:
- input_number.auto_auf_zu
mode: single
alias: Auto nicht zu Haus
description: variable zu1 setzen und LED rot
trigger:
- platform: state
entity_id:
- binary_sensor.auto
from: "on"
to: "off"
condition: []
action:
- service: input_number.set_value
data:
value: 1
target:
entity_id: input_number.auto_zuhaus
- service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "010000"
mode: single
alias: Auto zu Haus
description: "wert auto_zuhaus zu 2 und LED auf gelb"
trigger:
- platform: state
entity_id:
- binary_sensor.auto
from: "off"
to: "on"
condition: []
action:
- service: input_number.set_value
data:
value: "2.0"
target:
entity_id: input_number.auto_zuhaus
- service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "010100"
mode: restart
switch.tasmota2 #Auto zu
switch.auto #Auto auf
device_tracker.wemos_2 #Nmap_tracker
switch.wemos_internet_access_2
sensor.auto_restart_reason
sensor.auto_mqtt_connect_count
sensor.auto_ssid
sensor.auto_wifi_connect_count
sensor.auto_last_restart_time
binary_sensor.auto
device_tracker.auto
"Diese Entität ("device_tracker.auto") hat keine eindeutige ID, daher können die Einstellungen nicht über die UI verwaltet werden. Schaue in der Dokumentation nach für mehr Details."
switch.tasmota2= onVerstehe ich das richtig?
Genau, in der Tankverriegelung ist ein Servo, der nur ganz kurz angesteuert wird und nur hin und zurück fährt. Entsprechend bekommen die beiden Switche nur ganz kurz "ON". Davon geht der Wemos aber nicht OFFLINE. Der ist die ganze Zeit, solange das Auto in der Einfahrt steht Online. Es sei denn das Auto steht mal etwas weiter vorn. Aber auch dann bin ist er inR noch bei ca. 40 RSSI. Selbst wenn ich auf der Strasse parke geht es normalerweise.switch.tasmota2 und switch.auto sind auf deinem Screenshot beide aus.
Schalten die nach ner bestimmten Zeit von alleine aus? Würde zu deiner Erklärung mit dem Tankdeckel passen. Auto aus -> Spannung fällt irgendwann ab -> beide Schalter switchen zu off und der Wemos geht offline. Korrekt?
Genau so ist es, wenn das Auto weg (der Wemos Offline) ist, dann sind beide nicht verfügbar.Müssten deine beiden Schalter (für auto auf/zu) nicht sogar "unavailable", also "nicht verfügbar" sein, sobald dein Auto aus bzw weg und somit der Wemos offline ist?
Also Wemos offline = beide switches für auto auf/zu "nicht verfügbar"/"unavailable"?
Auch richtig, kein Ahnung. Ich könnte aktuell auch nicht nachvollziehen wie ich die beiden geschaffen habe. Ich wollte nur irgenwie hin bekommen das der Wemos sicher getrackt wird.Also, ich schlussfolgere, dass du nicht weißt, wie man beispielsweise einen binary_sensor in der configuration.yaml anlegt?
binary_sensor:
- platform: ping
host: 192.168.178.25
name: "auto"
count: 2
scan_interval: 30
alias: Auto noch auf/ Pushover
description: ""
trigger:
- platform: state
entity_id:
- switch.tasmota2
- switch.auto
for:
hours: 0
minutes: 0
seconds: 0
alias: Wemos Online/Auto Zuhause
id: Auto Zuhause
from: unavailable
- platform: state
entity_id:
- switch.tasmota2
- switch.auto
for:
hours: 0
minutes: 0
seconds: 0
alias: Wemos Offline/Auto nicht Zuhause
id: Auto nicht Zuhause
to: unavailable
- platform: state
entity_id:
- switch.auto
for:
hours: 0
minutes: 0
seconds: 0
alias: Auto auf
id: Auto auf
to: "on"
- platform: state
entity_id:
- switch.tasmota2
for:
hours: 0
minutes: 0
seconds: 0
alias: Auto zu
id: Auto zu
to: "on"
condition: []
action:
- if:
- condition: trigger
id: Auto Zuhause
alias: Auto Zuhause
then:
- alias: LED an (gelb)
service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "010100"
alias: "Wenn: Auto da"
- if:
- condition: trigger
id: Auto nicht Zuhause
alias: Auto nicht Zuhause
then:
- alias: LED an (rot)
service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "010000"
alias: "Wenn: Auto weg"
- if:
- condition: trigger
id: Auto auf
alias: Auto auf
then:
- alias: LED an (gelb)
service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "010100"
- wait_for_trigger:
- platform: state
entity_id:
- switch.tasmota2
to: "on"
alias: Auto abgeschlossen
continue_on_timeout: false
timeout:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
alias: Warte 10 Minuten auf Auto abschließen
- service: notify.pushover
data:
message: Auto ist noch auf
data:
priority: 0
sound: Auto
alias: Benachrichtigung
alias: "Wenn: Auto auf"
else: []
- if:
- condition: trigger
id: Auto zu
alias: Auto zu
then:
- alias: LED an (grün)
service: mqtt.publish
data:
topic: cmnd/node1/led9
payload: "000100"
alias: "Wenn: Auto zu"
else: []
mode: restart