activate_scenario.sh
Sun Sep 22 21:49:47 CEST 2024
scenario: bedlight_tom
source: 192.168.12.112

'night' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'null'

scenario: 'Nachttischlampe Thomas UM-schalten' - 'bedlight_tom' - 'bedlight_tom'

Nachtkästchen Lampe Thomas (/srv/www/viehai/shelly/log_scenarios/2024/09/22/_0.log)

vorher: 21:49:47.744

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

nachher: 21:49:47.784
Dauer: 40 msec phName: 'shelly-12:'Schlafzimmer Licht''


scenario: 'Nachttischlampe Thomas UM-schalten' - 'bedlight_tom' - 'bedlight_tom'

urls : 1
vorher : 21:49:47.694
nachher: 21:49:47.791
Dauer : 99 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/22//scene_bedlight_tom_20240922_214947.txt'


syslog

Sep 22 21:46:01 srv4hai CRON[1969]: (root) CMD (/etc/linetest/linetest.sh)
Sep 22 21:46:17 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Sep 22 21:46:17 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep 22 21:46:17 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Sep 22 21:46:17 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Sep 22 21:46:17 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Sep 22 21:46:17 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Sep 22 21:46:17 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f9350685ed0 192.168.12.252#51325/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f9338096e40 192.168.12.252#60997/key rndc-key: signer "rndc-key" approved
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f9338096e40 192.168.12.252#60997/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f9338096e40 192.168.12.252#60997/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f9338096e40 192.168.12.252#60997/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f9338096e40 192.168.12.252#60997/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Sep 22 21:46:17 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#34655/key rndc-key: signer "rndc-key" approved
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#34655/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Sep 22 21:46:17 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#34655/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '139.12.168.192.in-addr.arpa' PTR shelly-39.viehai.at.
Sep 22 21:46:17 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Sep 22 21:46:17 srv4hai common[1980]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Sep 22 21:46:17 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep 22 21:46:17 srv4hai common[1999]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Sep 22 21:46:17 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=19.800000&hum=46.600000&id=C049EF8AC9D8&batt=100&volt=6.210000
Sep 22 21:46:17 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/09/shelly-39_20240922.csv'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' 'conf(0)' - 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' 'conf(0)' - 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}'
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -X -POST -d 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}' http://192.168.12.139/rpc | jq -r '.''
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -X -POST -d 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}' http://192.168.12.139/rpc | jq -r '.''
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep 22 21:46:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep 22 21:46:17 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 19.8° - 46.6%
Sep 22 21:46:17 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 19.8°/20.3° - 46.6%/45.8% - SAVED
Sep 22 21:46:17 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Sep 22 21:46:18 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: dweetIO='{#012  "this": "succeeded",#012  "by": "dweeting",#012  "the": "dweet",#012  "with": {#012    "thing": "viehai-39",#012    "created": "2024-09-22T19:46:18.527Z",#012    "content": {#012      "temp": 19.8,#012      "hum": 46.6,#012      "batt": 100,#012      "csvF": "shelly-39_20240922.csv"#012    },#012    "transaction": "a4840729-2cdc-4e29-b675-e10231b1c5ca"#012  }#012}'°
Sep 22 21:46:23 srv4hai ping_SP[31510]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1727034383 - 'ping_SP_1'
Sep 22 21:46:23 srv4hai ping_SP[31510]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 22 21:47:01 srv4hai CRON[2179]: (root) CMD (/etc/linetest/linetest.sh)
Sep 22 21:47:06 srv4hai ping_SP[31325]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1727034426 - 'ping_SP_0'
Sep 22 21:47:06 srv4hai ping_SP[31325]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 22 21:47:36 srv4hai ping_SP[31510]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1727034456 - 'ping_SP_1'
Sep 22 21:47:36 srv4hai ping_SP[31510]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 22 21:47:57 srv4hai common[2239]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep 22 21:47:59 srv4hai common[2253]: SHELLY common.sh inkludiert von ./shelly/check_shelly.sh
Sep 22 21:47:59 srv4hai check_shelly.sh: SHELLY last scenery executed: 'nasszeile_um'
Sep 22 21:47:59 srv4hai check_shelly.sh: SHELLY found '4' active shelly outputs
Sep 22 21:47:59 srv4hai common[2276]: SHELLY common.sh inkludiert von ./shelly/prep_viehai.sh
Sep 22 21:48:00 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'3'=1727034480-1727034477
Sep 22 21:48:00 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'3'=1727034480-1727034477
Sep 22 21:48:00 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'3'=1727034480-1727034477
Sep 22 21:48:01 srv4hai CRON[2355]: (root) CMD (/etc/linetest/linetest.sh)
Sep 22 21:48:07 srv4hai bt_scan[2239]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Sep 22 21:48:07 srv4hai bt_scan[2239]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Sep 22 21:48:07 srv4hai common[2385]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 22 21:48:07 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'10'=1727034487-1727034477
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Sep 22 21:48:07 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'10'=1727034487-1727034477
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Sep 22 21:48:07 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1727034487-1727034477
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_nasszeile_um) - sceneOFF(offAll)
Sep 22 21:48:07 srv4hai check_presence[2385]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Sep 22 21:48:11 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep 22 21:48:11 srv4hai fetchmail[1651]: 52850 messages (52850 seen) for tmiglinci at mail.akis.at (50063699 octets).
Sep 22 21:48:12 srv4hai fetchmail[1651]: 10760 messages (10760 seen) for srozum at mail.akis.at (1304885036 octets).
Sep 22 21:48:12 srv4hai fetchmail[1651]: 26081 messages (26081 seen) for mrozum at mail.akis.at (241304864 octets).
Sep 22 21:48:13 srv4hai fetchmail[1651]: 1144 messages (1144 seen) for admin@bastelstube.wien at pop3.world4you.com (51909737 octets).
Sep 22 21:48:20 srv4hai ping_SP[31325]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1727034500 - 'ping_SP_0'
Sep 22 21:48:20 srv4hai ping_SP[31325]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 22 21:48:49 srv4hai ping_SP[31510]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1727034529 - 'ping_SP_1'
Sep 22 21:48:49 srv4hai ping_SP[31510]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Sep 22 21:49:01 srv4hai CRON[2617]: (root) CMD (/etc/linetest/linetest.sh)
Sep 22 21:49:33 srv4hai ping_SP[31325]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1727034573 - 'ping_SP_0'
Sep 22 21:49:33 srv4hai ping_SP[31325]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 22 21:49:45 srv4hai activate_scenario[2655]: SHELLY scenario: 'buero_UM(buero_um)' started
Sep 22 21:49:45 srv4hai activate_scenario[2655]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'
Sep 22 21:49:45 srv4hai activate_scenario[2655]: SHELLY scenario: 'buero_UM(buero_um)' TO BE EXECUTED, shelly-40:'Thomas Büro Licht'
Sep 22 21:49:45 srv4hai postfix/pickup[2615]: 84D8063463: uid=33 from=
Sep 22 21:49:45 srv4hai postfix/cleanup[2708]: 84D8063463: message-id=<20240922194945.84D8063463@mail.viehai.at>
Sep 22 21:49:45 srv4hai postfix/qmgr[8566]: 84D8063463: from=, size=11474, nrcpt=1 (queue active)
Sep 22 21:49:45 srv4hai activate_scenario[2655]: SHELLY: scenario: 'buero_UM(buero_um)'-'shelly-08'-'Thomas Büro Regallicht' --> '0?turn=toggle'
Sep 22 21:49:45 srv4hai proc_url[2726]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/09/22/_0.log' - shellyUsage:'Thomas Büro Regallicht' - scUrl:'http://192.168.12.108/relay/0?turn=toggle' - phName:'shelly-40:'Thomas Büro Licht''
Sep 22 21:49:45 srv4hai postfix/local[2721]: 84D8063463: to=, orig_to=, relay=local, delay=0.04, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "null")
Sep 22 21:49:45 srv4hai postfix/cleanup[2708]: 8BA3A63464: message-id=<20240922194945.8BA3A63464@mail.viehai.at>
Sep 22 21:49:45 srv4hai postfix/bounce[2722]: 84D8063463: sender non-delivery notification: 8BA3A63464
Sep 22 21:49:45 srv4hai postfix/qmgr[8566]: 8BA3A63464: from=<>, size=13396, nrcpt=1 (queue active)
Sep 22 21:49:45 srv4hai postfix/qmgr[8566]: 84D8063463: removed
Sep 22 21:49:45 srv4hai activate_scenario[2655]: SHELLY: scenario: 'buero_UM(buero_um)'-'shelly-40'-'Thomas Büro Licht' --> '0?turn=toggle'
Sep 22 21:49:45 srv4hai postfix/local[2721]: 8BA3A63464: to=, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Sep 22 21:49:45 srv4hai postfix/qmgr[8566]: 8BA3A63464: removed
Sep 22 21:49:45 srv4hai proc_url[2738]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/09/22/_1.log' - shellyUsage:'Thomas Büro Licht' - scUrl:'http://192.168.12.140/relay/0?turn=toggle' - phName:'shelly-40:'Thomas Büro Licht''
Sep 22 21:49:45 srv4hai activate_scenario[2655]: SHELLY scenario: 'buero_UM(buero_um)' took 132 msec, shelly-40:'Thomas Büro Licht'
Sep 22 21:49:47 srv4hai activate_scenario[2779]: SHELLY scenario: 'bedlight_tom(bedlight_tom)' started
Sep 22 21:49:47 srv4hai activate_scenario[2779]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-12:'Schlafzimmer Licht'

finished