activate_scenario.sh
Mon Jul 1 07:05:37 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/07/01/_0.log)

vorher: 07:05:37.309

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:05:37.418
Dauer: 109 msec phName: 'phoneName:'0''


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

urls : 1
vorher : 07:05:37.292
nachher: 07:05:37.424
Dauer : 132 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/01//scene_vorraumOn_20240701_070537.txt'


syslog

Jul  1 07:02:01 srv4hai CRON[2155]: (root) CMD (/etc/linetest/linetest.sh)
Jul  1 07:02:26 srv4hai ping_SP[20399]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1719810146 - 'ping_SP_0'
Jul  1 07:02:26 srv4hai ping_SP[20399]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  1 07:02:38 srv4hai ping_SP[484]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1719810158 - 'ping_SP_1'
Jul  1 07:02:38 srv4hai ping_SP[484]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  1 07:03:01 srv4hai CRON[2215]: (root) CMD (/etc/linetest/linetest.sh)
Jul  1 07:03:40 srv4hai ping_SP[20399]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1719810220 - 'ping_SP_0'
Jul  1 07:03:40 srv4hai ping_SP[20399]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  1 07:03:51 srv4hai ping_SP[484]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1719810231 - 'ping_SP_1'
Jul  1 07:03:51 srv4hai ping_SP[484]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  1 07:04:01 srv4hai CRON[2278]: (root) CMD (/etc/linetest/linetest.sh)
Jul  1 07:04:09 srv4hai postfix/anvil[2083]: statistics: max connection rate 1/60s for (smtp:156.96.46.78) at Jul  1 07:00:49
Jul  1 07:04:09 srv4hai postfix/anvil[2083]: statistics: max connection count 1 for (smtp:156.96.46.78) at Jul  1 07:00:49
Jul  1 07:04:09 srv4hai postfix/anvil[2083]: statistics: max cache size 1 at Jul  1 07:00:49
Jul  1 07:04:25 srv4hai postfix/smtpd[2289]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jul  1 07:04:27 srv4hai named[30406]: connection refused resolving '78.46.96.156.in-addr.arpa/PTR/IN': 192.34.59.231#53
Jul  1 07:04:35 srv4hai postfix/smtpd[2289]: connect from unknown[156.96.46.78]
Jul  1 07:04:36 srv4hai postfix/smtpd[2289]: warning: unknown[156.96.46.78]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jul  1 07:04:36 srv4hai postfix/smtpd[2289]: disconnect from unknown[156.96.46.78] ehlo=1 auth=0/1 quit=1 commands=2/3
Jul  1 07:05:01 srv4hai CRON[2315]: (root) CMD (/etc/linetest/linetest.sh)
Jul  1 07:05:03 srv4hai ping_SP[20399]: SHELLY (0)- ping 192.168.12.61 1 not answered (1) @~1719810303 - 'ping_SP_0'
Jul  1 07:05:04 srv4hai ping_SP[484]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1719810304 - 'ping_SP_1'
Jul  1 07:05:04 srv4hai ping_SP[484]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  1 07:05:06 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:06 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:06 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:06 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Jul  1 07:05:06 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Jul  1 07:05:06 srv4hai common[2349]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:16 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jul  1 07:05:16 srv4hai common[2373]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jul  1 07:05:16 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:16 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:16 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:16 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Jul  1 07:05:16 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Jul  1 07:05:16 srv4hai common[2386]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:16 srv4hai ping_SP[2373]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jul  1 07:05:26 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jul  1 07:05:26 srv4hai common[2439]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jul  1 07:05:26 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:26 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:26 srv4hai common[2453]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jul  1 07:05:26 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:26 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Jul  1 07:05:26 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Jul  1 07:05:26 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#49701/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  1 07:05:26 srv4hai common[2462]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:26 srv4hai ping_SP[2439]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jul  1 07:05:26 srv4hai ping_SP[20399]: SHELLY (0) - ping 192.168.12.61 2 sucessfully  @~1719810326 - 'ping_SP_0'
Jul  1 07:05:26 srv4hai ping_SP[20399]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  1 07:05:26 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'2'=1719810326-1719810324
Jul  1 07:05:26 srv4hai check_presence[2453]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jul  1 07:05:26 srv4hai check_presence[2453]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jul  1 07:05:26 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'2'=1719810326-1719810324
Jul  1 07:05:26 srv4hai check_presence[2453]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jul  1 07:05:27 srv4hai check_presence[2453]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Jul  1 07:05:27 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'3'=1719810327-1719810324
Jul  1 07:05:27 srv4hai check_presence[2453]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.Yes
Jul  1 07:05:27 srv4hai check_presence[2453]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (__/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jul  1 07:05:27 srv4hai check_presence[2453]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_vorraumOn) - sceneONsmall(vorraumOn)
Jul  1 07:05:27 srv4hai check_presence[2453]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Jul  1 07:05:27 srv4hai activate_scenario[2647]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jul  1 07:05:27 srv4hai activate_scenario[2647]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'
Jul  1 07:05:27 srv4hai activate_scenario[2647]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0'
Jul  1 07:05:27 srv4hai postfix/pickup[898]: 2B07862A2C: uid=33 from=
Jul  1 07:05:27 srv4hai postfix/cleanup[2697]: 2B07862A2C: message-id=<20240701050527.2B07862A2C@mail.viehai.at>
Jul  1 07:05:27 srv4hai postfix/qmgr[8566]: 2B07862A2C: from=, size=7694, nrcpt=1 (queue active)
Jul  1 07:05:27 srv4hai activate_scenario[2647]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'Licht Vorzimmer' --> '0?turn=on'
Jul  1 07:05:27 srv4hai proc_url[2714]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/07/01/_0.log' - shellyUsage:'Licht Vorzimmer' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0''
Jul  1 07:05:27 srv4hai activate_scenario[2647]: SHELLY scenario: 'vorraumOn(vorraumon)' took 88 msec, phoneName:'0'
Jul  1 07:05:27 srv4hai ping_SP[2373]: SHELLY check_presence.sh coming 0 ping_SP__smartphone
Jul  1 07:05:28 srv4hai postfix/relay/smtp[2710]: 2B07862A2C: to=, relay=mx04.nic.name[209.131.160.34]:25, delay=1.4, delays=0.04/0.01/0.92/0.4, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 529BE803BC)
Jul  1 07:05:28 srv4hai postfix/qmgr[8566]: 2B07862A2C: removed
Jul  1 07:05:29 srv4hai ping_SP[2373]: SHELLY - running process-id(2373): '2373 /bin/bash /srv/www/viehai/shelly//ping_SP.sh 192.168.12.61 smartphone#0122439 /bin/bash /srv/www/viehai/shelly//ping_SP.sh 192.168.12.61 smartphone#0122462 /bin/bash /srv/www/viehai/shelly/smartphone.sh 192.168.12.61 fpThomas#01220399 /bin/bash /srv/www/viehai/shelly//ping_SP.sh 192.168.12.61 bt_scan' - 'ping_SP_0' - exiting ==============
Jul  1 07:05:36 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jul  1 07:05:36 srv4hai common[2757]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jul  1 07:05:36 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:36 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jul  1 07:05:36 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:36 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Jul  1 07:05:36 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Jul  1 07:05:36 srv4hai named[30406]: client @0x7f934c0645f0 192.168.12.252#42691/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  1 07:05:36 srv4hai named[30406]: client @0x7f93380793b0 192.168.12.252#49701/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  1 07:05:36 srv4hai common[2775]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jul  1 07:05:36 srv4hai common[2778]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  1 07:05:36 srv4hai ping_SP[2757]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jul  1 07:05:36 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'12'=1719810336-1719810324
Jul  1 07:05:36 srv4hai check_presence[2775]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jul  1 07:05:36 srv4hai check_presence[2775]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jul  1 07:05:36 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'12'=1719810336-1719810324
Jul  1 07:05:36 srv4hai check_presence[2775]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jul  1 07:05:37 srv4hai check_presence[2775]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Jul  1 07:05:37 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'13'=1719810337-1719810324
Jul  1 07:05:37 srv4hai check_presence[2775]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.Yes
Jul  1 07:05:37 srv4hai check_presence[2775]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (__/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jul  1 07:05:37 srv4hai check_presence[2775]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_vorraumOn) - sceneONsmall(vorraumOn)
Jul  1 07:05:37 srv4hai check_presence[2775]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Jul  1 07:05:37 srv4hai activate_scenario[2944]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jul  1 07:05:37 srv4hai activate_scenario[2944]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished