activate_scenario.sh
Fri Jun 7 12:38:25 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/06/07/_0.log)

vorher: 12:38:25.937

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

nachher: 12:38:25.968
Dauer: 31 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:38:25.951

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

nachher: 12:38:25.983
Dauer: 31 msec phName: 'shelly-40:'Thomas Büro Licht''


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

urls : 2
vorher : 12:38:25.909
nachher: 12:38:25.989
Dauer : 82 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/06/07//scene_buero_UM_20240607_123825.txt'


syslog

Jun  7 12:35:01 srv4hai CRON[15540]: (root) CMD (/etc/linetest/linetest.sh)
Jun  7 12:35:05 srv4hai mosquitto[18551]: Client shellyht-00B358 has exceeded timeout, disconnecting.
Jun  7 12:35:05 srv4hai mosquitto[18551]: Socket error on client shellyht-00B358, disconnecting.
Jun  7 12:35:53 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Jun  7 12:35:53 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jun  7 12:35:53 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jun  7 12:35:53 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Jun  7 12:35:53 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Jun  7 12:35:53 srv4hai common[15571]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jun  7 12:35:53 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Jun  7 12:35:53 srv4hai common[15585]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jun  7 12:35:53 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Jun  7 12:35:53 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#44945/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#38335/key rndc-key: signer "rndc-key" approved
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#38335/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#38335/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#38335/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#38335/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Jun  7 12:35:53 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f9338013780 192.168.12.252#47263/key rndc-key: signer "rndc-key" approved
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f9338013780 192.168.12.252#47263/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Jun  7 12:35:53 srv4hai named[30406]: client @0x7f9338013780 192.168.12.252#47263/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  7 12:35:53 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Jun  7 12:35:53 srv4hai ping_SP[15585]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jun  7 12:36:01 srv4hai common[15612]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jun  7 12:36:01 srv4hai CRON[15626]: (root) CMD (/etc/linetest/linetest.sh)
Jun  7 12:36:03 srv4hai common[15648]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jun  7 12:36:04 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'3'=1717756564-1717756561
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jun  7 12:36:04 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'3'=1717756564-1717756561
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jun  7 12:36:04 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'3'=1717756564-1717756561
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(BT/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Jun  7 12:36:04 srv4hai check_presence[15648]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Jun  7 12:36:04 srv4hai activate_scenario[15798]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jun  7 12:36:04 srv4hai activate_scenario[15798]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'
Jun  7 12:36:04 srv4hai activate_scenario[15798]: SHELLY scenario: 'vorraumOn(vorraumon)' TO BE EXECUTED, phoneName:'0'
Jun  7 12:36:04 srv4hai postfix/pickup[9349]: 8C4EB60197: uid=33 from=
Jun  7 12:36:04 srv4hai postfix/cleanup[15849]: 8C4EB60197: message-id=<20240607103604.8C4EB60197@mail.viehai.at>
Jun  7 12:36:04 srv4hai postfix/qmgr[31004]: 8C4EB60197: from=, size=15615, nrcpt=1 (queue active)
Jun  7 12:36:04 srv4hai activate_scenario[15798]: SHELLY: scenario: 'vorraumOn(vorraumon)'-'shelly-03'-'Licht Vorzimmer' --> '0?turn=on'
Jun  7 12:36:04 srv4hai proc_url[15866]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_0.log' - shellyUsage:'Licht Vorzimmer' - scUrl:'http://192.168.12.103/relay/0?turn=on' - phName:'phoneName:'0''
Jun  7 12:36:04 srv4hai activate_scenario[15798]: SHELLY scenario: 'vorraumOn(vorraumon)' took 52 msec, phoneName:'0'
Jun  7 12:36:04 srv4hai ping_SP[15585]: SHELLY check_presence.sh coming 0 ping_SP__smartphone
Jun  7 12:36:05 srv4hai postfix/relay/smtp[15862]: 8C4EB60197: to=, relay=mx04.nic.name[209.131.160.34]:25, delay=0.97, delays=0.02/0.01/0.6/0.35, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 3C7D4800A7)
Jun  7 12:36:05 srv4hai postfix/qmgr[31004]: 8C4EB60197: removed
Jun  7 12:36:06 srv4hai ping_SP[15585]: SHELLY - new process for '192.168.12.61' - '/srv/www/viehai/shelly//meter/ping_SP_0' @~1717756566
Jun  7 12:36:11 srv4hai bt_scan[15612]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Jun  7 12:36:11 srv4hai bt_scan[15612]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Jun  7 12:36:19 srv4hai ping_SP[15585]: SHELLY (0) - ping 192.168.12.61 0 sucessfully  @~1717756579 - 'ping_SP_0'
Jun  7 12:36:19 srv4hai ping_SP[15585]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jun  7 12:36:54 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=15986, secured, session=
Jun  7 12:36:54 srv4hai dovecot: imap(miglincit)<15986>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun  7 12:37:01 srv4hai CRON[15994]: (root) CMD (/etc/linetest/linetest.sh)
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY scenario: 'vorraumOff(vorraumoff)' started
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-25:'Küchenlicht'
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY scenario: 'vorraumOff(vorraumoff)' TO BE EXECUTED, shelly-25:'Küchenlicht'
Jun  7 12:37:12 srv4hai postfix/pickup[9349]: 9E79E60197: uid=33 from=
Jun  7 12:37:12 srv4hai postfix/cleanup[15849]: 9E79E60197: message-id=<20240607103712.9E79E60197@mail.viehai.at>
Jun  7 12:37:12 srv4hai postfix/qmgr[31004]: 9E79E60197: from=, size=12900, nrcpt=1 (queue active)
Jun  7 12:37:12 srv4hai postfix/local[16057]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jun  7 12:37:12 srv4hai postfix/local[16057]: 9E79E60197: to=, orig_to=, relay=local, delay=0.05, delays=0.01/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "null")
Jun  7 12:37:12 srv4hai postfix/cleanup[15849]: A8DFC601BE: message-id=<20240607103712.A8DFC601BE@mail.viehai.at>
Jun  7 12:37:12 srv4hai postfix/bounce[16063]: 9E79E60197: sender non-delivery notification: A8DFC601BE
Jun  7 12:37:12 srv4hai postfix/qmgr[31004]: A8DFC601BE: from=<>, size=14822, nrcpt=1 (queue active)
Jun  7 12:37:12 srv4hai postfix/qmgr[31004]: 9E79E60197: removed
Jun  7 12:37:12 srv4hai postfix/local[16057]: A8DFC601BE: to=, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Jun  7 12:37:12 srv4hai postfix/qmgr[31004]: A8DFC601BE: removed
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-03'-'Licht Vorzimmer' --> '0?turn=off'
Jun  7 12:37:12 srv4hai proc_url[16071]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_0.log' - shellyUsage:'Licht Vorzimmer' - scUrl:'http://192.168.12.103/relay/0?turn=off' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-16'-'Küche Licht Naßzeile' --> '0?turn=off&brightness=70'
Jun  7 12:37:12 srv4hai proc_url[16082]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_1.log' - shellyUsage:'Küche Licht Naßzeile' - scUrl:'http://192.168.12.116/white/0?turn=off&brightness=70' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-16'-'Küche Licht Naßzeile' --> '1?turn=off&brightness=70'
Jun  7 12:37:12 srv4hai proc_url[16100]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_2.log' - shellyUsage:'Küche Licht Naßzeile' - scUrl:'http://192.168.12.116/white/1?turn=off&brightness=70' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-17'-'Küche Licht Herdzeile' --> '0?turn=off&brightness=50'
Jun  7 12:37:12 srv4hai proc_url[16114]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_3.log' - shellyUsage:'Küche Licht Herdzeile' - scUrl:'http://192.168.12.117/white/0?turn=off&brightness=50' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-17'-'Küche Licht Herdzeile' --> '1?turn=off&brightness=50'
Jun  7 12:37:12 srv4hai proc_url[16125]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_4.log' - shellyUsage:'Küche Licht Herdzeile' - scUrl:'http://192.168.12.117/white/1?turn=off&brightness=50' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-22'-'WC' --> '0?turn=off'
Jun  7 12:37:12 srv4hai proc_url[16136]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_5.log' - shellyUsage:'WC' - scUrl:'http://192.168.12.122/relay/0?turn=off' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY: scenario: 'vorraumOff(vorraumoff)'-'shelly-25'-'Küchenlicht' --> '0?turn=off'
Jun  7 12:37:12 srv4hai proc_url[16149]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/06/07/_6.log' - shellyUsage:'Küchenlicht' - scUrl:'http://192.168.12.125/relay/0?turn=off' - phName:'shelly-25:'Küchenlicht''
Jun  7 12:37:12 srv4hai activate_scenario[16000]: SHELLY scenario: 'vorraumOff(vorraumoff)' took 195 msec, shelly-25:'Küchenlicht'
Jun  7 12:37:32 srv4hai ping_SP[15585]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1717756652 - 'ping_SP_0'
Jun  7 12:37:32 srv4hai ping_SP[15585]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jun  7 12:38:01 srv4hai CRON[16286]: (root) CMD (/etc/linetest/linetest.sh)
Jun  7 12:38:25 srv4hai activate_scenario[16298]: SHELLY scenario: 'buero_UM(buero_um)' started
Jun  7 12:38:25 srv4hai activate_scenario[16298]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished