activate_scenario.sh
Tue Sep 17 07:07:55 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/09/17/_0.log)

vorher: 07:07:55.808

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": "http"

nachher: 07:07:55.903
Dauer: 94 msec phName: 'phoneName:'0''


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

urls : 1
vorher : 07:07:55.786
nachher: 07:07:55.909
Dauer : 122 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/17//scene_vorraumOn_20240917_070755.txt'


syslog

Sep 17 07:04:01 srv4hai CRON[16902]: (root) CMD (/etc/linetest/linetest.sh)
Sep 17 07:04:45 srv4hai ping_SP[28556]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1726549485 - 'ping_SP_1'
Sep 17 07:04:45 srv4hai ping_SP[28556]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 17 07:04:47 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep 17 07:04:48 srv4hai fetchmail[1651]: 52469 messages (52468 seen) for tmiglinci at mail.akis.at (20151914 octets).
Sep 17 07:04:48 srv4hai postfix/smtpd[16946]: connect from localhost[127.0.0.1]
Sep 17 07:04:48 srv4hai postfix/smtpd[16946]: 65C866000F: client=localhost[127.0.0.1]
Sep 17 07:04:48 srv4hai postfix/cleanup[16949]: 65C866000F: message-id=<01020191fe5c1274-84900711-347d-495e-ab5c-01875a53e196-000000@eu-west-1.amazonses.com>
Sep 17 07:04:48 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:52469 of 52469 (16261 octets) not flushed
Sep 17 07:04:48 srv4hai postfix/qmgr[8566]: 65C866000F: from=, size=16510, nrcpt=1 (queue active)
Sep 17 07:04:48 srv4hai postfix/smtpd[16946]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 17 07:04:48 srv4hai postfix/local[16950]: 65C866000F: to=, relay=local, delay=0.08, delays=0.05/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Sep 17 07:04:48 srv4hai postfix/qmgr[8566]: 65C866000F: removed
Sep 17 07:04:48 srv4hai fetchmail[1651]: 10728 messages (10728 seen) for srozum at mail.akis.at (1302329459 octets).
Sep 17 07:04:49 srv4hai fetchmail[1651]: 25959 messages (25959 seen) for mrozum at mail.akis.at (219261614 octets).
Sep 17 07:04:50 srv4hai fetchmail[1651]: 1143 messages (1143 seen) for admin@bastelstube.wien at pop3.world4you.com (51639660 octets).
Sep 17 07:04:59 srv4hai ping_SP[27352]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1726549499 - 'ping_SP_0'
Sep 17 07:04:59 srv4hai ping_SP[27352]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 17 07:05:01 srv4hai CRON[16977]: (root) CMD (/etc/linetest/linetest.sh)
Sep 17 07:05:58 srv4hai postfix/smtpd[16946]: connect from unknown[178.215.236.166]
Sep 17 07:05:58 srv4hai postfix/smtpd[16946]: warning: unknown[178.215.236.166]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep 17 07:05:58 srv4hai postfix/smtpd[16946]: disconnect from unknown[178.215.236.166] ehlo=1 auth=0/1 quit=1 commands=2/3
Sep 17 07:05:59 srv4hai ping_SP[28556]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1726549559 - 'ping_SP_1'
Sep 17 07:05:59 srv4hai ping_SP[28556]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 17 07:06:01 srv4hai CRON[17038]: (root) CMD (/etc/linetest/linetest.sh)
Sep 17 07:06:12 srv4hai ping_SP[27352]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1726549572 - 'ping_SP_0'
Sep 17 07:06:12 srv4hai ping_SP[27352]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 17 07:06:17 srv4hai common[17068]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep 17 07:06:27 srv4hai bt_scan[17068]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Sep 17 07:06:27 srv4hai bt_scan[17068]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Sep 17 07:06:27 srv4hai common[17099]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 17 07:06:27 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'10'=1726549587-1726549577
Sep 17 07:06:27 srv4hai check_presence[17099]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 17 07:06:27 srv4hai check_presence[17099]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Sep 17 07:06:27 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'10'=1726549587-1726549577
Sep 17 07:06:27 srv4hai check_presence[17099]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep 17 07:06:27 srv4hai check_presence[17099]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Sep 17 07:06:27 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1726549587-1726549577
Sep 17 07:06:27 srv4hai check_presence[17099]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 17 07:06:27 srv4hai check_presence[17099]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep 17 07:06:28 srv4hai check_presence[17099]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_offAll) - sceneOFF(offAll)
Sep 17 07:06:28 srv4hai check_presence[17099]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Sep 17 07:07:01 srv4hai CRON[17251]: (root) CMD (/etc/linetest/linetest.sh)
Sep 17 07:07:12 srv4hai ping_SP[28556]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1726549632 - 'ping_SP_1'
Sep 17 07:07:12 srv4hai ping_SP[28556]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 17 07:07:24 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:24 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:24 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:24 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep 17 07:07:24 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep 17 07:07:24 srv4hai common[17279]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:25 srv4hai ping_SP[27352]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1726549645 - 'ping_SP_0'
Sep 17 07:07:25 srv4hai ping_SP[27352]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 17 07:07:34 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Sep 17 07:07:34 srv4hai common[17307]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep 17 07:07:34 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:34 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:34 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:34 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep 17 07:07:34 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep 17 07:07:34 srv4hai common[17320]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:34 srv4hai ping_SP[17307]: SHELLY ping_SP.sh started from smartphone, user:'root'
Sep 17 07:07:44 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Sep 17 07:07:44 srv4hai common[17347]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep 17 07:07:44 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:44 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:44 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:44 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep 17 07:07:44 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep 17 07:07:44 srv4hai named[30406]: client @0x7f93380d2cb0 192.168.12.252#38611/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 17 07:07:44 srv4hai common[17362]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 17 07:07:44 srv4hai common[17367]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:44 srv4hai ping_SP[17347]: SHELLY ping_SP.sh started from smartphone, user:'root'
Sep 17 07:07:45 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'6'=1726549665-1726549659
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Sep 17 07:07:45 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'6'=1726549665-1726549659
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Sep 17 07:07:45 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'6'=1726549665-1726549659
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Sep 17 07:07:45 srv4hai check_presence[17362]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Sep 17 07:07:45 srv4hai activate_scenario[17534]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep 17 07:07:45 srv4hai activate_scenario[17534]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'
Sep 17 07:07:45 srv4hai activate_scenario[17534]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0'
Sep 17 07:07:45 srv4hai postfix/pickup[9139]: A48F563463: uid=33 from=
Sep 17 07:07:45 srv4hai postfix/cleanup[17584]: A48F563463: message-id=<20240917050745.A48F563463@mail.viehai.at>
Sep 17 07:07:45 srv4hai postfix/qmgr[8566]: A48F563463: from=, size=10641, nrcpt=1 (queue active)
Sep 17 07:07:45 srv4hai activate_scenario[17534]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'Licht Vorzimmer' --> '0?turn=on'
Sep 17 07:07:45 srv4hai proc_url[17601]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/09/17/_0.log' - shellyUsage:'Licht Vorzimmer' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0''
Sep 17 07:07:45 srv4hai activate_scenario[17534]: SHELLY scenario: 'vorraumOn(vorraumon)' took 99 msec, phoneName:'0'
Sep 17 07:07:45 srv4hai ping_SP[17307]: SHELLY check_presence.sh coming 0 ping_SP__smartphone
Sep 17 07:07:46 srv4hai postfix/relay/smtp[17597]: A48F563463: to=, relay=mx03.nic.name[209.131.161.54]:25, delay=1.1, delays=0.02/0.01/0.8/0.25, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 853F28006F)
Sep 17 07:07:46 srv4hai postfix/qmgr[8566]: A48F563463: removed
Sep 17 07:07:47 srv4hai ping_SP[17307]: SHELLY - running process-id(17307): '17307 /bin/bash /srv/www/viehai/shelly//ping_SP.sh 192.168.12.61 smartphone#01217347 /bin/bash /srv/www/viehai/shelly//ping_SP.sh 192.168.12.61 smartphone#01217367 /bin/bash /srv/www/viehai/shelly/smartphone.sh 192.168.12.61 fpThomas#01227352 /bin/bash /srv/www/viehai/shelly//ping_SP.sh 192.168.12.61 bt_scan' - 'ping_SP_0' - exiting ==============
Sep 17 07:07:54 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Sep 17 07:07:54 srv4hai common[17642]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep 17 07:07:54 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:54 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 17 07:07:54 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:54 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep 17 07:07:54 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep 17 07:07:54 srv4hai named[30406]: client @0x7f93380d2cb0 192.168.12.252#38611/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 17 07:07:54 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#44507/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 17 07:07:54 srv4hai common[17657]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 17 07:07:54 srv4hai common[17663]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep 17 07:07:54 srv4hai ping_SP[17642]: SHELLY ping_SP.sh started from smartphone, user:'root'
Sep 17 07:07:55 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'10'=1726549675-1726549665
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Sep 17 07:07:55 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'10'=1726549675-1726549665
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Sep 17 07:07:55 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1726549675-1726549665
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_vorraumOn) - sceneONsmall(vorraumOn)
Sep 17 07:07:55 srv4hai check_presence[17657]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Sep 17 07:07:55 srv4hai activate_scenario[17828]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep 17 07:07:55 srv4hai activate_scenario[17828]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished