activate_scenario.sh
Mon Jul 15 12:54:51 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/07/15/_0.log)

vorher: 12:54:51.644

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:54:51.701
Dauer: 57 msec phName: 'shelly-40:'Thomas Büro Licht''


Balkon-Licht (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_1.log)

vorher: 12:54:51.660

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: 12:54:51.690
Dauer: 30 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_2.log)

vorher: 12:54:51.672

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:54:51.696
Dauer: 25 msec phName: 'shelly-40:'Thomas Büro Licht''


Stehlampe Anne hell (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_3.log)

vorher: 12:54:51.684

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: 12:54:51.728
Dauer: 44 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe klein (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_4.log)

vorher: 12:54:51.697

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:54:51.727
Dauer: 31 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.712

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: 12:54:51.749
Dauer: 38 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.723

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:54:51.761
Dauer: 37 msec phName: 'shelly-40:'Thomas Büro Licht''


Sophie Licht (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_7.log)

vorher: 12:54:51.737

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

nachher: 12:54:51.772
Dauer: 36 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.749

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

nachher: 12:54:51.899
Dauer: 149 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.762

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:54:51.806
Dauer: 44 msec phName: 'shelly-40:'Thomas Büro Licht''


Schlafzimmer Licht (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_10.log)

vorher: 12:54:51.775

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:54:51.826
Dauer: 51 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.788

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:54:51.833
Dauer: 46 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.801

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:54:51.846
Dauer: 45 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.815

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:54:51.870
Dauer: 55 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.827

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:54:51.900
Dauer: 73 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe groß (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_15.log)

vorher: 12:54:51.841

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: 12:54:51.881
Dauer: 40 msec phName: 'shelly-40:'Thomas Büro Licht''


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

vorher: 12:54:51.856

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: 12:54:51.944
Dauer: 88 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Empore (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_17.log)

vorher: 12:54:51.869

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:54:51.955
Dauer: 86 msec phName: 'shelly-40:'Thomas Büro Licht''


Küchenlicht (/srv/www/viehai/shelly/log_scenarios/2024/07/15/_18.log)

vorher: 12:54:51.881

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:54:51.946
Dauer: 64 msec phName: 'shelly-40:'Thomas Büro Licht''


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

urls : 19
vorher : 12:54:51.599
nachher: 12:54:51.963
Dauer : 366 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/15//scene_homeOffice_20240715_125451.txt'


syslog

Jul 15 12:51:01 srv4hai CRON[1205]: (root) CMD (/etc/linetest/linetest.sh)
Jul 15 12:51:40 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=1214, secured, session=<+yCcA0cdWpIAAAAAAAAAAAAAAAAAAAAB>
Jul 15 12:51:40 srv4hai dovecot: imap(miglincit)<1214><+yCcA0cdWpIAAAAAAAAAAAAAAAAAAAAB>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul 15 12:51:42 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Jul 15 12:51:42 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jul 15 12:51:42 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jul 15 12:51:42 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Jul 15 12:51:42 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Jul 15 12:51:42 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Jul 15 12:51:42 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f934c046b60 192.168.12.252#46397/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#56791/key rndc-key: signer "rndc-key" approved
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#56791/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#56791/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#56791/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#56791/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Jul 15 12:51:42 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#39107/key rndc-key: signer "rndc-key" approved
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#39107/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Jul 15 12:51:42 srv4hai named[30406]: client @0x7f9348035d30 192.168.12.252#39107/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.
Jul 15 12:51:42 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Jul 15 12:51:42 srv4hai common[1216]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jul 15 12:51:42 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Jul 15 12:51:42 srv4hai common[1229]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Jul 15 12:51:42 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=31.600000&hum=45.900000&id=C049EF8AC9D8&batt=100&volt=6.750000
Jul 15 12:51:42 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/07/shelly-39_20240715.csv'
Jul 15 12:51:42 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jul 15 12:51:42 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jul 15 12:51:42 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}'
Jul 15 12:51:43 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 '.''
Jul 15 12:51:43 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jul 15 12:51:43 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jul 15 12:51:43 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 31.6° - 45.9%
Jul 15 12:51:43 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 31.6°/30.4° - 45.9%/48.9% - SAVED
Jul 15 12:51:43 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Jul 15 12:51:44 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-07-15T10:51:43.952Z",#012    "content": {#012      "temp": 31.6,#012      "hum": 45.9,#012      "batt": 100,#012      "csvF": "shelly-39_20240715.csv"#012    },#012    "transaction": "5b6f3db7-8a57-45f0-900f-4c62c0d4918e"#012  }#012}'°
Jul 15 12:51:44 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jul 15 12:51:44 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jul 15 12:51:44 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}'
Jul 15 12:51:44 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 '.''
Jul 15 12:51:44 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jul 15 12:51:44 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jul 15 12:52:01 srv4hai CRON[1383]: (root) CMD (/etc/linetest/linetest.sh)
Jul 15 12:52:04 srv4hai common[1392]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jul 15 12:52:12 srv4hai ping_SP[19397]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1721040732 - 'ping_SP_0'
Jul 15 12:52:12 srv4hai ping_SP[19397]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul 15 12:52:14 srv4hai bt_scan[1392]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Jul 15 12:52:14 srv4hai bt_scan[1392]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Jul 15 12:53:01 srv4hai CRON[1449]: (root) CMD (/etc/linetest/linetest.sh)
Jul 15 12:53:20 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jul 15 12:53:21 srv4hai fetchmail[1651]: 48710 messages (48710 seen) for tmiglinci at mail.akis.at (-261281382 octets).
Jul 15 12:53:22 srv4hai fetchmail[1651]: 10450 messages (10450 seen) for srozum at mail.akis.at (1258998125 octets).
Jul 15 12:53:22 srv4hai fetchmail[1651]: 24745 messages (24745 seen) for mrozum at mail.akis.at (37595734 octets).
Jul 15 12:53:23 srv4hai fetchmail[1651]: 1139 messages (1139 seen) for admin@bastelstube.wien at pop3.world4you.com (51570784 octets).
Jul 15 12:53:27 srv4hai ping_SP[19397]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1721040807 - 'ping_SP_0'
Jul 15 12:53:27 srv4hai ping_SP[19397]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul 15 12:54:01 srv4hai CRON[1480]: (root) CMD (/etc/linetest/linetest.sh)
Jul 15 12:54:40 srv4hai ping_SP[19397]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1721040880 - 'ping_SP_0'
Jul 15 12:54:40 srv4hai ping_SP[19397]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul 15 12:54:40 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=1509, secured, session=
Jul 15 12:54:40 srv4hai dovecot: imap(miglincit)<1509>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul 15 12:54:51 srv4hai activate_scenario[1512]: SHELLY scenario: 'homeOffice(homeoffice)' started
Jul 15 12:54:51 srv4hai activate_scenario[1512]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished