activate_scenario.sh
Sun Jan 5 11:49:53 CET 2025
scenario: buero_UM
source: 192.168.12.140

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

scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

TB Regallicht (/srv/www/viehai/shelly/log_scenarios/2025/01/05/_0.log)

vorher: 11:49:53.574

http://192.168.12.108/relay/0?turn=toggle
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 11:49:53.655
Dauer: 82 msec phName: 'shelly-40:'TB Licht''


TB Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/05/_1.log)

vorher: 11:49:53.594

http://192.168.12.140/relay/0?turn=toggle
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 11:49:53.671
Dauer: 77 msec phName: 'shelly-40:'TB Licht''


scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

urls : 2
vorher : 11:49:53.546
nachher: 11:49:53.677
Dauer : 131 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/01/05//scene_buero_UM_20250105_114953.txt'


syslog

Jan  5 11:46:01 srv4hai CRON[17648]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 11:46:10 srv4hai postfix/anvil[17374]: statistics: max connection rate 1/60s for (smtp:80.94.95.239) at Jan  5 11:42:48
Jan  5 11:46:10 srv4hai postfix/anvil[17374]: statistics: max connection count 1 for (smtp:80.94.95.239) at Jan  5 11:42:48
Jan  5 11:46:10 srv4hai postfix/anvil[17374]: statistics: max cache size 1 at Jan  5 11:42:48
Jan  5 11:46:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17655, secured, session=
Jan  5 11:46:14 srv4hai dovecot: imap(rozumm)<17655>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 11:46:18 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jan  5 11:46:19 srv4hai fetchmail[1651]: 60819 messages (60819 seen) for tmiglinci at mail.akis.at (688058867 octets).
Jan  5 11:46:19 srv4hai fetchmail[1651]: 11341 messages (11341 seen) for srozum at mail.akis.at (1355366635 octets).
Jan  5 11:46:20 srv4hai fetchmail[1651]: 28174 messages (28174 seen) for mrozum at mail.akis.at (540224053 octets).
Jan  5 11:46:20 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Jan  5 11:46:41 srv4hai dhcpd[4995]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Jan  5 11:46:41 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jan  5 11:46:41 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jan  5 11:46:41 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.61
Jan  5 11:46:41 srv4hai dhcpd[4995]: execute_statement argv[2] = fpThomas
Jan  5 11:46:41 srv4hai common[17665]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jan  5 11:46:41 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jan  5 11:46:41 srv4hai common[17680]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jan  5 11:46:41 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jan  5 11:46:41 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f933805ba90 192.168.12.252#49785/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93100d8ab0 192.168.12.252#54507/key rndc-key: signer "rndc-key" approved
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93100d8ab0 192.168.12.252#54507/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93100d8ab0 192.168.12.252#54507/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93100d8ab0 192.168.12.252#54507/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93100d8ab0 192.168.12.252#54507/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Jan  5 11:46:41 srv4hai dhcpd[4995]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#53355/key rndc-key: signer "rndc-key" approved
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#53355/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Jan  5 11:46:41 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#53355/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  5 11:46:41 srv4hai dhcpd[4995]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Jan  5 11:46:41 srv4hai ping_SP[17680]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jan  5 11:46:44 srv4hai postfix/smtpd[17701]: connect from unknown[80.94.95.239]
Jan  5 11:46:44 srv4hai postfix/smtpd[17701]: warning: unknown[80.94.95.239]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jan  5 11:46:44 srv4hai postfix/smtpd[17701]: disconnect from unknown[80.94.95.239] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Jan  5 11:46:51 srv4hai common[17713]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jan  5 11:46:52 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'9'=1736074012-1736074003
Jan  5 11:46:52 srv4hai check_presence[17713]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jan  5 11:46:52 srv4hai check_presence[17713]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jan  5 11:46:52 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'9'=1736074012-1736074003
Jan  5 11:46:52 srv4hai check_presence[17713]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jan  5 11:46:52 srv4hai check_presence[17713]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Jan  5 11:46:52 srv4hai check_presence[17713]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Jan  5 11:46:52 srv4hai check_presence[17713]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY last scenario: 'offAll' @ '102055' from 'scene_offAll_20250105_102055.txt' - delta=3
Jan  5 11:46:52 srv4hai activate_scenario[17827]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250105114652 20250105102055  -f '%S'
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY  new scenario: 'vorraumOn' different - GO ON
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0'
Jan  5 11:46:52 srv4hai postfix/pickup[10890]: 7DE6E63463: uid=33 from=
Jan  5 11:46:52 srv4hai postfix/cleanup[17889]: 7DE6E63463: message-id=<20250105104652.7DE6E63463@mail.viehai.at>
Jan  5 11:46:52 srv4hai postfix/qmgr[8566]: 7DE6E63463: from=, size=16658, nrcpt=1 (queue active)
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'VZ Licht' --> '0?turn=on'
Jan  5 11:46:52 srv4hai proc_url[17906]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2025/01/05/_0.log' - shellyUsage:'VZ Licht' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0''
Jan  5 11:46:52 srv4hai activate_scenario[17827]: SHELLY scenario: 'vorraumOn(vorraumon)' took 63 msec, phoneName:'0'
Jan  5 11:46:52 srv4hai ping_SP[17680]: SHELLY check_presence.sh coming 0 ping_SP__smartphone
Jan  5 11:46:53 srv4hai postfix/relay/smtp[17902]: 7DE6E63463: to=, relay=mx01.nic.name[209.131.159.47]:25, delay=1, delays=0.03/0.01/0.65/0.35, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 3E6AE60120)
Jan  5 11:46:53 srv4hai postfix/qmgr[8566]: 7DE6E63463: removed
Jan  5 11:46:54 srv4hai ping_SP[17680]: SHELLY - new process for '192.168.12.61' - '/srv/www/viehai/shelly//meter/ping_SP_0' @~1736074014
Jan  5 11:47:01 srv4hai CRON[17949]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 11:47:03 srv4hai common[17955]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jan  5 11:47:08 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 0 sucessfully  @~1736074028 - 'ping_SP_0'
Jan  5 11:47:08 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan  5 11:47:13 srv4hai bt_scan[17955]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Jan  5 11:47:13 srv4hai bt_scan[17955]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Jan  5 11:47:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=18003, secured, session=<35wcPPMqpr4AAAAAAAAAAAAAAAAAAAAB>
Jan  5 11:47:14 srv4hai dovecot: imap(rozumm)<18003><35wcPPMqpr4AAAAAAAAAAAAAAAAAAAAB>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 11:48:01 srv4hai CRON[18014]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 11:48:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=18025, secured, session=<3RuwP/Mqrr4AAAAAAAAAAAAAAAAAAAAB>
Jan  5 11:48:14 srv4hai dovecot: imap(rozumm)<18025><3RuwP/Mqrr4AAAAAAAAAAAAAAAAAAAAB>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 11:48:21 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1736074101 - 'ping_SP_0'
Jan  5 11:48:21 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan  5 11:49:01 srv4hai CRON[18047]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 11:49:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=18055, secured, session=
Jan  5 11:49:14 srv4hai dovecot: imap(rozumm)<18055>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 11:49:34 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1736074174 - 'ping_SP_0'
Jan  5 11:49:34 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan  5 11:49:53 srv4hai activate_scenario[18085]: SHELLY last scenario: 'vorraumOn' @ '114652' from 'scene_vorraumOn_20250105_114652.txt' - delta=-1
Jan  5 11:49:53 srv4hai activate_scenario[18085]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250105114953 20250105114652  -f '%S'
Jan  5 11:49:53 srv4hai activate_scenario[18085]: SHELLY  new scenario: 'buero_UM' different - GO ON
Jan  5 11:49:53 srv4hai activate_scenario[18085]: SHELLY scenario: 'buero_UM(buero_um)' started
Jan  5 11:49:53 srv4hai activate_scenario[18085]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'

finished