activate_scenario.sh
Wed Oct 16 18:24:13 CEST 2024
scenario: homeOffice
source: 192.168.12.140

'night' <--> 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/10/16/_0.log)

vorher: 18:24:13.339

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: 18:24:13.380
Dauer: 42 msec phName: 'shelly-40:'Thomas Büro Licht''


Balkon-Licht (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_1.log)

vorher: 18:24:13.351

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": "http"

nachher: 18:24:13.407
Dauer: 56 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_2.log)

vorher: 18:24:13.364

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: 18:24:13.402
Dauer: 39 msec phName: 'shelly-40:'Thomas Büro Licht''


Stehlampe Anne hell (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_3.log)

vorher: 18:24:13.378

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

nachher: 18:24:13.409
Dauer: 31 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe klein (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_4.log)

vorher: 18:24:13.392

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

nachher: 18:24:13.426
Dauer: 34 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.405

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

nachher: 18:24:13.443
Dauer: 39 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.418

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: 18:24:13.510
Dauer: 92 msec phName: 'shelly-40:'Thomas Büro Licht''


Sophie Licht (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_7.log)

vorher: 18:24:13.432

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: 18:24:13.464
Dauer: 33 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.447

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: 18:24:13.508
Dauer: 60 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.460

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: 18:24:13.508
Dauer: 48 msec phName: 'shelly-40:'Thomas Büro Licht''


Schlafzimmer Licht (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_10.log)

vorher: 18:24:13.474

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: 18:24:13.570
Dauer: 97 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.487

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": 8.87,
  "overpower": false

nachher: 18:24:13.513
Dauer: 26 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.500

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": 8.87,
  "overpower": false

nachher: 18:24:13.601
Dauer: 100 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.514

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: 18:24:13.553
Dauer: 39 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.530

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: 18:24:13.686
Dauer: 156 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe groß (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_15.log)

vorher: 18:24:13.543

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

nachher: 18:24:13.596
Dauer: 54 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 18:24:13.558

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

nachher: 18:24:13.601
Dauer: 44 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Empore (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_17.log)

vorher: 18:24:13.572

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

nachher: 18:24:13.614
Dauer: 43 msec phName: 'shelly-40:'Thomas Büro Licht''


Küchenlicht (/srv/www/viehai/shelly/log_scenarios/2024/10/16/_18.log)

vorher: 18:24:13.585

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: 18:24:13.702
Dauer: 117 msec phName: 'shelly-40:'Thomas Büro Licht''


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

urls : 19
vorher : 18:24:13.318
nachher: 18:24:13.710
Dauer : 392 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/10/16//scene_homeOffice_20241016_182413.txt'


syslog

Oct 16 18:21:01 srv4hai CRON[31453]: (root) CMD (/etc/linetest/linetest.sh)
Oct 16 18:21:32 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Oct 16 18:21:32 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Oct 16 18:21:32 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Oct 16 18:21:32 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Oct 16 18:21:32 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Oct 16 18:21:32 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Oct 16 18:21:32 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f932c06a420 192.168.12.252#58617/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#36755/key rndc-key: signer "rndc-key" approved
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#36755/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#36755/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#36755/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#36755/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Oct 16 18:21:32 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#59933/key rndc-key: signer "rndc-key" approved
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#59933/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Oct 16 18:21:32 srv4hai named[30406]: client @0x7f93506e3340 192.168.12.252#59933/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.
Oct 16 18:21:32 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Oct 16 18:21:32 srv4hai common[31482]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Oct 16 18:21:32 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Oct 16 18:21:33 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Oct 16 18:21:33 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Oct 16 18:21:33 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}'
Oct 16 18:21:33 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 '.''
Oct 16 18:21:33 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Oct 16 18:21:33 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Oct 16 18:21:35 srv4hai common[31551]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Oct 16 18:21:35 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=13&hum=59&id=C049EF8AC9D8&batt=100&volt=6.090000
Oct 16 18:21:35 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/10/shelly-39_20241016.csv'
Oct 16 18:21:35 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Oct 16 18:21:35 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Oct 16 18:21:35 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}'
Oct 16 18:21:35 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 '.''
Oct 16 18:21:35 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Oct 16 18:21:35 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Oct 16 18:21:35 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 13° - 59%
Oct 16 18:21:35 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 13°/13.5° - 59%/57.1% - SAVED
Oct 16 18:21:35 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Oct 16 18:21:36 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-10-16T16:21:36.180Z",#012    "content": {#012      "temp": 13,#012      "hum": 59,#012      "batt": 100,#012      "csvF": "shelly-39_20241016.csv"#012    },#012    "transaction": "4e2a3d39-703d-4a3b-a569-7adeab277802"#012  }#012}'°
Oct 16 18:21:39 srv4hai common[31652]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Oct 16 18:21:39 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=13&hum=59&id=C049EF8AC9D8&batt=100&volt=6.090000
Oct 16 18:21:39 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/10/shelly-39_20241016.csv'
Oct 16 18:21:39 srv4hai ht_shelly.sh: SHELLY - 'shelly-39_20241016.csv' modifed 4s ago - EXIT
Oct 16 18:22:01 srv4hai CRON[31701]: (root) CMD (/etc/linetest/linetest.sh)
Oct 16 18:22:03 srv4hai ping_SP[15622]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1729095723 - 'ping_SP_0'
Oct 16 18:22:03 srv4hai ping_SP[15622]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Oct 16 18:22:19 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=31731, secured, session=
Oct 16 18:22:19 srv4hai dovecot: imap(miglincit)<31731>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct 16 18:23:01 srv4hai CRON[31763]: (root) CMD (/etc/linetest/linetest.sh)
Oct 16 18:23:16 srv4hai ping_SP[15622]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1729095796 - 'ping_SP_0'
Oct 16 18:23:16 srv4hai ping_SP[15622]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Oct 16 18:24:01 srv4hai CRON[31831]: (root) CMD (/etc/linetest/linetest.sh)
Oct 16 18:24:13 srv4hai activate_scenario[31843]: SHELLY scenario: 'homeOffice(homeoffice)' started
Oct 16 18:24:13 srv4hai activate_scenario[31843]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished