Hauptmenü

Notify def

Begonnen von mane88, 16 Mai 2015, 10:10:34

Vorheriges Thema - Nächstes Thema

mane88

Hallo,

ich habe eine Frage zu Notify Befehl. Ich möchte das Thermostat HT_Bad bei Anwesenheit (home) auf 15Grad einstellen. (Soll ein Beispiel zum testen der Funktionen werden).

Habe ein Residents
Internals
NAME Wohnung_1
NR 96 NTFY_ORDER
50-Wohnung_1
ROOMMATES rr_Marco,rr_Julia
STATE home
TYPE RESIDENTS


mit den Readings

lastActivity home 2015-05-16 09:45:31
lastActivityBy Status 2015-05-16 09:45:31
lastArrival 2015-05-16 09:45:30
lastDeparture  2015-05-15 20:32:40
lastDurAbsence 13:12:50 2015-05-16 09:45:30
lastDurAbsence_cr 793 2015-05-16 09:45:30
lastDurPresence 00:00:27 2015-05-15 20:32:40
lastDurPresence_cr 0 2015-05-15 20:32:40
lastState absent 2015-05-16 09:45:30
presence present 2015-05-16 09:45:30
residentsAbsent 1 2015-05-16 09:45:30
residentsAsleep 0 2015-05-15 19:39:46
residentsAwoken 0 2015-05-15 19:39:46
residentsGone 0 2015-05-15 20:32:59
residentsGotosleep 0 2015-05-15 20:19:20
residentsHome 1 2015-05-16 09:45:30
residentsTotal 2 2015-05-15 19:40:52
residentsTotalAbsent 1 2015-05-16 09:45:30
residentsTotalGuests 0 2015-05-15 19:39:46
residentsTotalGuestsAbsent 0 2015-05-15 19:39:46
residentsTotalGuestsPresent 0 2015-05-15 19:39:46
residentsTotalPresent 1 2015-05-16 09:45:30
residentsTotalWakeup 0 2015-05-15 19:39:46
residentsTotalWayhome 0 2015-05-15 19:39:46
state home 2015-05-16 09:45:30


und einen Notify n.Anwesenheit

DEF Wohnung_1:state:home set HT_Bad_Clima desired-temp 15


Leider funktioniert der Notify nur wenn ich statt Wohnung_1:state:home nur Wohnung_1 Das heißt aber auch dass er immer schaltet egal ob ich zuhause oder weg bin.

Habe es auch schon mit Wohnung_1:state:.home versucht leider auch ohne erfolg.

Phill

Ich glaube so...
Wohnung_1:.home
Homebrew 1-Wire / HomeMatic Mix - Cubietruck mit FHEM als Server - Raspberry PI 3 als Informationsanzeige im MagicMirror Stil - Raspberry Pi 1 als Klingelanlage - VDR

Mein Modul: Talk2Fhem - Mein Tipp: https://forum.fhem.de/index.php/topic,82442.0.html

frank

FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

mane88

Klappt beides nicht :(

aber habe noch etwas rum probiert und

Wohnung_1:home.* set HT_Bad_Clima desired-temp 15

klappt.

OiledAmoeba

Ich hätte ein notify auf den Statuswechsel gebaut und innerhalb des notify mit if den Status abgefragt. So kann dann mit nur einem notify auf verschiedene Status reagiert werden. Beispielsweise bei home 15 Grad und bei abwesend 10 Grad und so weiter.
Gruß
Florian

Jail auf XigmaNAS (freeBSD); CCU2 mit CULv3, nanoCUL868 und JeeLink-Clone; div. FS20-Komponenten; andFHEM; div. hm- und hmip-Komponenten; div. IT+