activate_scenario.sh
Thu Jan 16 08:25:56 CET 2025
scenario: homeOffice
source: 192.168.12.140
vorher: 08:25:56.308
http://192.168.12.101/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started_at": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.323
Dauer: 15 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.326
http://192.168.12.102/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "overpower": false, "source": "input" |
nachher: 08:25:56.389
Dauer: 62 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.344
http://192.168.12.103/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "overpower": false, "source": "http" |
nachher: 08:25:56.371
Dauer: 28 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.362
http://192.168.12.105/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.392
Dauer: 30 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.380
http://192.168.12.106/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.405
Dauer: 24 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.401
http://192.168.12.107/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.453
Dauer: 52 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.419
http://192.168.12.108/relay/0?turn=on |
---|
"ison": true, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.459
Dauer: 40 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.440
http://192.168.12.109/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.565
Dauer: 124 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.458
http://192.168.12.110/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.481
Dauer: 24 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.479
http://192.168.12.112/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.540
Dauer: 61 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.500
http://192.168.12.116/white/0?turn=on&brightness=50 |
---|
"ison": true, "source": "http", "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "mode": "white", "brightness": 50, "transition": 0, "power": 0, "overpower": false |
nachher: 08:25:56.521
Dauer: 21 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.519
http://192.168.12.116/white/1?turn=on&brightness=50 |
---|
"ison": true, "source": "http", "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "mode": "white", "brightness": 50, "transition": 0, "power": 0, "overpower": false |
nachher: 08:25:56.567
Dauer: 49 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.537
http://192.168.12.117/white/0?turn=off&brightness=50 |
---|
"ison": false, "source": "http", "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "mode": "white", "brightness": 50, "transition": 0, "power": 0, "overpower": false |
nachher: 08:25:56.566
Dauer: 29 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.556
http://192.168.12.117/white/1?turn=off&brightness=50 |
---|
"ison": false, "source": "http", "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "mode": "white", "brightness": 50, "transition": 0, "power": 0, "overpower": false |
nachher: 08:25:56.602
Dauer: 46 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.578
http://192.168.12.119/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.611
Dauer: 34 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.596
http://192.168.12.123/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.638
Dauer: 42 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.618
http://192.168.12.124/relay/0?turn=on |
---|
"ison": true, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.657
Dauer: 38 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.636
http://192.168.12.125/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 08:25:56.688
Dauer: 53 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.656
http://192.168.12.140/relay/0?turn=on |
---|
"ison": true, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.684
Dauer: 29 msec
phName: 'shelly-40:'TB Licht''
vorher: 08:25:56.678
http://192.168.12.155/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started_at": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 08:25:56.698
Dauer: 20 msec
phName: 'shelly-40:'TB Licht''
urls : 20
vorher : 08:25:56.284
nachher: 08:25:56.704
Dauer : 420 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/01/16//scene_homeOffice_20250116_082556.txt'
Jan 16 08:22:01 srv4hai CRON[2099]: (root) CMD (/etc/linetest/linetest.sh) Jan 16 08:22:50 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets). Jan 16 08:22:50 srv4hai fetchmail[1651]: 61555 messages (61553 seen) for tmiglinci at mail.akis.at (749133299 octets). Jan 16 08:22:50 srv4hai postfix/smtpd[2109]: connect from localhost[127.0.0.1] Jan 16 08:22:50 srv4hai postfix/smtpd[2109]: ED3586000F: client=localhost[127.0.0.1] Jan 16 08:22:51 srv4hai postfix/cleanup[2111]: ED3586000F: message-id=<20250116072108.8209063463@mail.viehai.at> Jan 16 08:22:51 srv4hai postfix/qmgr[8566]: ED3586000F: from=, size=19645, nrcpt=1 (queue active) Jan 16 08:22:51 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:61554 of 61555 (19328 octets) not flushed Jan 16 08:22:51 srv4hai postfix/local[2112]: ED3586000F: to= , relay=local, delay=0.08, delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail) Jan 16 08:22:51 srv4hai postfix/qmgr[8566]: ED3586000F: removed Jan 16 08:22:51 srv4hai postfix/smtpd[2109]: 0FFC76000F: client=localhost[127.0.0.1] Jan 16 08:22:51 srv4hai postfix/cleanup[2111]: 0FFC76000F: message-id=<20250116072108.AD6FF63464@mail.viehai.at> Jan 16 08:22:51 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:61555 of 61555 (20674 octets) not flushed Jan 16 08:22:51 srv4hai postfix/qmgr[8566]: 0FFC76000F: from= , size=20994, nrcpt=1 (queue active) Jan 16 08:22:51 srv4hai postfix/local[2112]: 0FFC76000F: to= , relay=local, delay=0.06, delays=0.05/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail) Jan 16 08:22:51 srv4hai postfix/smtpd[2109]: disconnect from localhost[127.0.0.1] ehlo=1 mail=2 rcpt=2 data=2 quit=1 commands=8 Jan 16 08:22:51 srv4hai postfix/qmgr[8566]: 0FFC76000F: removed Jan 16 08:22:51 srv4hai fetchmail[1651]: 11384 messages (11384 seen) for srozum at mail.akis.at (1358014223 octets). Jan 16 08:22:52 srv4hai fetchmail[1651]: 28355 messages (28355 seen) for mrozum at mail.akis.at (571800833 octets). Jan 16 08:22:52 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets). Jan 16 08:22:53 srv4hai postfix/smtpd[2109]: connect from unknown[154.203.197.109] Jan 16 08:22:53 srv4hai postfix/smtpd[2109]: warning: unknown[154.203.197.109]: SASL LOGIN authentication failed: Invalid authentication mechanism Jan 16 08:22:53 srv4hai postfix/smtpd[2109]: lost connection after AUTH from unknown[154.203.197.109] Jan 16 08:22:53 srv4hai postfix/smtpd[2109]: disconnect from unknown[154.203.197.109] ehlo=1 auth=0/1 commands=1/2 Jan 16 08:23:01 srv4hai CRON[2117]: (root) CMD (/etc/linetest/linetest.sh) Jan 16 08:23:47 srv4hai dovecot: imap-login: Login: user= , method=PLAIN, rip=::1, lip=::1, mpid=2128, secured, session=<2DXGrM0rcukAAAAAAAAAAAAAAAAAAAAB> Jan 16 08:23:47 srv4hai dovecot: imap(miglincit)<2128><2DXGrM0rcukAAAAAAAAAAAAAAAAAAAAB>: Logged out in=2039 out=166325 deleted=0 expunged=0 trashed=0 hdr_count=255 hdr_bytes=92091 body_count=0 body_bytes=0 Jan 16 08:24:01 srv4hai CRON[2140]: (root) CMD (/etc/linetest/linetest.sh) Jan 16 08:25:01 srv4hai CRON[2154]: (root) CMD (/etc/linetest/linetest.sh) Jan 16 08:25:08 srv4hai dhcpd[4995]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0 Jan 16 08:25:08 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0 Jan 16 08:25:08 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh Jan 16 08:25:08 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.61 Jan 16 08:25:08 srv4hai dhcpd[4995]: execute_statement argv[2] = fpThomas Jan 16 08:25:08 srv4hai common[2159]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh Jan 16 08:25:08 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0' Jan 16 08:25:08 srv4hai common[2175]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh Jan 16 08:25:08 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0 Jan 16 08:25:08 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0 Jan 16 08:25:08 srv4hai named[30406]: client @0x7f9348090720 192.168.12.252#40717/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN) Jan 16 08:25:08 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#44701/key rndc-key: signer "rndc-key" approved Jan 16 08:25:08 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#44701/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT Jan 16 08:25:08 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#44701/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2" Jan 16 08:25:08 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#44701/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A Jan 16 08:25:08 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#44701/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61 Jan 16 08:25:08 srv4hai dhcpd[4995]: Added new forward map from fpThomas.viehai.at to 192.168.12.61 Jan 16 08:25:08 srv4hai named[30406]: client @0x7f933010ba20 192.168.12.252#43193/key rndc-key: signer "rndc-key" approved Jan 16 08:25:08 srv4hai named[30406]: client @0x7f933010ba20 192.168.12.252#43193/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR Jan 16 08:25:08 srv4hai named[30406]: client @0x7f933010ba20 192.168.12.252#43193/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '61.12.168.192.in-addr.arpa' PTR fpThomas.viehai.at. Jan 16 08:25:08 srv4hai dhcpd[4995]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at Jan 16 08:25:08 srv4hai ping_SP[2175]: SHELLY ping_SP.sh started from smartphone, user:'root' Jan 16 08:25:13 srv4hai common[2198]: SHELLY common.sh inkludiert von ./bt_scan.sh Jan 16 08:25:18 srv4hai common[2220]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh Jan 16 08:25:19 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'5'=1737012319-1737012314 Jan 16 08:25:19 srv4hai check_presence[2220]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.No Jan 16 08:25:19 srv4hai check_presence[2220]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming' Jan 16 08:25:19 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'5'=1737012319-1737012314 Jan 16 08:25:19 srv4hai check_presence[2220]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No Jan 16 08:25:19 srv4hai check_presence[2220]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'false' Jan 16 08:25:19 srv4hai check_presence[2220]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn) Jan 16 08:25:19 srv4hai check_presence[2220]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY last scenario: 'offAll' @ '082108' from 'scene_offAll_20250116_082108.txt' - delta=-11 Jan 16 08:25:19 srv4hai activate_scenario[2340]: dateutils.ddiff -i '%Y%m%d%H%M%s' 20250116082519 20250116082108 -f '%S' Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY new scenario: 'vorraumOn' different - GO ON Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY scenario: 'vorraumOn(vorraumon)' started Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0' Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0' Jan 16 08:25:19 srv4hai postfix/pickup[26094]: 6631F63463: uid=33 from= Jan 16 08:25:19 srv4hai postfix/cleanup[2425]: 6631F63463: message-id=<20250116072519.6631F63463@mail.viehai.at> Jan 16 08:25:19 srv4hai postfix/qmgr[8566]: 6631F63463: from= , size=8922, nrcpt=1 (queue active) Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'VZ Licht' --> '0?turn=on' Jan 16 08:25:19 srv4hai proc_url[2447]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2025/01/16/_0.log' - shellyUsage:'VZ Licht' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0'' Jan 16 08:25:19 srv4hai activate_scenario[2340]: SHELLY scenario: 'vorraumOn(vorraumon)' took 56 msec, phoneName:'0' Jan 16 08:25:19 srv4hai ping_SP[2175]: SHELLY check_presence.sh coming 0 ping_SP__smartphone Jan 16 08:25:20 srv4hai postfix/relay/smtp[2441]: 6631F63463: to= , relay=mx02.nic.name[209.131.158.56]:25, delay=0.74, delays=0.02/0.01/0.45/0.26, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as EB0028017A) Jan 16 08:25:20 srv4hai postfix/qmgr[8566]: 6631F63463: removed Jan 16 08:25:21 srv4hai ping_SP[2175]: SHELLY - new process for '192.168.12.61' - '/srv/www/viehai/shelly//meter/ping_SP_0' @~1737012321 Jan 16 08:25:23 srv4hai bt_scan[2198]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes' Jan 16 08:25:23 srv4hai bt_scan[2198]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61' Jan 16 08:25:34 srv4hai ping_SP[2175]: SHELLY (0) - ping 192.168.12.61 0 sucessfully @~1737012334 - 'ping_SP_0' Jan 16 08:25:34 srv4hai ping_SP[2175]: SHELLY (0) - ping 192.168.12.61 pCnt:'1' Jan 16 08:25:56 srv4hai activate_scenario[2538]: SHELLY last scenario: 'vorraumOn' @ '082519' from 'scene_vorraumOn_20250116_082519.txt' - delta=-37 Jan 16 08:25:56 srv4hai activate_scenario[2538]: dateutils.ddiff -i '%Y%m%d%H%M%s' 20250116082556 20250116082519 -f '%S' Jan 16 08:25:56 srv4hai activate_scenario[2538]: SHELLY new scenario: 'homeOffice' different - GO ON Jan 16 08:25:56 srv4hai activate_scenario[2538]: SHELLY scenario: 'homeOffice(homeoffice)' started Jan 16 08:25:56 srv4hai activate_scenario[2538]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'
finished