activate_scenario.sh
Mon Feb 12 11:30:46 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/12/_0.log)

vorher: 11:30:46.169

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: 11:30:46.316
Dauer: 147 msec phName: 'phoneName:'0''


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

vorher: 11:30:46.181

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: 11:30:46.310
Dauer: 129 msec phName: 'phoneName:'0''


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

vorher: 11:30:46.193

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: 11:30:46.321
Dauer: 129 msec phName: 'phoneName:'0''


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

vorher: 11:30:46.205

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: 11:30:46.234
Dauer: 28 msec phName: 'phoneName:'0''


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

vorher: 11:30:46.217

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: 11:30:46.283
Dauer: 65 msec phName: 'phoneName:'0''


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

urls : 5
vorher : 11:30:46.151
nachher: 11:30:46.330
Dauer : 179 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/02/12//scene_welcomeLight_20240212_113046.txt'


syslog

Feb 12 11:27:01 srv4hai CRON[21312]: (root) CMD (/etc/linetest/linetest.sh)
Feb 12 11:27:45 srv4hai dhcpd[5037]: DHCPDISCOVER from 48:55:19:00:b3:58 via enp2s0
Feb 12 11:27:45 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb 12 11:27:47 srv4hai dhcpd[5037]: DHCPDISCOVER from 48:55:19:00:b3:58 via enp2s0
Feb 12 11:27:47 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb 12 11:27:47 srv4hai dhcpd[5037]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Feb 12 11:27:47 srv4hai dhcpd[5037]: execute_statement argv[1] = 192.168.12.137
Feb 12 11:27:47 srv4hai dhcpd[5037]: execute_statement argv[2] = shelly-37
Feb 12 11:27:47 srv4hai dhcpd[5037]: DHCPREQUEST for 192.168.12.137 (192.168.12.252) from 48:55:19:00:b3:58 via enp2s0
Feb 12 11:27:47 srv4hai dhcpd[5037]: DHCPACK on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc3200246f0 192.168.12.252#51071/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-37.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#59261/key rndc-key: signer "rndc-key" approved
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#59261/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-37.viehai.at' TXT
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#59261/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-37.viehai.at' TXT "001bc21ebc20088cb6a311248591ab7101"
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#59261/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-37.viehai.at' A
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#59261/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-37.viehai.at' A 192.168.12.137
Feb 12 11:27:47 srv4hai dhcpd[5037]: Added new forward map from shelly-37.viehai.at to 192.168.12.137
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc328100b10 192.168.12.252#60081/key rndc-key: signer "rndc-key" approved
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc328100b10 192.168.12.252#60081/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '137.12.168.192.in-addr.arpa' PTR
Feb 12 11:27:47 srv4hai named[14530]: client @0x7fc328100b10 192.168.12.252#60081/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '137.12.168.192.in-addr.arpa' PTR shelly-37.viehai.at.
Feb 12 11:27:47 srv4hai dhcpd[5037]: Added reverse map from 137.12.168.192.in-addr.arpa. to shelly-37.viehai.at
Feb 12 11:27:47 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-37' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Feb 12 11:27:48 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-37' - shIP/2:'192.168.12.137'
Feb 12 11:27:48 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=40&temp=22.25&id=shellyht-00B358
Feb 12 11:27:48 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv'
Feb 12 11:27:48 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-37' - shIP/2:'192.168.12.137'
Feb 12 11:27:48 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetter 1' already set for '192.168.12.137'
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(0)' - allready transmitted - skipping
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetter 1' already set for '192.168.12.137'
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(1)' - allready transmitted - skipping
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(0)' - allready transmitted - skipping
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(2)' - allready transmitted - skipping
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(1)' - allready transmitted - skipping
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(3)' - ''
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(2)' - allready transmitted - skipping
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(3)' - ''
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-cmd: 'curl --connect-timeout 3 --silent 'http://192.168.12.137/' | jq -r '.''
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-ret: ''
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-cmd: 'curl --connect-timeout 3 --silent 'http://192.168.12.137/' | jq -r '.''
Feb 12 11:27:49 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-ret: ''
Feb 12 11:27:49 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: 22.25° - 40%
Feb 12 11:27:49 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: 22.25°/22.25° - 40%/40% - SAVED
Feb 12 11:27:49 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: batt='91'°
Feb 12 11:27:49 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: dweetIO='{#012  "this": "succeeded",#012  "by": "dweeting",#012  "the": "dweet",#012  "with": {#012    "thing": "viehai-37",#012    "created": "2024-02-12T10:27:49.665Z",#012    "content": {#012      "temp": 22.25,#012      "hum": 40,#012      "batt": 91#012    },#012    "transaction": "17ef0076-1d23-4b83-8780-2b68f59bf88c"#012  }#012}'°
Feb 12 11:27:54 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=40&temp=22.25&id=shellyht-00B358
Feb 12 11:27:54 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv'
Feb 12 11:27:54 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv' modifed 5s ago - EXIT
Feb 12 11:27:57 srv4hai postfix/anvil[21203]: statistics: max connection rate 1/60s for (smtp:194.33.191.197) at Feb 12 11:23:31
Feb 12 11:27:57 srv4hai postfix/anvil[21203]: statistics: max connection count 1 for (smtp:194.33.191.197) at Feb 12 11:23:31
Feb 12 11:27:57 srv4hai postfix/anvil[21203]: statistics: max cache size 1 at Feb 12 11:23:31
Feb 12 11:27:59 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=40&temp=22.25&id=shellyht-00B358
Feb 12 11:27:59 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv'
Feb 12 11:27:59 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv' modifed 10s ago - EXIT
Feb 12 11:28:01 srv4hai CRON[21617]: (root) CMD (/etc/linetest/linetest.sh)
Feb 12 11:28:04 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=40&temp=22.25&id=shellyht-00B358
Feb 12 11:28:04 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv'
Feb 12 11:28:04 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv' modifed 15s ago - EXIT
Feb 12 11:28:06 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Feb 12 11:28:07 srv4hai fetchmail[1651]: 37923 messages (37923 seen) for tmiglinci at mail.akis.at (-1166580369 octets).
Feb 12 11:28:07 srv4hai fetchmail[1651]: 9887 messages (9887 seen) for srozum at mail.akis.at (1193095076 octets).
Feb 12 11:28:08 srv4hai fetchmail[1651]: 21601 messages (21601 seen) for mrozum at mail.akis.at (-588125857 octets).
Feb 12 11:28:08 srv4hai fetchmail[1651]: 45 messages (45 seen) for admin@bastelstube.wien at pop3.world4you.com (12035480 octets).
Feb 12 11:28:09 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=40&temp=22.25&id=shellyht-00B358
Feb 12 11:28:09 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv'
Feb 12 11:28:09 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv' modifed 20s ago - EXIT
Feb 12 11:28:14 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=40&temp=22.25&id=shellyht-00B358
Feb 12 11:28:14 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv'
Feb 12 11:28:14 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240212.csv' modifed 25s ago - EXIT
Feb 12 11:28:42 srv4hai nmbd[30864]: [2024/02/12 11:28:42.559045,  0] ../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
Feb 12 11:28:42 srv4hai nmbd[30864]:   find_domain_master_name_query_fail:
Feb 12 11:28:42 srv4hai nmbd[30864]:   Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Feb 12 11:28:42 srv4hai nmbd[30864]:   Unable to sync browse lists in this workgroup.
Feb 12 11:29:01 srv4hai CRON[21703]: (root) CMD (/etc/linetest/linetest.sh)
Feb 12 11:29:05 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21710, secured, session=
Feb 12 11:29:05 srv4hai dovecot: imap(miglincit)<21710>: 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 12 11:30:01 srv4hai CRON[21731]: (root) CMD (/etc/linetest/linetest.sh)
Feb 12 11:30:01 srv4hai CRON[21732]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Feb 12 11:30:01 srv4hai CRON[21733]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Feb 12 11:30:01 srv4hai meter.sh: SHELLY meter.sh started
Feb 12 11:30:08 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:08 srv4hai postfix/smtpd[22062]: connect from mailout3.drei.at[213.94.96.248]
Feb 12 11:30:08 srv4hai postfix/smtpd[22062]: D51826011D: client=mailout3.drei.at[213.94.96.248]
Feb 12 11:30:08 srv4hai postfix/cleanup[22072]: D51826011D: message-id=<1646570717.11355.1707733808298@avl6251p.it.internal>
Feb 12 11:30:08 srv4hai postfix/qmgr[28610]: D51826011D: from=, size=56020, nrcpt=1 (queue active)
Feb 12 11:30:08 srv4hai postfix/smtpd[22062]: disconnect from mailout3.drei.at[213.94.96.248] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Feb 12 11:30:08 srv4hai postfix/local[22073]: D51826011D: to=, orig_to=, relay=local, delay=0.1, delays=0.06/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb 12 11:30:08 srv4hai postfix/qmgr[28610]: D51826011D: removed
Feb 12 11:30:11 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:13 srv4hai meter.sh: SHELLY 'shelly-37/Wetter 1':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:16 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:18 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:21 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:24 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:26 srv4hai systemd[1]: Started Run anacron jobs.
Feb 12 11:30:26 srv4hai anacron[22158]: Anacron 2.3 started on 2024-02-12
Feb 12 11:30:26 srv4hai anacron[22158]: Normal exit (0 jobs run)
Feb 12 11:30:26 srv4hai systemd[1]: anacron.service: Succeeded.
Feb 12 11:30:26 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:29 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:31 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:34 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:36 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:39 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:41 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:44 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 12 11:30:45 srv4hai common[22244]: SHELLY common.sh inkludiert
Feb 12 11:30:45 srv4hai bt_scan[22244]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / fixAddr: '192.168.12.61;' - found: 'Yes'
Feb 12 11:30:45 srv4hai bt_scan[22244]: SHELLY - ping_SP.sh started for BTmac: '0' - IPv4: '192.168.12.61'
Feb 12 11:30:46 srv4hai common[22273]: SHELLY common.sh inkludiert
Feb 12 11:30:46 srv4hai ping_SP[22273]: SHELLY ping_SP.sh started from bt_scan
Feb 12 11:30:46 srv4hai common[22283]: SHELLY common.sh inkludiert
Feb 12 11:30:46 srv4hai check_presence[22283]: SHELLY (0) found /srv/www/viehai/shelly/meter/ping_SP_0.DEAD and /srv/www/viehai/shelly/meter/BTscan_BTid_0.Yes
Feb 12 11:30:46 srv4hai check_presence[22283]: SHELLY (0) found  and 
Feb 12 11:30:46 srv4hai check_presence[22283]: SHELLY (0) found  and 
Feb 12 11:30:46 srv4hai check_presence[22283]: SHELLY (ping_SP__bt_scan)-(0) what: 'coming' - persPresent: '(BT/__) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Feb 12 11:30:46 srv4hai check_presence[22283]: SHELLY (ping_SP__bt_scan)-(0)-coming: activate_scenario.shtml: welcomeLight
Feb 12 11:30:46 srv4hai activate_scenario[22334]: SHELLY scenario: 'welcomeLight(welcomelight)' started
Feb 12 11:30:46 srv4hai activate_scenario[22334]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished