activate_scenario.sh
Thu Jan 23 15:39:42 CET 2025
scenario: homeOffice
source: 192.168.12.140

'day' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'null'

scenario: 'Home-Office' - 'homeOffice' - 'homeoffice'

WZ Licht Esstisch (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_0.log)

vorher: 15:39:42.178

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: 15:39:42.194
Dauer: 17 msec phName: 'shelly-40:'TB Licht''


Balkon Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_1.log)

vorher: 15:39:42.196

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: 15:39:42.230
Dauer: 33 msec phName: 'shelly-40:'TB Licht''


VZ Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_2.log)

vorher: 15:39:42.216

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: 15:39:42.244
Dauer: 28 msec phName: 'shelly-40:'TB Licht''


WZ Stehlampe hell (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_3.log)

vorher: 15:39:42.235

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: 15:39:42.265
Dauer: 29 msec phName: 'shelly-40:'TB Licht''


WZ Licht Fernsehlampe klein (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_4.log)

vorher: 15:39:42.254

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: 15:39:42.288
Dauer: 33 msec phName: 'shelly-40:'TB Licht''


SZ Nachtkästchen Thomas (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_5.log)

vorher: 15:39:42.273

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: 15:39:42.302
Dauer: 29 msec phName: 'shelly-40:'TB Licht''


TB Regallicht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_6.log)

vorher: 15:39:42.292

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: 15:39:42.333
Dauer: 40 msec phName: 'shelly-40:'TB Licht''


GB Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_7.log)

vorher: 15:39:42.312

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: 15:39:42.353
Dauer: 41 msec phName: 'shelly-40:'TB Licht''


WZ Licht Bücherregal (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_8.log)

vorher: 15:39:42.331

http://192.168.12.110/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 15:39:42.355
Dauer: 25 msec phName: 'shelly-40:'TB Licht''


SZ Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_9.log)

vorher: 15:39:42.352

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: 15:39:42.374
Dauer: 23 msec phName: 'shelly-40:'TB Licht''


KÜ Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_10.log)

vorher: 15:39:42.373

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: 15:39:42.394
Dauer: 22 msec phName: 'shelly-40:'TB Licht''


KÜ Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_11.log)

vorher: 15:39:42.396

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: 15:39:42.451
Dauer: 55 msec phName: 'shelly-40:'TB Licht''


KÜ Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_12.log)

vorher: 15:39:42.417

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: 15:39:42.440
Dauer: 22 msec phName: 'shelly-40:'TB Licht''


KÜ Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_13.log)

vorher: 15:39:42.436

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: 15:39:42.511
Dauer: 74 msec phName: 'shelly-40:'TB Licht''


GB Fernsehlampe (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_14.log)

vorher: 15:39:42.457

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: 15:39:42.493
Dauer: 37 msec phName: 'shelly-40:'TB Licht''


WZ Licht Sofa (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_15.log)

vorher: 15:39:42.476

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: 15:39:42.499
Dauer: 23 msec phName: 'shelly-40:'TB Licht''


Empore Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_16.log)

vorher: 15:39:42.495

http://192.168.12.124/relay/0?turn=on
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 15:39:42.529
Dauer: 34 msec phName: 'shelly-40:'TB Licht''


KÜ Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_17.log)

vorher: 15:39:42.517

http://192.168.12.125/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 15:39:42.727
Dauer: 209 msec phName: 'shelly-40:'TB Licht''


TB Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_18.log)

vorher: 15:39:42.537

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: 15:39:42.565
Dauer: 27 msec phName: 'shelly-40:'TB Licht''


GB Schreibtischlampe rechts (/srv/www/viehai/shelly/log_scenarios/2025/01/23/_19.log)

vorher: 15:39:42.557

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: 15:39:42.583
Dauer: 26 msec phName: 'shelly-40:'TB Licht''


scenario: 'Home-Office' - 'homeOffice' - 'homeoffice'

urls : 20
vorher : 15:39:42.153
nachher: 15:39:42.735
Dauer : 581 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/01/23//scene_homeOffice_20250123_153942.txt'


syslog

Jan 23 15:36:01 srv4hai CRON[10997]: (root) CMD (/etc/linetest/linetest.sh)
Jan 23 15:37:01 srv4hai CRON[11017]: (root) CMD (/etc/linetest/linetest.sh)
Jan 23 15:37:36 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=11030, secured, session=
Jan 23 15:37:36 srv4hai dovecot: imap(miglincit)<11030>: Logged out in=1829 out=1285 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 23 15:38:01 srv4hai CRON[11041]: (root) CMD (/etc/linetest/linetest.sh)
Jan 23 15:38:10 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jan 23 15:38:11 srv4hai fetchmail[1651]: 62097 messages (62097 seen) for tmiglinci at mail.akis.at (785348299 octets).
Jan 23 15:38:12 srv4hai fetchmail[1651]: 11434 messages (11433 seen) for srozum at mail.akis.at (1361603953 octets).
Jan 23 15:38:12 srv4hai postfix/smtpd[11047]: connect from localhost[127.0.0.1]
Jan 23 15:38:12 srv4hai postfix/smtpd[11047]: 631E96345A: client=localhost[127.0.0.1]
Jan 23 15:38:12 srv4hai postfix/cleanup[11050]: 631E96345A: message-id=
Jan 23 15:38:12 srv4hai fetchmail[1651]: reading message srozum@mail.akis.at:11434 of 11434 (40226 octets) not flushed
Jan 23 15:38:12 srv4hai postfix/qmgr[8566]: 631E96345A: from=, size=40504, nrcpt=1 (queue active)
Jan 23 15:38:12 srv4hai postfix/smtpd[11047]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 23 15:38:12 srv4hai postfix/local[11051]: 631E96345A: to=, relay=local, delay=0.09, delays=0.07/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Jan 23 15:38:12 srv4hai postfix/qmgr[8566]: 631E96345A: removed
Jan 23 15:38:13 srv4hai fetchmail[1651]: 28490 messages (28490 seen) for mrozum at mail.akis.at (587854643 octets).
Jan 23 15:38:13 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Jan 23 15:38:17 srv4hai dhcpd[4995]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Jan 23 15:38:17 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jan 23 15:38:17 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jan 23 15:38:17 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.61
Jan 23 15:38:17 srv4hai dhcpd[4995]: execute_statement argv[2] = fpThomas
Jan 23 15:38:17 srv4hai common[11053]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jan 23 15:38:17 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jan 23 15:38:17 srv4hai common[11068]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jan 23 15:38:17 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jan 23 15:38:17 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f9350157870 192.168.12.252#54893/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f93300ede20 192.168.12.252#48421/key rndc-key: signer "rndc-key" approved
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f93300ede20 192.168.12.252#48421/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f93300ede20 192.168.12.252#48421/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f93300ede20 192.168.12.252#48421/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f93300ede20 192.168.12.252#48421/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Jan 23 15:38:17 srv4hai dhcpd[4995]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f934c0645f0 192.168.12.252#45197/key rndc-key: signer "rndc-key" approved
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f934c0645f0 192.168.12.252#45197/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Jan 23 15:38:17 srv4hai named[30406]: client @0x7f934c0645f0 192.168.12.252#45197/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 23 15:38:17 srv4hai dhcpd[4995]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Jan 23 15:38:17 srv4hai ping_SP[11068]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jan 23 15:38:17 srv4hai common[11091]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jan 23 15:38:27 srv4hai common[11114]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jan 23 15:38:27 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'3'=1737643107-1737643104
Jan 23 15:38:27 srv4hai bt_scan[11091]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Jan 23 15:38:27 srv4hai check_presence[11114]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On/
Jan 23 15:38:27 srv4hai bt_scan[11091]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Jan 23 15:38:27 srv4hai check_presence[11114]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jan 23 15:38:27 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'3'=1737643107-1737643104
Jan 23 15:38:27 srv4hai check_presence[11114]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jan 23 15:38:27 srv4hai check_presence[11114]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Jan 23 15:38:27 srv4hai check_presence[11114]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Jan 23 15:38:27 srv4hai check_presence[11114]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Jan 23 15:38:27 srv4hai activate_scenario[11250]: SHELLY last scenario: 'offAll' @ '130139' from 'scene_offAll_20250123_130139.txt' - delta=12
Jan 23 15:38:27 srv4hai activate_scenario[11250]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250123153827 20250123130139  -f '%S'
Jan 23 15:38:27 srv4hai activate_scenario[11250]: SHELLY  new scenario: 'vorraumOn' different - GO ON
Jan 23 15:38:27 srv4hai activate_scenario[11250]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jan 23 15:38:27 srv4hai activate_scenario[11250]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'
Jan 23 15:38:27 srv4hai activate_scenario[11250]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0'
Jan 23 15:38:27 srv4hai postfix/pickup[5714]: E68C263463: uid=33 from=
Jan 23 15:38:27 srv4hai postfix/cleanup[11050]: E68C263463: message-id=<20250123143827.E68C263463@mail.viehai.at>
Jan 23 15:38:27 srv4hai postfix/qmgr[8566]: E68C263463: from=, size=14334, nrcpt=1 (queue active)
Jan 23 15:38:27 srv4hai activate_scenario[11250]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'VZ Licht' --> '0?turn=on'
Jan 23 15:38:27 srv4hai proc_url[11327]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2025/01/23/_0.log' - shellyUsage:'VZ Licht' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0''
Jan 23 15:38:28 srv4hai activate_scenario[11250]: SHELLY scenario: 'vorraumOn(vorraumon)' took 145 msec, phoneName:'0'
Jan 23 15:38:28 srv4hai ping_SP[11068]: SHELLY check_presence.sh coming 0 ping_SP__smartphone
Jan 23 15:38:28 srv4hai postfix/relay/smtp[11315]: E68C263463: to=, relay=mx01.nic.name[209.131.159.47]:25, delay=0.92, delays=0.01/0.01/0.54/0.36, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 8A70D60091)
Jan 23 15:38:28 srv4hai postfix/qmgr[8566]: E68C263463: removed
Jan 23 15:38:29 srv4hai postfix/smtpd[11047]: warning: hostname 107-174-68-151-host.colocrossing.com does not resolve to address 107.174.68.151: Name or service not known
Jan 23 15:38:29 srv4hai postfix/smtpd[11047]: connect from unknown[107.174.68.151]
Jan 23 15:38:30 srv4hai ping_SP[11068]: SHELLY - new process for '192.168.12.61' - '/srv/www/viehai/shelly//meter/ping_SP_0' @~1737643110
Jan 23 15:38:33 srv4hai postfix/smtpd[11047]: warning: unknown[107.174.68.151]: SASL PLAIN authentication failed: 
Jan 23 15:38:33 srv4hai postfix/smtpd[11047]: disconnect from unknown[107.174.68.151] ehlo=1 auth=0/1 quit=1 commands=2/3
Jan 23 15:38:43 srv4hai ping_SP[11068]: SHELLY (0) - ping 192.168.12.61 0 sucessfully  @~1737643123 - 'ping_SP_0'
Jan 23 15:38:43 srv4hai ping_SP[11068]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 23 15:39:00 srv4hai systemd[1]: Starting Clean php session files...
Jan 23 15:39:00 srv4hai systemd[1]: phpsessionclean.service: Succeeded.
Jan 23 15:39:00 srv4hai systemd[1]: Started Clean php session files.
Jan 23 15:39:01 srv4hai CRON[11484]: (root) CMD (/etc/linetest/linetest.sh)
Jan 23 15:39:01 srv4hai CRON[11485]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jan 23 15:39:42 srv4hai activate_scenario[11500]: SHELLY last scenario: 'vorraumOn' @ '153827' from 'scene_vorraumOn_20250123_153827.txt' - delta=-15
Jan 23 15:39:42 srv4hai activate_scenario[11500]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250123153942 20250123153827  -f '%S'
Jan 23 15:39:42 srv4hai activate_scenario[11500]: SHELLY  new scenario: 'homeOffice' different - GO ON
Jan 23 15:39:42 srv4hai activate_scenario[11500]: SHELLY scenario: 'homeOffice(homeoffice)' started
Jan 23 15:39:42 srv4hai activate_scenario[11500]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'

finished