activate_scenario.sh
Sun Sep 15 22:32:26 CEST 2024
scenario: pcOFF
source: 192.168.12.10

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

scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

Thomas Schreibtischlampe (/srv/www/viehai/shelly/log_scenarios/2024/09/15/_0.log)

vorher: 22:32:26.203

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

nachher: 22:32:26.247
Dauer: 44 msec phName: 'shelly-0:'''


scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

urls : 1
vorher : 22:32:26.182
nachher: 22:32:26.254
Dauer : 72 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/15//scene_pcOFF_20240915_223226.txt'


syslog

Sep 15 22:29:01 srv4hai CRON[32315]: (root) CMD (/etc/linetest/linetest.sh)
Sep 15 22:29:15 srv4hai ping_SP[5205]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1726432155 - 'ping_SP_0'
Sep 15 22:29:15 srv4hai ping_SP[5205]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 15 22:29:55 srv4hai ping_SP[11252]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1726432195 - 'ping_SP_1'
Sep 15 22:29:55 srv4hai ping_SP[11252]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 15 22:30:01 srv4hai CRON[32383]: (root) CMD (/etc/linetest/linetest.sh)
Sep 15 22:30:01 srv4hai CRON[32384]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Sep 15 22:30:01 srv4hai CRON[32385]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Sep 15 22:30:01 srv4hai common[32387]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Sep 15 22:30:01 srv4hai meter.sh: SHELLY meter.sh started
Sep 15 22:30:02 srv4hai meter.sh: SHELLY 'shelly-29/Schalter Herdzeile' - type: 'shelly-i3' ignoring
Sep 15 22:30:02 srv4hai meter.sh: SHELLY 'shelly-28/Schalter Nasszeile' - type: 'shelly-i3' ignoring
Sep 15 22:30:05 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Sep 15 22:30:05 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Sep 15 22:30:05 srv4hai meter.sh: SHELLY 'shelly-37/Klima Büro' - type: 'shelly-ht' ignoring
Sep 15 22:30:05 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Sep 15 22:30:05 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Sep 15 22:30:08 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-43/43-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-45/45-TBD' - status: 'OOS' ignoring
Sep 15 22:30:11 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Sep 15 22:30:14 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 15 22:30:14 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Sep 15 22:30:14 srv4hai common[831]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_shelly.sh
Sep 15 22:30:14 srv4hai check_shelly.sh: SHELLY last scenery executed: 'pcON'
Sep 15 22:30:14 srv4hai check_shelly.sh: SHELLY found '6' active shelly outputs
Sep 15 22:30:14 srv4hai meter.sh: SHELLY meter.sh ended
Sep 15 22:30:22 srv4hai systemd[1]: Started Run anacron jobs.
Sep 15 22:30:22 srv4hai common[864]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep 15 22:30:22 srv4hai anacron[867]: Anacron 2.3 started on 2024-09-15
Sep 15 22:30:22 srv4hai anacron[867]: Normal exit (0 jobs run)
Sep 15 22:30:22 srv4hai systemd[1]: anacron.service: Succeeded.
Sep 15 22:30:28 srv4hai ping_SP[5205]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1726432228 - 'ping_SP_0'
Sep 15 22:30:28 srv4hai ping_SP[5205]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 15 22:30:32 srv4hai bt_scan[864]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Sep 15 22:30:32 srv4hai bt_scan[864]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Sep 15 22:30:32 srv4hai common[912]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 15 22:30:33 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'52'=1726432233-1726432181
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Sep 15 22:30:33 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep 15 22:30:33 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'52'=1726432233-1726432181
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Sep 15 22:30:33 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'52'=1726432233-1726432181
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_pcON) - sceneOFF(offAll)
Sep 15 22:30:33 srv4hai check_presence[912]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Sep 15 22:30:37 srv4hai named[30406]: validating config-at.iocnt.net/A: no valid signature found
Sep 15 22:30:37 srv4hai fetchmail[1651]: 52374 messages (52374 seen) for tmiglinci at mail.akis.at (15331354 octets).
Sep 15 22:30:40 srv4hai fetchmail[1651]: 10725 messages (10725 seen) for srozum at mail.akis.at (1302087151 octets).
Sep 15 22:30:43 srv4hai fetchmail[1651]: 25937 messages (25937 seen) for mrozum at mail.akis.at (216332566 octets).
Sep 15 22:30:43 srv4hai fetchmail[1651]: 1143 messages (1143 seen) for admin@bastelstube.wien at pop3.world4you.com (51639660 octets).
Sep 15 22:31:01 srv4hai CRON[1083]: (root) CMD (/etc/linetest/linetest.sh)
Sep 15 22:31:09 srv4hai ping_SP[11252]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1726432269 - 'ping_SP_1'
Sep 15 22:31:09 srv4hai ping_SP[11252]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 15 22:31:34 srv4hai postfix/smtpd[1111]: warning: hostname vm123362.a7e.ru does not resolve to address 185.173.176.200: Name or service not known
Sep 15 22:31:34 srv4hai postfix/smtpd[1111]: connect from unknown[185.173.176.200]
Sep 15 22:31:34 srv4hai postfix/smtpd[1111]: C6F23631BE: client=unknown[185.173.176.200]
Sep 15 22:31:34 srv4hai postfix/cleanup[1115]: C6F23631BE: message-id=
Sep 15 22:31:34 srv4hai postfix/qmgr[8566]: C6F23631BE: from=<>, size=9687, nrcpt=1 (queue active)
Sep 15 22:31:34 srv4hai postfix/local[1116]: C6F23631BE: to=, orig_to=, relay=local, delay=0.13, delays=0.1/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Sep 15 22:31:34 srv4hai postfix/qmgr[8566]: C6F23631BE: removed
Sep 15 22:31:35 srv4hai postfix/smtpd[1111]: disconnect from unknown[185.173.176.200] ehlo=1 mail=1 rcpt=1 bdat=2 quit=1 commands=6
Sep 15 22:31:40 srv4hai dhcpd[30731]: DHCPDISCOVER from 98:cd:ac:1e:65:28 via enp2s0
Sep 15 22:31:40 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.113 to 98:cd:ac:1e:65:28 via enp2s0
Sep 15 22:31:40 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Sep 15 22:31:40 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.113
Sep 15 22:31:40 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-13
Sep 15 22:31:40 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.113 (192.168.12.252) from 98:cd:ac:1e:65:28 via enp2s0
Sep 15 22:31:40 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.113 to 98:cd:ac:1e:65:28 via enp2s0
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f9330095370 192.168.12.252#48795/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-13.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#44945/key rndc-key: signer "rndc-key" approved
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#44945/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-13.viehai.at' TXT
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#44945/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-13.viehai.at' TXT "00003d87d7ce132fb28c24bab993e73221"
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#44945/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-13.viehai.at' A
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#44945/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-13.viehai.at' A 192.168.12.113
Sep 15 22:31:40 srv4hai dhcpd[30731]: Added new forward map from shelly-13.viehai.at to 192.168.12.113
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f934c0557f0 192.168.12.252#58405/key rndc-key: signer "rndc-key" approved
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f934c0557f0 192.168.12.252#58405/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '113.12.168.192.in-addr.arpa' PTR
Sep 15 22:31:40 srv4hai named[30406]: client @0x7f934c0557f0 192.168.12.252#58405/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '113.12.168.192.in-addr.arpa' PTR shelly-13.viehai.at.
Sep 15 22:31:40 srv4hai dhcpd[30731]: Added reverse map from 113.12.168.192.in-addr.arpa. to shelly-13.viehai.at
Sep 15 22:31:40 srv4hai common[1120]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Sep 15 22:31:40 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-13' - shIP/2:'' perform:'conf'
Sep 15 22:31:40 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-13' - shIP/2:'192.168.12.113'
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY: usage/name 'Thomas Taster' already set for '192.168.12.113'
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(0)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(1)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(2)' - IGNORED
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(3)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(4)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(5)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(6)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(7)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(8)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(9)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai conf_shelly.sh: SHELLY:'shelly-13' 'conf(10)' - allready transmitted - skipping
Sep 15 22:31:41 srv4hai ag: grab_shelly.sh SHELLY shelly-13 - (shelly-BTN): 61% - 3.86V
Sep 15 22:31:41 srv4hai ping_SP[5205]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1726432301 - 'ping_SP_0'
Sep 15 22:31:41 srv4hai ping_SP[5205]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 15 22:32:01 srv4hai CRON[1345]: (root) CMD (/etc/linetest/linetest.sh)
Sep 15 22:32:22 srv4hai ping_SP[11252]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1726432342 - 'ping_SP_1'
Sep 15 22:32:22 srv4hai ping_SP[11252]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 15 22:32:25 srv4hai dovecot: imap(miglincit)<23618>: Logged out in=1385293 out=2072232 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 15 22:32:25 srv4hai dovecot: imap(miglincit)<23620>: Logged out in=5539 out=8869 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 15 22:32:25 srv4hai dovecot: imap(miglincit)<23616>: Logged out in=3187 out=359214 deleted=0 expunged=0 trashed=0 hdr_count=4 hdr_bytes=1759 body_count=4 body_bytes=267568
Sep 15 22:32:25 srv4hai dovecot: imap(miglincit)<23615>: Connection closed (STATUS finished 263.313 secs ago) in=1387360 out=2074953 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 15 22:32:26 srv4hai activate_scenario[1371]: SHELLY scenario: 'pcOFF(pcoff)' started
Sep 15 22:32:26 srv4hai activate_scenario[1371]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-0:''

finished