activate_scenario.sh
Mon Jun 17 12:47:25 CEST 2024
scenario: homeOffice
source: 192.168.12.140

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

scenario: 'Home-Office' - 'homeOffice' - 'homeoffice'

Wandlicht beim Esstisch (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_0.log)

vorher: 12:47:25.503

http://192.168.12.101/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "overpower": false,
  "source": "http"

nachher: 12:47:25.679
Dauer: 175 msec phName: 'shelly-40:'Thomas Büro Licht''


Balkon-Licht (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_1.log)

vorher: 12:47:25.517

http://192.168.12.102/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "overpower": false,
  "source": "input"

nachher: 12:47:25.545
Dauer: 28 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_2.log)

vorher: 12:47:25.529

http://192.168.12.103/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "overpower": false,
  "source": "http"

nachher: 12:47:25.557
Dauer: 28 msec phName: 'shelly-40:'Thomas Büro Licht''


Stehlampe Anne hell (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_3.log)

vorher: 12:47:25.544

http://192.168.12.105/relay/0?turn=off

        

nachher: 12:47:28.627
Dauer: 3083 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe klein (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_4.log)

vorher: 12:47:25.559

http://192.168.12.106/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 12:47:25.665
Dauer: 106 msec phName: 'shelly-40:'Thomas Büro Licht''


Nachtkästchen Lampe Thomas (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_5.log)

vorher: 12:47:25.572

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

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


Thomas Büro Regallicht (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_6.log)

vorher: 12:47:25.585

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

nachher: 12:47:25.631
Dauer: 45 msec phName: 'shelly-40:'Thomas Büro Licht''


Sophie Licht (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_7.log)

vorher: 12:47:25.597

http://192.168.12.109/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 12:47:25.646
Dauer: 48 msec phName: 'shelly-40:'Thomas Büro Licht''


WZ Bücherregal (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_8.log)

vorher: 12:47:25.610

http://192.168.12.110/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 12:47:25.648
Dauer: 37 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:47:25.623

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

nachher: 12:47:25.685
Dauer: 61 msec phName: 'shelly-40:'Thomas Büro Licht''


Schlafzimmer Licht (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_10.log)

vorher: 12:47:25.636

http://192.168.12.112/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 12:47:25.714
Dauer: 78 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_11.log)

vorher: 12:47:25.649

http://192.168.12.116/white/0?turn=on&brightness=20
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 20,
  "transition": 0,
  "power": 0,
  "overpower": false

nachher: 12:47:25.678
Dauer: 30 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_12.log)

vorher: 12:47:25.663

http://192.168.12.116/white/1?turn=on&brightness=20
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 20,
  "transition": 0,
  "power": 0,
  "overpower": false

nachher: 12:47:25.697
Dauer: 35 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_13.log)

vorher: 12:47:25.676

http://192.168.12.117/white/0?turn=off&brightness=50
  "ison": false,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 50,
  "transition": 0,
  "power": 0,
  "overpower": false

nachher: 12:47:25.804
Dauer: 128 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_14.log)

vorher: 12:47:25.692

http://192.168.12.117/white/1?turn=off&brightness=50
  "ison": false,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 50,
  "transition": 0,
  "power": 0,
  "overpower": false

nachher: 12:47:25.822
Dauer: 131 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe groß (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_15.log)

vorher: 12:47:25.708

http://192.168.12.119/relay/0?turn=off

        

nachher: 12:47:28.787
Dauer: 3079 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Sekretär (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_16.log)

vorher: 12:47:25.720

http://192.168.12.123/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 12:47:25.829
Dauer: 109 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Empore (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_17.log)

vorher: 12:47:25.734

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

nachher: 12:47:25.837
Dauer: 102 msec phName: 'shelly-40:'Thomas Büro Licht''


Küchenlicht (/srv/www/viehai/shelly/log_scenarios/2024/06/17/_18.log)

vorher: 12:47:25.749

http://192.168.12.125/relay/0?turn=off
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 12:47:25.833
Dauer: 84 msec phName: 'shelly-40:'Thomas Büro Licht''


scenario: 'Home-Office' - 'homeOffice' - 'homeoffice'

urls : 19
vorher : 12:47:25.468
nachher: 12:47:28.797
Dauer : 3330 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/06/17//scene_homeOffice_20240617_124725.txt'


syslog

Jun 17 12:44:01 srv4hai CRON[22519]: (root) CMD (/etc/linetest/linetest.sh)
Jun 17 12:44:27 srv4hai ping_SP[9083]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1718621067 - 'ping_SP_0'
Jun 17 12:44:27 srv4hai ping_SP[9083]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jun 17 12:45:01 srv4hai CRON[22571]: (root) CMD (/etc/linetest/linetest.sh)
Jun 17 12:45:19 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=22585, secured, session=
Jun 17 12:45:19 srv4hai dovecot: imap(miglincit)<22585>: 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 17 12:45:40 srv4hai ping_SP[9083]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1718621140 - 'ping_SP_0'
Jun 17 12:45:40 srv4hai ping_SP[9083]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jun 17 12:46:01 srv4hai CRON[22621]: (root) CMD (/etc/linetest/linetest.sh)
Jun 17 12:46:14 srv4hai common[22629]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jun 17 12:46:24 srv4hai bt_scan[22629]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Jun 17 12:46:24 srv4hai bt_scan[22629]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Jun 17 12:46:24 srv4hai common[22663]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jun 17 12:46:25 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1718621185-1718621174
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Jun 17 12:46:25 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'11'=1718621185-1718621174
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jun 17 12:46:25 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1718621185-1718621174
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_pcOFF) - sceneOFF(offAll)
Jun 17 12:46:25 srv4hai check_presence[22663]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Jun 17 12:46:46 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Jun 17 12:46:46 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jun 17 12:46:46 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jun 17 12:46:46 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Jun 17 12:46:46 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Jun 17 12:46:46 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Jun 17 12:46:46 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#58611/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#50185/key rndc-key: signer "rndc-key" approved
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#50185/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#50185/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#50185/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#50185/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Jun 17 12:46:46 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f9348063d20 192.168.12.252#35765/key rndc-key: signer "rndc-key" approved
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f9348063d20 192.168.12.252#35765/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Jun 17 12:46:46 srv4hai named[30406]: client @0x7f9348063d20 192.168.12.252#35765/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.
Jun 17 12:46:46 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Jun 17 12:46:46 srv4hai common[22826]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jun 17 12:46:46 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Jun 17 12:46:46 srv4hai common[22839]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Jun 17 12:46:46 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=30.100000&hum=41.100000&id=C049EF8AC9D8&batt=100&volt=6.730000
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jun 17 12:46:46 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/06/shelly-39_20240617.csv'
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jun 17 12:46:46 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}'
Jun 17 12:46:46 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}'
Jun 17 12:46:46 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 '.''
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jun 17 12:46:46 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 '.''
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jun 17 12:46:46 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jun 17 12:46:46 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 30.1° - 41.1%
Jun 17 12:46:46 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 30.1°/28.9° - 41.1%/45.7% - SAVED
Jun 17 12:46:46 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Jun 17 12:46:46 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-06-17T10:46:46.884Z",#012    "content": {#012      "temp": 30.1,#012      "hum": 41.1,#012      "batt": 100,#012      "csvF": "shelly-39_20240617.csv"#012    },#012    "transaction": "1622b8ab-74c5-435b-86eb-3c04df362b8c"#012  }#012}'°
Jun 17 12:46:54 srv4hai ping_SP[9083]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1718621214 - 'ping_SP_0'
Jun 17 12:46:54 srv4hai ping_SP[9083]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jun 17 12:47:01 srv4hai CRON[23010]: (root) CMD (/etc/linetest/linetest.sh)
Jun 17 12:47:07 srv4hai common[23016]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jun 17 12:47:17 srv4hai bt_scan[23016]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Jun 17 12:47:17 srv4hai bt_scan[23016]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Jun 17 12:47:18 srv4hai postfix/anvil[21197]: statistics: max connection rate 1/60s for (smtp:185.208.158.235) at Jun 17 12:38:52
Jun 17 12:47:18 srv4hai postfix/anvil[21197]: statistics: max connection count 1 for (smtp:185.208.158.235) at Jun 17 12:38:52
Jun 17 12:47:18 srv4hai postfix/anvil[21197]: statistics: max cache size 1 at Jun 17 12:38:52
Jun 17 12:47:25 srv4hai activate_scenario[23059]: SHELLY scenario: 'homeOffice(homeoffice)' started
Jun 17 12:47:25 srv4hai activate_scenario[23059]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished