activate_scenario.sh
Thu Feb 22 15:22:06 CET 2024
scenario: welcomeLight
phoneName: 0

'day' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'thomas@miglinci.name'

scenario: 'Willkommen-Licht EIN-schalten' - 'welcomeLight' - 'welcomelight'

Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/02/22/_0.log)

vorher: 15:22:06.638

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

nachher: 15:22:06.700
Dauer: 62 msec phName: 'phoneName:'0''


Küche Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2024/02/22/_1.log)

vorher: 15:22:06.654

http://192.168.12.116/white/0?turn=on&brightness=50
  "ison": true,
  "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: 15:22:06.710
Dauer: 55 msec phName: 'phoneName:'0''


Küche Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2024/02/22/_2.log)

vorher: 15:22:06.668

http://192.168.12.116/white/1?turn=on&brightness=50
  "ison": true,
  "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: 15:22:06.705
Dauer: 38 msec phName: 'phoneName:'0''


Küche Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2024/02/22/_3.log)

vorher: 15:22:06.680

http://192.168.12.117/white/0?turn=on&brightness=50
  "ison": true,
  "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: 15:22:06.710
Dauer: 30 msec phName: 'phoneName:'0''


Küche Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2024/02/22/_4.log)

vorher: 15:22:06.695

http://192.168.12.117/white/1?turn=on&brightness=50
  "ison": true,
  "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: 15:22:06.748
Dauer: 53 msec phName: 'phoneName:'0''


scenario: 'Willkommen-Licht EIN-schalten' - 'welcomeLight' - 'welcomelight'

urls : 5
vorher : 15:22:06.617
nachher: 15:22:06.757
Dauer : 139 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/02/22//scene_welcomeLight_20240222_152206.txt'


syslog

Feb 22 15:19:01 srv4hai CRON[3545]: (root) CMD (/etc/linetest/linetest.sh)
Feb 22 15:19:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=3550, secured, session=
Feb 22 15:19:01 srv4hai dovecot: imap(miglincit)<3550>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 22 15:19:34 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=3564, secured, session=
Feb 22 15:19:34 srv4hai dovecot: imap(rozumm)<3564>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 22 15:20:01 srv4hai CRON[3578]: (root) CMD (/etc/linetest/linetest.sh)
Feb 22 15:20:01 srv4hai CRON[3579]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Feb 22 15:20:01 srv4hai meter.sh: SHELLY meter.sh started
Feb 22 15:20:08 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:11 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:12 srv4hai dhcpd[5037]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Feb 22 15:20:12 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Feb 22 15:20:12 srv4hai dhcpd[5037]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Feb 22 15:20:12 srv4hai dhcpd[5037]: execute_statement argv[1] = 192.168.12.139
Feb 22 15:20:12 srv4hai dhcpd[5037]: execute_statement argv[2] = shelly-39
Feb 22 15:20:12 srv4hai dhcpd[5037]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Feb 22 15:20:12 srv4hai dhcpd[5037]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc328693a30 192.168.12.252#50107/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc308005af0 192.168.12.252#34673/key rndc-key: signer "rndc-key" approved
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc308005af0 192.168.12.252#34673/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc308005af0 192.168.12.252#34673/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc308005af0 192.168.12.252#34673/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc308005af0 192.168.12.252#34673/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Feb 22 15:20:12 srv4hai dhcpd[5037]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc31405bd50 192.168.12.252#33001/key rndc-key: signer "rndc-key" approved
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc31405bd50 192.168.12.252#33001/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Feb 22 15:20:12 srv4hai named[14530]: client @0x7fc31405bd50 192.168.12.252#33001/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.
Feb 22 15:20:12 srv4hai dhcpd[5037]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Feb 22 15:20:12 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Feb 22 15:20:12 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=9.600000&hum=72.800000&id=C049EF8AC9D8&batt=100&volt=6.690000
Feb 22 15:20:12 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-39_20240222.csv'
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Feb 22 15:20:12 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}'
Feb 22 15:20:12 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}'
Feb 22 15:20:12 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 '.''
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Feb 22 15:20:12 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 '.''
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Feb 22 15:20:12 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Feb 22 15:20:12 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 9.6° - 72.8%
Feb 22 15:20:12 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 9.6°/9° - 72.8%/72.7% - SAVED
Feb 22 15:20:12 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Feb 22 15:20:13 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-02-22T14:20:13.039Z",#012    "content": {#012      "temp": 9.6,#012      "hum": 72.8,#012      "batt": 100#012    },#012    "transaction": "5c7d6ccc-751b-4a7a-9467-c6389893046b"#012  }#012}'°
Feb 22 15:20:13 srv4hai meter.sh: SHELLY 'shelly-37/Wetter 1':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:16 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:25 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:27 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:30 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:32 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:34 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=4141, secured, session=
Feb 22 15:20:34 srv4hai dovecot: imap(rozumm)<4141>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 22 15:20:35 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:37 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:40 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:43 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:45 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:48 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:51 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:53 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:56 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:58 srv4hai meter.sh: SHELLY 'shelly-43/43-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:20:59 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Feb 22 15:21:00 srv4hai fetchmail[1651]: 38603 messages (38602 seen) for tmiglinci at mail.akis.at (-1106223012 octets).
Feb 22 15:21:00 srv4hai postfix/smtpd[4236]: connect from localhost[127.0.0.1]
Feb 22 15:21:00 srv4hai postfix/smtpd[4236]: 76FFA6011A: client=localhost[127.0.0.1]
Feb 22 15:21:00 srv4hai postfix/cleanup[4239]: 76FFA6011A: message-id=<20240222141936.12184.286323006.swift@cnccookbook.activehosted.com>
Feb 22 15:21:00 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:38603 of 38603 (28007 octets) not flushed
Feb 22 15:21:00 srv4hai postfix/qmgr[28610]: 76FFA6011A: from=, size=28249, nrcpt=1 (queue active)
Feb 22 15:21:00 srv4hai postfix/smtpd[4236]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Feb 22 15:21:00 srv4hai postfix/local[4240]: 76FFA6011A: to=, relay=local, delay=0.13, delays=0.11/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb 22 15:21:00 srv4hai postfix/qmgr[28610]: 76FFA6011A: removed
Feb 22 15:21:01 srv4hai fetchmail[1651]: 9920 messages (9920 seen) for srozum at mail.akis.at (1196562469 octets).
Feb 22 15:21:01 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:21:01 srv4hai CRON[4246]: (root) CMD (/etc/linetest/linetest.sh)
Feb 22 15:21:01 srv4hai fetchmail[1651]: 21799 messages (21799 seen) for mrozum at mail.akis.at (-565660695 octets).
Feb 22 15:21:02 srv4hai fetchmail[1651]: 46 messages (46 seen) for admin@bastelstube.wien at pop3.world4you.com (12059834 octets).
Feb 22 15:21:03 srv4hai meter.sh: SHELLY 'shelly-45/45-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 22 15:21:03 srv4hai meter.sh: SHELLY meter.sh ended
Feb 22 15:21:03 srv4hai postfix/pickup[26891]: C509B60244: uid=33 from=
Feb 22 15:21:03 srv4hai postfix/cleanup[4239]: C509B60244: message-id=<20240222142103.C509B60244@mail.viehai.at>
Feb 22 15:21:03 srv4hai postfix/qmgr[28610]: C509B60244: from=, size=762, nrcpt=1 (queue active)
Feb 22 15:21:03 srv4hai postfix/local[4240]: C509B60244: to=, orig_to=, relay=local, delay=0.05, delays=0.04/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb 22 15:21:03 srv4hai postfix/qmgr[28610]: C509B60244: removed
Feb 22 15:21:34 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=4282, secured, session=<8owZKfkRVMcAAAAAAAAAAAAAAAAAAAAB>
Feb 22 15:21:34 srv4hai dovecot: imap(rozumm)<4282><8owZKfkRVMcAAAAAAAAAAAAAAAAAAAAB>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 22 15:22:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=4290, secured, session=<3BC4KvkRdMcAAAAAAAAAAAAAAAAAAAAB>
Feb 22 15:22:01 srv4hai dovecot: imap(miglincit)<4290><3BC4KvkRdMcAAAAAAAAAAAAAAAAAAAAB>: Logged out in=728 out=46146 deleted=0 expunged=0 trashed=0 hdr_count=50 hdr_bytes=22465 body_count=0 body_bytes=0
Feb 22 15:22:01 srv4hai CRON[4292]: (root) CMD (/etc/linetest/linetest.sh)
Feb 22 15:22:06 srv4hai common[4300]: SHELLY common.sh inkludiert
Feb 22 15:22:06 srv4hai bt_scan[4300]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / fixAddr: '192.168.12.61;' - found: 'Yes'
Feb 22 15:22:06 srv4hai bt_scan[4300]: SHELLY - ping_SP.sh started for BTmac: '0' - IPv4: '192.168.12.61'
Feb 22 15:22:06 srv4hai common[4329]: SHELLY common.sh inkludiert
Feb 22 15:22:06 srv4hai ping_SP[4329]: SHELLY ping_SP.sh started from bt_scan
Feb 22 15:22:06 srv4hai common[4339]: SHELLY common.sh inkludiert
Feb 22 15:22:06 srv4hai check_presence[4339]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.DEAD and /srv/www/viehai/shelly//meter/BTscan_BTid_0.Yes
Feb 22 15:22:06 srv4hai check_presence[4339]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and /srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Feb 22 15:22:06 srv4hai check_presence[4339]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and /srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Feb 22 15:22:06 srv4hai check_presence[4339]: SHELLY (ping_SP__bt_scan)-(0) what: 'coming' - persPresent: '(BT/__) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Feb 22 15:22:06 srv4hai check_presence[4339]: SHELLY (ping_SP__bt_scan)-(0)-coming: activate_scenario.shtml: welcomeLight
Feb 22 15:22:06 srv4hai activate_scenario[4390]: SHELLY scenario: 'welcomeLight(welcomelight)' started
Feb 22 15:22:06 srv4hai activate_scenario[4390]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished