activate_scenario.sh
Fri Aug 16 12:50:02 CEST 2024
scenario: vorraumOn
phoneName: 0

'day' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'thomas@miglinci.name'

scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/08/16/_0.log)

vorher: 12:50:02.327

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

nachher: 12:50:02.365
Dauer: 38 msec phName: 'phoneName:'0''


scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

urls : 1
vorher : 12:50:02.298
nachher: 12:50:02.372
Dauer : 75 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/08/16//scene_vorraumOn_20240816_125002.txt'


syslog

Aug 16 12:47:01 srv4hai CRON[6439]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 12:47:02 srv4hai ping_SP[26779]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1723805222 - 'ping_SP_1'
Aug 16 12:47:02 srv4hai ping_SP[26779]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Aug 16 12:47:06 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=6460, secured, session=
Aug 16 12:47:06 srv4hai dovecot: imap(rozumm)<6460>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 12:47:07 srv4hai smartphone.sh: SHELLY - ping_SP.sh already started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Aug 16 12:47:07 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Aug 16 12:47:07 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/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.
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/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.
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/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.
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: signer "rndc-key" approved
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Aug 16 12:47:07 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#45437/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.
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Aug 16 12:47:07 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Aug 16 12:48:01 srv4hai CRON[6476]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 12:48:06 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=6488, secured, session=
Aug 16 12:48:06 srv4hai dovecot: imap(rozumm)<6488>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 12:48:16 srv4hai ping_SP[26779]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1723805296 - 'ping_SP_1'
Aug 16 12:48:16 srv4hai ping_SP[26779]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Aug 16 12:48:39 srv4hai common[6512]: SHELLY common.sh inkludiert von ./bt_scan.sh
Aug 16 12:48:42 srv4hai postfix/smtpd[6527]: connect from linkmasters.ru[45.95.146.101]
Aug 16 12:48:42 srv4hai postfix/smtpd[6527]: F2C8A6004E: client=linkmasters.ru[45.95.146.101]
Aug 16 12:48:43 srv4hai postfix/cleanup[6530]: F2C8A6004E: message-id=<847732788c9fa0c7e44ad3788c0ca6ac9ad8b859@rt.com>
Aug 16 12:48:44 srv4hai postfix/qmgr[8566]: F2C8A6004E: from=, size=26066, nrcpt=1 (queue active)
Aug 16 12:48:44 srv4hai postfix/local[6531]: F2C8A6004E: to=, orig_to=, relay=local, delay=1.4, delays=1.3/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Aug 16 12:48:44 srv4hai postfix/qmgr[8566]: F2C8A6004E: removed
Aug 16 12:48:44 srv4hai postfix/smtpd[6527]: disconnect from linkmasters.ru[45.95.146.101] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Aug 16 12:48:49 srv4hai bt_scan[6512]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Aug 16 12:48:49 srv4hai bt_scan[6512]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Aug 16 12:48:49 srv4hai common[6551]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Aug 16 12:48:50 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1723805330-1723805319
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Aug 16 12:48:50 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'11'=1723805330-1723805319
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Aug 16 12:48:50 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1723805330-1723805319
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/__) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_vorraumOn) - sceneOFF(offAll)
Aug 16 12:48:50 srv4hai check_presence[6551]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Aug 16 12:48:56 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=6702, secured, session=
Aug 16 12:48:56 srv4hai dovecot: imap(miglincit)<6702>: Logged out in=688 out=53184 deleted=0 expunged=0 trashed=0 hdr_count=58 hdr_bytes=24937 body_count=0 body_bytes=0
Aug 16 12:48:57 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Aug 16 12:48:58 srv4hai fetchmail[1651]: 50146 messages (50146 seen) for tmiglinci at mail.akis.at (-145892977 octets).
Aug 16 12:48:59 srv4hai fetchmail[1651]: 10587 messages (10587 seen) for srozum at mail.akis.at (1272362313 octets).
Aug 16 12:48:59 srv4hai fetchmail[1651]: 25348 messages (25348 seen) for mrozum at mail.akis.at (123622773 octets).
Aug 16 12:49:00 srv4hai fetchmail[1651]: 1140 messages (1140 seen) for admin@bastelstube.wien at pop3.world4you.com (51587871 octets).
Aug 16 12:49:01 srv4hai CRON[6704]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 12:49:06 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=6710, secured, session=
Aug 16 12:49:06 srv4hai dovecot: imap(rozumm)<6710>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 12:49:29 srv4hai ping_SP[26779]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1723805369 - 'ping_SP_1'
Aug 16 12:49:29 srv4hai ping_SP[26779]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Aug 16 12:49:51 srv4hai common[6739]: SHELLY common.sh inkludiert von ./bt_scan.sh
Aug 16 12:50:01 srv4hai bt_scan[6739]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Aug 16 12:50:01 srv4hai bt_scan[6739]: SHELLY - ping_SP.sh started for BTmac: '0' - IPv4: '192.168.12.61'
Aug 16 12:50:01 srv4hai common[6771]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Aug 16 12:50:01 srv4hai ping_SP[6771]: SHELLY ping_SP.sh started from bt_scan, user:'www-data'
Aug 16 12:50:01 srv4hai common[6792]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Aug 16 12:50:01 srv4hai CRON[6807]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 12:50:01 srv4hai CRON[6808]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Aug 16 12:50:01 srv4hai common[6810]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Aug 16 12:50:01 srv4hai meter.sh: SHELLY meter.sh started
Aug 16 12:50:02 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'11'=1723805402-1723805391
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.TRY} and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.Yes
Aug 16 12:50:02 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'11'=1723805402-1723805391
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY (ping_SP__bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Aug 16 12:50:02 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1723805402-1723805391
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY (ping_SP__bt_scan)-(0) what: 'coming' - persPresent: '(BT/__) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_vorraumOn) - sceneONsmall(vorraumOn)
Aug 16 12:50:02 srv4hai check_presence[6792]: SHELLY (ping_SP__bt_scan)-(0)-coming: activate_scenario.shtml: vorraumOn
Aug 16 12:50:02 srv4hai activate_scenario[7022]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Aug 16 12:50:02 srv4hai activate_scenario[7022]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished