activate_scenario.sh
Sat Apr 27 10:31:18 CEST 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'

Thomas Büro Regallicht (/srv/www/viehai/shelly/log_scenarios/2024/04/27/_0.log)

vorher: 10:31:18.342

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

nachher: 10:31:18.620
Dauer: 278 msec phName: 'shelly-40:'Thomas Büro Licht''


Thomas Büro Licht (/srv/www/viehai/shelly/log_scenarios/2024/04/27/_1.log)

vorher: 10:31:18.358

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

nachher: 10:31:18.390
Dauer: 32 msec phName: 'shelly-40:'Thomas Büro Licht''


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

urls : 2
vorher : 10:31:18.319
nachher: 10:31:18.628
Dauer : 309 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/04/27//scene_buero_UM_20240427_103118.txt'


syslog

Apr 27 10:28:01 srv4hai CRON[20046]: (root) CMD (/etc/linetest/linetest.sh)
Apr 27 10:28:01 srv4hai named[15509]: resolver priming query complete
Apr 27 10:28:10 srv4hai named[15509]: resolver priming query complete
Apr 27 10:28:16 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=20057, secured, session=<6hhMzQ8XeIAAAAAAAAAAAAAAAAAAAAAB>
Apr 27 10:28:16 srv4hai dovecot: imap(miglincit)<20057><6hhMzQ8XeIAAAAAAAAAAAAAAAAAAAAAB>: Logged out in=137 out=1053 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 27 10:28:21 srv4hai ping_SP[31267]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1714206501 - 'ping_SP_0'
Apr 27 10:28:21 srv4hai ping_SP[31267]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 27 10:28:34 srv4hai named[15509]: resolver priming query complete
Apr 27 10:28:50 srv4hai ping_SP[25256]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1714206530 - 'ping_SP_1'
Apr 27 10:28:50 srv4hai ping_SP[25256]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 27 10:29:01 srv4hai CRON[20098]: (root) CMD (/etc/linetest/linetest.sh)
Apr 27 10:29:03 srv4hai named[15509]: resolver priming query complete
Apr 27 10:29:07 srv4hai named[15509]: resolver priming query complete
Apr 27 10:29:15 srv4hai common[20104]: SHELLY common.sh inkludiert von ./bt_scan.sh
Apr 27 10:29:25 srv4hai bt_scan[20104]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'Yes'
Apr 27 10:29:25 srv4hai bt_scan[20104]: SHELLY - ping_SP.sh already running for BTmac: '1' - IPv4: '192.168.12.62'
Apr 27 10:29:34 srv4hai ping_SP[31267]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1714206574 - 'ping_SP_0'
Apr 27 10:29:34 srv4hai ping_SP[31267]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 27 10:29:37 srv4hai named[15509]: resolver priming query complete
Apr 27 10:29:49 srv4hai named[15509]: resolver priming query complete
Apr 27 10:30:01 srv4hai CRON[20171]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Apr 27 10:30:01 srv4hai CRON[20172]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Apr 27 10:30:01 srv4hai CRON[20173]: (root) CMD (/etc/linetest/linetest.sh)
Apr 27 10:30:01 srv4hai common[20175]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Apr 27 10:30:01 srv4hai meter.sh: SHELLY meter.sh started
Apr 27 10:30:02 srv4hai meter.sh: SHELLY 'shelly-29/Schalter Herdzeile' - type: 'shelly-i3' ignoring
Apr 27 10:30:02 srv4hai meter.sh: SHELLY 'shelly-28/Schalter Nasszeile' - type: 'shelly-i3' ignoring
Apr 27 10:30:03 srv4hai ping_SP[25256]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1714206603 - 'ping_SP_1'
Apr 27 10:30:03 srv4hai ping_SP[25256]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 27 10:30:08 srv4hai meter.sh: SHELLY 'shelly-42/Stehlampe dimmbar':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 27 10:30:08 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Apr 27 10:30:08 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Apr 27 10:30:08 srv4hai meter.sh: SHELLY 'shelly-37/Klima Büro' - type: 'shelly-ht' ignoring
Apr 27 10:30:08 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Apr 27 10:30:08 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Apr 27 10:30:10 srv4hai named[15509]: resolver priming query complete
Apr 27 10:30:11 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 27 10:30:13 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 27 10:30:13 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Apr 27 10:30:14 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Apr 27 10:30:14 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Apr 27 10:30:14 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Apr 27 10:30:14 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Apr 27 10:30:16 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 27 10:30:16 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=20914, secured, session=
Apr 27 10:30:16 srv4hai systemd[1]: Started Run anacron jobs.
Apr 27 10:30:16 srv4hai anacron[20915]: Anacron 2.3 started on 2024-04-27
Apr 27 10:30:16 srv4hai anacron[20915]: Normal exit (0 jobs run)
Apr 27 10:30:16 srv4hai systemd[1]: anacron.service: Succeeded.
Apr 27 10:30:16 srv4hai dovecot: imap(miglincit)<20914>: Logged out in=137 out=1053 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 27 10:30:16 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Apr 27 10:30:16 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-43/43-TBD' - status: 'OOS' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-45/45-TBD' - status: 'OOS' ignoring
Apr 27 10:30:17 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Apr 27 10:30:21 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 27 10:30:21 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Apr 27 10:30:21 srv4hai common[20175]: SHELLY common.sh inkludiert von ./check_presence.sh
Apr 27 10:30:21 srv4hai named[15509]: resolver priming query complete
Apr 27 10:30:21 srv4hai common.sh: SHELLY: BTstatus[0]:'BTdweet_not_set' dweetAge:'0'=1714206621-1714206621
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and BTdweet_not_set//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (meter.sh)-(99) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Apr 27 10:30:21 srv4hai common.sh: SHELLY: BTstatus[1]:'BTdweet_not_set' dweetAge:'0'=1714206621-1714206621
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and BTdweet_not_set//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (meter.sh)-(99) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Apr 27 10:30:21 srv4hai common.sh: SHELLY: BTstatus[2]:'BTdweet_not_set' dweetAge:'0'=1714206621-1714206621
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and BTdweet_not_set//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (meter.sh)-(99) what: 'presence' - persPresent: '(__/LIVE) (__/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Apr 27 10:30:21 srv4hai check_presence[20175]: SHELLY (meter.sh)-(99)-presence: NOT activate_scenario.shtml: offAll
Apr 27 10:30:21 srv4hai common[20175]: SHELLY common.sh inkludiert von ./check_shelly.sh
Apr 27 10:30:21 srv4hai check_shelly.sh: SHELLY last scenery executed: 'pcON'
Apr 27 10:30:21 srv4hai check_shelly.sh: SHELLY found '7' active shelly outputs
Apr 27 10:30:21 srv4hai meter.sh: SHELLY meter.sh ended
Apr 27 10:30:22 srv4hai postfix/pickup[12221]: 0398A631A0: uid=33 from=
Apr 27 10:30:22 srv4hai postfix/cleanup[21206]: 0398A631A0: message-id=<20240427083022.0398A631A0@mail.viehai.at>
Apr 27 10:30:22 srv4hai postfix/qmgr[15291]: 0398A631A0: from=, size=716, nrcpt=1 (queue active)
Apr 27 10:30:22 srv4hai postfix/local[21208]: 0398A631A0: to=, orig_to=, relay=local, delay=0.04, delays=0.02/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Apr 27 10:30:22 srv4hai postfix/qmgr[15291]: 0398A631A0: removed
Apr 27 10:30:23 srv4hai named[15509]: resolver priming query complete
Apr 27 10:30:24 srv4hai named[15509]: resolver priming query complete
Apr 27 10:30:33 srv4hai named[15509]: resolver priming query complete
Apr 27 10:30:47 srv4hai ping_SP[31267]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1714206647 - 'ping_SP_0'
Apr 27 10:30:47 srv4hai ping_SP[31267]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 27 10:31:01 srv4hai CRON[21241]: (root) CMD (/etc/linetest/linetest.sh)
Apr 27 10:31:02 srv4hai dovecot: imap(miglincit)<15859>: Logged out in=4525 out=2265024 deleted=0 expunged=0 trashed=0 hdr_count=53 hdr_bytes=20191 body_count=53 body_bytes=2141752
Apr 27 10:31:02 srv4hai named[15509]: resolver priming query complete
Apr 27 10:31:03 srv4hai activate_scenario[21247]: SHELLY scenario: 'pcOFF(pcoff)' started
Apr 27 10:31:03 srv4hai activate_scenario[21247]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-0:''
Apr 27 10:31:03 srv4hai activate_scenario[21247]: SHELLY scenario: 'pcOFF(pcoff)' TO BE EXECUTED, shelly-0:''
Apr 27 10:31:03 srv4hai postfix/pickup[12221]: 480E5631A0: uid=33 from=
Apr 27 10:31:03 srv4hai postfix/cleanup[21206]: 480E5631A0: message-id=<20240427083103.480E5631A0@mail.viehai.at>
Apr 27 10:31:03 srv4hai postfix/qmgr[15291]: 480E5631A0: from=, size=10503, nrcpt=1 (queue active)
Apr 27 10:31:03 srv4hai postfix/local[21208]: 480E5631A0: to=, orig_to=, relay=local, delay=0.04, delays=0.01/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "null")
Apr 27 10:31:03 srv4hai postfix/cleanup[21206]: 4F815631A1: message-id=<20240427083103.4F815631A1@mail.viehai.at>
Apr 27 10:31:03 srv4hai postfix/bounce[21303]: 480E5631A0: sender non-delivery notification: 4F815631A1
Apr 27 10:31:03 srv4hai postfix/qmgr[15291]: 4F815631A1: from=<>, size=12385, nrcpt=1 (queue active)
Apr 27 10:31:03 srv4hai postfix/qmgr[15291]: 480E5631A0: removed
Apr 27 10:31:03 srv4hai postfix/local[21208]: 4F815631A1: to=, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Apr 27 10:31:03 srv4hai postfix/qmgr[15291]: 4F815631A1: removed
Apr 27 10:31:03 srv4hai activate_scenario[21247]: SHELLY: scenario: 'pcOFF(pcoff)'-'shelly-20'-'Thomas Schreibtischlampe' --> '0?turn=off'
Apr 27 10:31:03 srv4hai proc_url[21316]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/04/27/_0.log' - shellyUsage:'Thomas Schreibtischlampe' - scUrl:'http://192.168.12.120/relay/0?turn=off' - phName:'shelly-0:'''
Apr 27 10:31:03 srv4hai activate_scenario[21247]: SHELLY scenario: 'pcOFF(pcoff)' took 109 msec, shelly-0:''
Apr 27 10:31:05 srv4hai common[21347]: SHELLY common.sh inkludiert von ./bt_scan.sh
Apr 27 10:31:14 srv4hai named[15509]: resolver priming query complete
Apr 27 10:31:14 srv4hai postfix/smtpd[21364]: connect from modemcable098.146-70-69.static.videotron.ca[69.70.146.98]
Apr 27 10:31:15 srv4hai postfix/smtpd[21364]: warning: modemcable098.146-70-69.static.videotron.ca[69.70.146.98]: SASL LOGIN authentication failed: Invalid authentication mechanism
Apr 27 10:31:15 srv4hai postfix/smtpd[21364]: disconnect from modemcable098.146-70-69.static.videotron.ca[69.70.146.98] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Apr 27 10:31:15 srv4hai bt_scan[21347]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'No'
Apr 27 10:31:15 srv4hai bt_scan[21347]: SHELLY - lost BT-connection to BTmac: '1' found: 'No' - check presence
Apr 27 10:31:15 srv4hai common[21385]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Apr 27 10:31:15 srv4hai named[15509]: resolver priming query complete
Apr 27 10:31:16 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1714206676-1714206665
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Apr 27 10:31:16 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'11'=1714206676-1714206665
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Apr 27 10:31:16 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1714206676-1714206665
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (bt_scan)-(1) what: 'presence' - persPresent: '(__/LIVE) (__/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Apr 27 10:31:16 srv4hai check_presence[21385]: SHELLY (bt_scan)-(1)-presence: NOT activate_scenario.shtml: offAll
Apr 27 10:31:17 srv4hai ping_SP[25256]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1714206677 - 'ping_SP_1'
Apr 27 10:31:17 srv4hai ping_SP[25256]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 27 10:31:18 srv4hai activate_scenario[21524]: SHELLY scenario: 'buero_UM(buero_um)' started
Apr 27 10:31:18 srv4hai activate_scenario[21524]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished