activate_scenario.sh
Sun Sep 1 00:23:52 CEST 2024
scenario: vorraumOn
phoneName: 0

'night' <--> 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/09/01/_0.log)

vorher: 00:23:52.727

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: 00:23:52.807
Dauer: 79 msec phName: 'phoneName:'0''


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

urls : 1
vorher : 00:23:52.709
nachher: 00:23:52.813
Dauer : 104 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/01//scene_vorraumOn_20240901_002352.txt'


syslog

Sep  1 00:20:01 srv4hai CRON[6485]: (root) CMD (/etc/linetest/linetest.sh)
Sep  1 00:20:01 srv4hai CRON[6486]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Sep  1 00:20:01 srv4hai common[6487]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Sep  1 00:20:01 srv4hai meter.sh: SHELLY meter.sh started
Sep  1 00:20:01 srv4hai dhcpd[30731]: DHCPDISCOVER from 08:3a:8d:d0:46:5a via enp2s0
Sep  1 00:20:01 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.5 to 08:3a:8d:d0:46:5a via enp2s0
Sep  1 00:20:01 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/dhcpcommit.sh
Sep  1 00:20:01 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.5
Sep  1 00:20:01 srv4hai dhcpd[30731]: execute_statement argv[2] = btscan1
Sep  1 00:20:01 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.5 (192.168.12.252) from 08:3a:8d:d0:46:5a via enp2s0
Sep  1 00:20:01 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.5 to 08:3a:8d:d0:46:5a via enp2s0
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f9338088040 192.168.12.252#34669/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: btscan1.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f93100e1310 192.168.12.252#33545/key rndc-key: signer "rndc-key" approved
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f93100e1310 192.168.12.252#33545/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'btscan1.viehai.at' TXT
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f93100e1310 192.168.12.252#33545/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'btscan1.viehai.at' TXT "000118916176265854cff71f762ffe0635"
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f93100e1310 192.168.12.252#33545/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'btscan1.viehai.at' A
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f93100e1310 192.168.12.252#33545/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'btscan1.viehai.at' A 192.168.12.5
Sep  1 00:20:01 srv4hai dhcpd[30731]: Added new forward map from btscan1.viehai.at to 192.168.12.5
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f931c0a07f0 192.168.12.252#53793/key rndc-key: signer "rndc-key" approved
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f931c0a07f0 192.168.12.252#53793/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '5.12.168.192.in-addr.arpa' PTR
Sep  1 00:20:01 srv4hai named[30406]: client @0x7f931c0a07f0 192.168.12.252#53793/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.
Sep  1 00:20:01 srv4hai dhcpd[30731]: Added reverse map from 5.12.168.192.in-addr.arpa. to btscan1.viehai.at
Sep  1 00:20:01 srv4hai dhcpcommit.sh: SHELLY ip:'192.168.12.5'(5) device 'btscan1'
Sep  1 00:20:01 srv4hai dhcpcommit.sh: SHELLY device 'btscan1' known and accepted
Sep  1 00:20:01 srv4hai meter.sh: SHELLY 'shelly-29/Schalter Herdzeile' - type: 'shelly-i3' ignoring
Sep  1 00:20:01 srv4hai meter.sh: SHELLY 'shelly-28/Schalter Nasszeile' - type: 'shelly-i3' ignoring
Sep  1 00:20:05 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Sep  1 00:20:05 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Sep  1 00:20:05 srv4hai meter.sh: SHELLY 'shelly-37/Klima Büro' - type: 'shelly-ht' ignoring
Sep  1 00:20:05 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Sep  1 00:20:05 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Sep  1 00:20:08 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Sep  1 00:20:10 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test' - status: 'OOS' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-43/43-TBD' - status: 'OOS' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-45/45-TBD' - status: 'OOS' ignoring
Sep  1 00:20:11 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Sep  1 00:20:13 srv4hai meter.sh: SHELLY 'shelly-48/BT GW 1':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep  1 00:20:16 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep  1 00:20:16 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Sep  1 00:20:16 srv4hai common[7368]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_shelly.sh
Sep  1 00:20:16 srv4hai check_shelly.sh: SHELLY last scenery executed: 'vorraumOn'
Sep  1 00:20:16 srv4hai check_shelly.sh: SHELLY found '1' active shelly outputs
Sep  1 00:20:16 srv4hai meter.sh: SHELLY meter.sh ended
Sep  1 00:20:30 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=7393, secured, session=
Sep  1 00:20:30 srv4hai dovecot: imap(miglincit)<7393>: Logged out in=373 out=41306 deleted=0 expunged=0 trashed=0 hdr_count=50 hdr_bytes=14462 body_count=0 body_bytes=0
Sep  1 00:20:39 srv4hai postfix/smtpd[5444]: connect from unknown[94.141.120.155]
Sep  1 00:20:39 srv4hai postfix/smtpd[5444]: warning: unknown[94.141.120.155]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep  1 00:20:39 srv4hai postfix/smtpd[5444]: lost connection after AUTH from unknown[94.141.120.155]
Sep  1 00:20:39 srv4hai postfix/smtpd[5444]: disconnect from unknown[94.141.120.155] ehlo=1 auth=0/1 commands=1/2
Sep  1 00:20:51 srv4hai ping_SP[5495]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1725142851 - 'ping_SP_1'
Sep  1 00:20:51 srv4hai ping_SP[5495]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep  1 00:21:01 srv4hai CRON[7420]: (root) CMD (/etc/linetest/linetest.sh)
Sep  1 00:22:01 srv4hai CRON[7440]: (root) CMD (/etc/linetest/linetest.sh)
Sep  1 00:22:04 srv4hai ping_SP[5495]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1725142924 - 'ping_SP_1'
Sep  1 00:22:04 srv4hai ping_SP[5495]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep  1 00:22:24 srv4hai postfix/anvil[19565]: statistics: max connection rate 1/60s for (smtp:94.141.120.155) at Sep  1 00:14:57
Sep  1 00:22:24 srv4hai postfix/anvil[19565]: statistics: max connection count 1 for (smtp:94.141.120.155) at Sep  1 00:14:57
Sep  1 00:22:24 srv4hai postfix/anvil[19565]: statistics: max cache size 1 at Sep  1 00:14:57
Sep  1 00:23:01 srv4hai CRON[7470]: (root) CMD (/etc/linetest/linetest.sh)
Sep  1 00:23:07 srv4hai common[7478]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep  1 00:23:17 srv4hai bt_scan[7478]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Sep  1 00:23:17 srv4hai bt_scan[7478]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Sep  1 00:23:17 srv4hai common[7516]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep  1 00:23:18 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1725142998-1725142987
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep  1 00:23:18 srv4hai ping_SP[5495]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1725142998 - 'ping_SP_1'
Sep  1 00:23:18 srv4hai ping_SP[5495]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep  1 00:23:18 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'11'=1725142998-1725142987
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Sep  1 00:23:18 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1725142998-1725142987
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/__) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_vorraumOn) - sceneOFF(offAll)
Sep  1 00:23:18 srv4hai check_presence[7516]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Sep  1 00:23:30 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=7681, secured, session=
Sep  1 00:23:30 srv4hai dovecot: imap(miglincit)<7681>: Logged out in=198 out=1285 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep  1 00:23:33 srv4hai postfix/smtpd[7682]: connect from unknown[94.141.120.155]
Sep  1 00:23:34 srv4hai postfix/smtpd[7682]: warning: unknown[94.141.120.155]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep  1 00:23:34 srv4hai postfix/smtpd[7682]: lost connection after AUTH from unknown[94.141.120.155]
Sep  1 00:23:34 srv4hai postfix/smtpd[7682]: disconnect from unknown[94.141.120.155] ehlo=1 auth=0/1 commands=1/2
Sep  1 00:23:41 srv4hai common[7686]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep  1 00:23:51 srv4hai bt_scan[7686]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Sep  1 00:23:51 srv4hai bt_scan[7686]: SHELLY - ping_SP.sh started for BTmac: '0' - IPv4: '192.168.12.61'
Sep  1 00:23:51 srv4hai common[7718]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep  1 00:23:51 srv4hai ping_SP[7718]: SHELLY ping_SP.sh started from bt_scan, user:'www-data'
Sep  1 00:23:51 srv4hai common[7739]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep  1 00:23:52 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'10'=1725143032-1725143022
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.TRY} and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.Yes
Sep  1 00:23:52 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'10'=1725143032-1725143022
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY (ping_SP__bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Sep  1 00:23:52 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1725143032-1725143022
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY (ping_SP__bt_scan)-(0) what: 'coming' - persPresent: '(BT/__) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_vorraumOn) - sceneONsmall(vorraumOn)
Sep  1 00:23:52 srv4hai check_presence[7739]: SHELLY (ping_SP__bt_scan)-(0)-coming: activate_scenario.shtml: vorraumOn
Sep  1 00:23:52 srv4hai activate_scenario[7887]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep  1 00:23:52 srv4hai activate_scenario[7887]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished