activate_scenario.sh
Tue Jun 4 15:34:00 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/06/04/_0.log)

vorher: 15:34:00.444

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: 15:34:00.472
Dauer: 28 msec phName: 'phoneName:'0''


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

urls : 1
vorher : 15:34:00.425
nachher: 15:34:00.478
Dauer : 52 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/06/04//scene_vorraumOn_20240604_153400.txt'


syslog

Jun  4 15:31:01 srv4hai CRON[31743]: (root) CMD (/etc/linetest/linetest.sh)
Jun  4 15:31:50 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=31806, secured, session=
Jun  4 15:31:50 srv4hai dovecot: imap(miglincit)<31806>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  4 15:31:52 srv4hai systemd[1]: Started Run anacron jobs.
Jun  4 15:31:52 srv4hai anacron[31815]: Anacron 2.3 started on 2024-06-04
Jun  4 15:31:52 srv4hai anacron[31815]: Normal exit (0 jobs run)
Jun  4 15:31:52 srv4hai systemd[1]: anacron.service: Succeeded.
Jun  4 15:32:01 srv4hai CRON[31824]: (root) CMD (/etc/linetest/linetest.sh)
Jun  4 15:33:01 srv4hai CRON[31893]: (root) CMD (/etc/linetest/linetest.sh)
Jun  4 15:33:49 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Jun  4 15:33:49 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jun  4 15:33:49 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jun  4 15:33:49 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Jun  4 15:33:49 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Jun  4 15:33:49 srv4hai common[31955]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jun  4 15:33:49 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jun  4 15:33:49 srv4hai common[31969]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jun  4 15:33:49 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jun  4 15:33:49 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93506d04d0 192.168.12.252#34659/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93480e0b10 192.168.12.252#51587/key rndc-key: signer "rndc-key" approved
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93480e0b10 192.168.12.252#51587/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93480e0b10 192.168.12.252#51587/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93480e0b10 192.168.12.252#51587/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93480e0b10 192.168.12.252#51587/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Jun  4 15:33:49 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93506c16d0 192.168.12.252#44029/key rndc-key: signer "rndc-key" approved
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93506c16d0 192.168.12.252#44029/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Jun  4 15:33:49 srv4hai named[30406]: client @0x7f93506c16d0 192.168.12.252#44029/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '61.12.168.192.in-addr.arpa' PTR fpThomas.viehai.at.
Jun  4 15:33:49 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Jun  4 15:33:49 srv4hai ping_SP[31969]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jun  4 15:33:56 srv4hai common[31995]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jun  4 15:33:59 srv4hai common[32022]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jun  4 15:34:00 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'4'=1717508040-1717508036
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jun  4 15:34:00 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'4'=1717508040-1717508036
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jun  4 15:34:00 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'4'=1717508040-1717508036
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(BT/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Jun  4 15:34:00 srv4hai check_presence[32022]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Jun  4 15:34:00 srv4hai activate_scenario[32173]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jun  4 15:34:00 srv4hai activate_scenario[32173]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished