activate_scenario.sh
Thu Dec 19 15:34:17 CET 2024
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/2024/12/19/_0.log)

vorher: 15:34:17.931

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: 15:34:17.994
Dauer: 62 msec phName: 'shelly-40:'TB Licht''


TB Licht (/srv/www/viehai/shelly/log_scenarios/2024/12/19/_1.log)

vorher: 15:34:17.948

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


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

urls : 2
vorher : 15:34:17.910
nachher: 15:34:18.001
Dauer : 90 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/12/19//scene_buero_UM_20241219_153417.txt'


syslog

Dec 19 15:31:01 srv4hai CRON[7029]: (root) CMD (/etc/linetest/linetest.sh)
Dec 19 15:31:04 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=7036, secured, session=
Dec 19 15:31:04 srv4hai dovecot: imap(miglincit)<7036>: Logged out in=2018 out=165299 deleted=0 expunged=0 trashed=0 hdr_count=261 hdr_bytes=89933 body_count=0 body_bytes=0
Dec 19 15:31:07 srv4hai postfix/smtpd[7021]: connect from unknown[80.94.95.239]
Dec 19 15:31:09 srv4hai postfix/smtpd[7021]: warning: unknown[80.94.95.239]: SASL LOGIN authentication failed: Invalid authentication mechanism
Dec 19 15:31:10 srv4hai postfix/smtpd[7021]: disconnect from unknown[80.94.95.239] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Dec 19 15:31:36 srv4hai mosquitto[29419]: New connection from 192.168.12.101 on port 1883.
Dec 19 15:31:36 srv4hai mosquitto[29419]: Socket error on client , disconnecting.
Dec 19 15:31:55 srv4hai dhcpd[4995]: DHCPDISCOVER from 08:3a:8d:d0:46:5a via enp2s0
Dec 19 15:31:55 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.5 to 08:3a:8d:d0:46:5a via enp2s0
Dec 19 15:31:57 srv4hai dhcpd[4995]: DHCPDISCOVER from 08:3a:8d:d0:46:5a via enp2s0
Dec 19 15:31:57 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.5 to 08:3a:8d:d0:46:5a via enp2s0
Dec 19 15:31:57 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/dhcpcommit.sh
Dec 19 15:31:57 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.5
Dec 19 15:31:57 srv4hai dhcpd[4995]: execute_statement argv[2] = btscan1
Dec 19 15:31:57 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.5 (192.168.12.252) from 08:3a:8d:d0:46:5a via enp2s0
Dec 19 15:31:57 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.5 to 08:3a:8d:d0:46:5a via enp2s0
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#51595/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: btscan1.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9350685ed0 192.168.12.252#47853/key rndc-key: signer "rndc-key" approved
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9350685ed0 192.168.12.252#47853/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'btscan1.viehai.at' TXT
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9350685ed0 192.168.12.252#47853/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'btscan1.viehai.at' TXT "000118916176265854cff71f762ffe0635"
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9350685ed0 192.168.12.252#47853/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'btscan1.viehai.at' A
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9350685ed0 192.168.12.252#47853/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'btscan1.viehai.at' A 192.168.12.5
Dec 19 15:31:57 srv4hai dhcpcommit.sh: SHELLY ip:'192.168.12.5'(5) device 'btscan1'
Dec 19 15:31:57 srv4hai dhcpd[4995]: Added new forward map from btscan1.viehai.at to 192.168.12.5
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9310079c50 192.168.12.252#58709/key rndc-key: signer "rndc-key" approved
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9310079c50 192.168.12.252#58709/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '5.12.168.192.in-addr.arpa' PTR
Dec 19 15:31:57 srv4hai named[30406]: client @0x7f9310079c50 192.168.12.252#58709/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '5.12.168.192.in-addr.arpa' PTR btscan1.viehai.at.
Dec 19 15:31:57 srv4hai dhcpd[4995]: Added reverse map from 5.12.168.192.in-addr.arpa. to btscan1.viehai.at
Dec 19 15:31:57 srv4hai dhcpcommit.sh: SHELLY device 'btscan1' known and accepted
Dec 19 15:32:01 srv4hai CRON[7052]: (root) CMD (/etc/linetest/linetest.sh)
Dec 19 15:32:35 srv4hai mosquitto[29419]: New connection from 192.168.12.101 on port 1883.
Dec 19 15:32:35 srv4hai mosquitto[29419]: Socket error on client , disconnecting.
Dec 19 15:32:50 srv4hai dhcpd[4995]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Dec 19 15:32:50 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Dec 19 15:32:50 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Dec 19 15:32:50 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.61
Dec 19 15:32:50 srv4hai dhcpd[4995]: execute_statement argv[2] = fpThomas
Dec 19 15:32:50 srv4hai common[7060]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Dec 19 15:32:50 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Dec 19 15:32:50 srv4hai common[7075]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Dec 19 15:32:50 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Dec 19 15:32:50 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f93480cbdb0 192.168.12.252#34461/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f93501490e0 192.168.12.252#41189/key rndc-key: signer "rndc-key" approved
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f93501490e0 192.168.12.252#41189/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f93501490e0 192.168.12.252#41189/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f93501490e0 192.168.12.252#41189/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f93501490e0 192.168.12.252#41189/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Dec 19 15:32:50 srv4hai dhcpd[4995]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#33293/key rndc-key: signer "rndc-key" approved
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#33293/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Dec 19 15:32:50 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#33293/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.
Dec 19 15:32:50 srv4hai dhcpd[4995]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Dec 19 15:32:50 srv4hai ping_SP[7075]: SHELLY ping_SP.sh started from smartphone, user:'root'
Dec 19 15:33:00 srv4hai common[7108]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Dec 19 15:33:01 srv4hai common.sh: SHELLY: BTstatus[0]:'BTdweet_older_60sec' dweetAge:'119'=1734618781-1734618662
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and BTdweet_older_60sec//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Dec 19 15:33:01 srv4hai common.sh: SHELLY: BTstatus[1]:'BTdweet_older_60sec' dweetAge:'119'=1734618781-1734618662
Dec 19 15:33:01 srv4hai CRON[7165]: (root) CMD (/etc/linetest/linetest.sh)
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and BTdweet_older_60sec//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Dec 19 15:33:01 srv4hai common.sh: SHELLY: BTstatus[2]:'BTdweet_older_60sec' dweetAge:'119'=1734618781-1734618662
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and BTdweet_older_60sec//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Dec 19 15:33:01 srv4hai check_presence[7108]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Dec 19 15:33:01 srv4hai activate_scenario[7251]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Dec 19 15:33:01 srv4hai activate_scenario[7251]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'
Dec 19 15:33:01 srv4hai activate_scenario[7251]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0'
Dec 19 15:33:01 srv4hai postfix/pickup[30453]: 6E26C63463: uid=33 from=
Dec 19 15:33:01 srv4hai postfix/cleanup[7301]: 6E26C63463: message-id=<20241219143301.6E26C63463@mail.viehai.at>
Dec 19 15:33:01 srv4hai postfix/qmgr[8566]: 6E26C63463: from=, size=35103, nrcpt=1 (queue active)
Dec 19 15:33:01 srv4hai activate_scenario[7251]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'VZ Licht' --> '0?turn=on'
Dec 19 15:33:01 srv4hai proc_url[7318]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/12/19/_0.log' - shellyUsage:'VZ Licht' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0''
Dec 19 15:33:01 srv4hai activate_scenario[7251]: SHELLY scenario: 'vorraumOn(vorraumon)' took 103 msec, phoneName:'0'
Dec 19 15:33:01 srv4hai ping_SP[7075]: SHELLY check_presence.sh coming 0 ping_SP__smartphone
Dec 19 15:33:02 srv4hai postfix/relay/smtp[7314]: 6E26C63463: to=, relay=mx04.nic.name[209.131.160.34]:25, delay=0.78, delays=0.05/0.01/0.33/0.38, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as D8E0D6014E)
Dec 19 15:33:02 srv4hai postfix/qmgr[8566]: 6E26C63463: removed
Dec 19 15:33:03 srv4hai ping_SP[7075]: SHELLY - new process for '192.168.12.61' - '/srv/www/viehai/shelly//meter/ping_SP_0' @~1734618783
Dec 19 15:33:16 srv4hai ping_SP[7075]: SHELLY (0) - ping 192.168.12.61 0 sucessfully  @~1734618796 - 'ping_SP_0'
Dec 19 15:33:16 srv4hai ping_SP[7075]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Dec 19 15:33:30 srv4hai mosquitto[29419]: New connection from 192.168.12.101 on port 1883.
Dec 19 15:33:30 srv4hai mosquitto[29419]: Socket error on client , disconnecting.
Dec 19 15:33:32 srv4hai postfix/smtpd[7382]: connect from unknown[154.203.197.200]
Dec 19 15:33:32 srv4hai postfix/smtpd[7382]: warning: unknown[154.203.197.200]: SASL LOGIN authentication failed: Invalid authentication mechanism
Dec 19 15:33:32 srv4hai postfix/smtpd[7382]: disconnect from unknown[154.203.197.200] ehlo=1 auth=0/1 quit=1 commands=2/3
Dec 19 15:34:01 srv4hai CRON[7388]: (root) CMD (/etc/linetest/linetest.sh)
Dec 19 15:34:04 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=7396, secured, session=
Dec 19 15:34:04 srv4hai systemd[1]: Started Run anacron jobs.
Dec 19 15:34:04 srv4hai anacron[7397]: Anacron 2.3 started on 2024-12-19
Dec 19 15:34:04 srv4hai anacron[7397]: Normal exit (0 jobs run)
Dec 19 15:34:04 srv4hai systemd[1]: anacron.service: Succeeded.
Dec 19 15:34:04 srv4hai dovecot: imap(miglincit)<7396>: Logged out in=1843 out=1441 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Dec 19 15:34:17 srv4hai activate_scenario[7404]: SHELLY scenario: 'buero_UM(buero_um)' started
Dec 19 15:34:17 srv4hai activate_scenario[7404]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'

finished