activate_scenario.sh
Mon Jul 1 07:05:27 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:27.216

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:27.260
Dauer: 44 msec phName: 'phoneName:'0''


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

urls : 1
vorher : 07:05:27.181
nachher: 07:05:27.267
Dauer : 88 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/01//scene_vorraumOn_20240701_070527.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'

finished