activate_scenario.sh
Sat Feb 10 20:50:20 CET 2024
scenario: welcomeLight
phoneName: 1

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

vorher: 20:50:21.087

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

nachher: 20:50:21.194
Dauer: 105 msec phName: 'phoneName:'1''


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

vorher: 20:50:21.110

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

nachher: 20:50:21.204
Dauer: 93 msec phName: 'phoneName:'1''


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

vorher: 20:50:21.132

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

nachher: 20:50:21.204
Dauer: 72 msec phName: 'phoneName:'1''


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

vorher: 20:50:21.151

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

nachher: 20:50:21.203
Dauer: 52 msec phName: 'phoneName:'1''


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

vorher: 20:50:21.169

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

nachher: 20:50:21.213
Dauer: 45 msec phName: 'phoneName:'1''


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

urls : 5
vorher : 20:50:21.051
nachher: 20:50:21.219
Dauer : 169 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/02/10//scene_welcomeLight_20240210_205020.txt'


syslog

Feb 10 20:47:01 srv4hai CRON[10689]: (root) CMD (/etc/linetest/linetest.sh)
Feb 10 20:47:04 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=10697, secured, session=
Feb 10 20:47:04 srv4hai dovecot: imap(miglincit)<10697>: Logged out in=478 out=1291 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 10 20:47:22 srv4hai ping_SP[18620]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707594442 - 'ping_SP_0'
Feb 10 20:47:22 srv4hai ping_SP[18620]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb 10 20:47:28 srv4hai dhcpd[5037]: DHCPDISCOVER from 48:55:19:00:b3:58 via enp2s0
Feb 10 20:47:28 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb 10 20:47:28 srv4hai dhcpd[5037]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Feb 10 20:47:28 srv4hai dhcpd[5037]: execute_statement argv[1] = 192.168.12.137
Feb 10 20:47:28 srv4hai dhcpd[5037]: execute_statement argv[2] = shelly-37
Feb 10 20:47:28 srv4hai dhcpd[5037]: DHCPREQUEST for 192.168.12.137 (192.168.12.252) from 48:55:19:00:b3:58 via enp2s0
Feb 10 20:47:28 srv4hai dhcpd[5037]: DHCPACK on 192.168.12.137 to 48:55:19:00:b3:58 via enp2s0
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc31c0d0140 192.168.12.252#47691/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-37.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc310083bf0 192.168.12.252#59335/key rndc-key: signer "rndc-key" approved
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc310083bf0 192.168.12.252#59335/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-37.viehai.at' TXT
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc310083bf0 192.168.12.252#59335/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-37.viehai.at' TXT "001bc21ebc20088cb6a311248591ab7101"
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc310083bf0 192.168.12.252#59335/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-37.viehai.at' A
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc310083bf0 192.168.12.252#59335/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-37.viehai.at' A 192.168.12.137
Feb 10 20:47:28 srv4hai dhcpd[5037]: Added new forward map from shelly-37.viehai.at to 192.168.12.137
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc31806b450 192.168.12.252#32821/key rndc-key: signer "rndc-key" approved
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc31806b450 192.168.12.252#32821/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '137.12.168.192.in-addr.arpa' PTR
Feb 10 20:47:28 srv4hai named[14530]: client @0x7fc31806b450 192.168.12.252#32821/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 10 20:47:28 srv4hai dhcpd[5037]: Added reverse map from 137.12.168.192.in-addr.arpa. to shelly-37.viehai.at
Feb 10 20:47:28 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-37' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-37' - shIP/2:'192.168.12.137'
Feb 10 20:47:29 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=42&temp=23.00&id=shellyht-00B358
Feb 10 20:47:29 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv'
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-37' - shIP/2:'192.168.12.137'
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetter 1' already set for '192.168.12.137'
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetter 1' already set for '192.168.12.137'
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(0)' - allready transmitted - skipping
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(0)' - allready transmitted - skipping
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(1)' - allready transmitted - skipping
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(1)' - allready transmitted - skipping
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(2)' - allready transmitted - skipping
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(2)' - allready transmitted - skipping
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(3)' - ''
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' 'conf(3)' - ''
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-cmd: 'curl --connect-timeout 3 --silent 'http://192.168.12.137/' | jq -r '.''
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-ret: ''
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-cmd: 'curl --connect-timeout 3 --silent 'http://192.168.12.137/' | jq -r '.''
Feb 10 20:47:29 srv4hai conf_shelly.sh: SHELLY:'shelly-37' conf(3)-ret: ''
Feb 10 20:47:30 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: 23.° - 42%
Feb 10 20:47:30 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: 23.°/22.88° - 42%/42% - SAVED
Feb 10 20:47:30 srv4hai ht_shelly.sh: SHELLY shellyht-00B358 / shelly-37 / Wetter 1: batt='91'°
Feb 10 20:47:30 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-10T19:47:30.506Z",#012    "content": {#012      "temp": 23,#012      "hum": 42,#012      "batt": 91#012    },#012    "transaction": "ebf49dbf-2de5-4905-a797-25f650e262c6"#012  }#012}'°
Feb 10 20:47:34 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=42&temp=23.00&id=shellyht-00B358
Feb 10 20:47:34 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv'
Feb 10 20:47:34 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv' modifed 4s ago - EXIT
Feb 10 20:47:39 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=42&temp=23.00&id=shellyht-00B358
Feb 10 20:47:39 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv'
Feb 10 20:47:39 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv' modifed 9s ago - EXIT
Feb 10 20:47:45 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=42&temp=23.00&id=shellyht-00B358
Feb 10 20:47:45 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv'
Feb 10 20:47:45 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv' modifed 15s ago - EXIT
Feb 10 20:47:50 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=42&temp=23.00&id=shellyht-00B358
Feb 10 20:47:50 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv'
Feb 10 20:47:50 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv' modifed 20s ago - EXIT
Feb 10 20:47:55 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: hum=42&temp=23.00&id=shellyht-00B358
Feb 10 20:47:55 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv'
Feb 10 20:47:55 srv4hai ht_shelly.sh: SHELLY - '/srv/www/viehai/shelly/wetter/2024/02/shelly-37_20240210.csv' modifed 25s ago - EXIT
Feb 10 20:47:55 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Feb 10 20:47:56 srv4hai fetchmail[1651]: 37832 messages (37832 seen) for tmiglinci at mail.akis.at (-1171362158 octets).
Feb 10 20:47:56 srv4hai fetchmail[1651]: 9884 messages (9884 seen) for srozum at mail.akis.at (1192891364 octets).
Feb 10 20:47:57 srv4hai fetchmail[1651]: 21580 messages (21580 seen) for mrozum at mail.akis.at (-591017502 octets).
Feb 10 20:47:57 srv4hai fetchmail[1651]: 45 messages (45 seen) for admin@bastelstube.wien at pop3.world4you.com (12035480 octets).
Feb 10 20:48:01 srv4hai CRON[11054]: (root) CMD (/etc/linetest/linetest.sh)
Feb 10 20:48:07 srv4hai systemd[1]: Started Session 1041829 of user root.
Feb 10 20:48:25 srv4hai ping_SP[18620]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707594505 - 'ping_SP_0'
Feb 10 20:48:25 srv4hai ping_SP[18620]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb 10 20:49:01 srv4hai CRON[11100]: (root) CMD (/etc/linetest/linetest.sh)
Feb 10 20:49:10 srv4hai common[11106]: SHELLY common.sh inkludiert
Feb 10 20:49:10 srv4hai bt_scan[11106]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / fixAddr: '192.168.12.61;' - found: 'No'
Feb 10 20:49:10 srv4hai bt_scan[11106]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Feb 10 20:49:10 srv4hai common[11139]: SHELLY common.sh inkludiert
Feb 10 20:49:10 srv4hai check_presence[11139]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/IP) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Feb 10 20:49:10 srv4hai check_presence[11139]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Feb 10 20:49:28 srv4hai ping_SP[18620]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1707594568 - 'ping_SP_0'
Feb 10 20:49:28 srv4hai ping_SP[18620]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb 10 20:49:43 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=11202, secured, session=
Feb 10 20:49:43 srv4hai dovecot: imap(miglincit)<11202>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 10 20:50:01 srv4hai CRON[11206]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Feb 10 20:50:01 srv4hai CRON[11207]: (root) CMD (/etc/linetest/linetest.sh)
Feb 10 20:50:01 srv4hai meter.sh: SHELLY meter.sh started
Feb 10 20:50:04 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=11342, secured, session=
Feb 10 20:50:04 srv4hai dovecot: imap(miglincit)<11342>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb 10 20:50:05 srv4hai meter.sh: SHELLY 'shelly-23/Licht Sekretär':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 10 20:50:11 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 10 20:50:14 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 10 20:50:16 srv4hai meter.sh: SHELLY 'shelly-37/Wetter 1':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 10 20:50:19 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Feb 10 20:50:20 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.62' / 'S20_Grete / '192.168.12.62''
Feb 10 20:50:20 srv4hai common[11545]: SHELLY common.sh inkludiert
Feb 10 20:50:20 srv4hai ping_SP[11545]: SHELLY ping_SP.sh started from smartphone
Feb 10 20:50:20 srv4hai common[11565]: SHELLY common.sh inkludiert
Feb 10 20:50:20 srv4hai check_presence[11565]: SHELLY (ping_SP__smartphone)-(1) what: 'coming' - persPresent: '(__/IP) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Feb 10 20:50:20 srv4hai check_presence[11565]: SHELLY (ping_SP__smartphone)-(1)-coming: activate_scenario.shtml: welcomeLight
Feb 10 20:50:21 srv4hai activate_scenario[11599]: SHELLY scenario: 'welcomeLight(welcomelight)' started
Feb 10 20:50:21 srv4hai activate_scenario[11599]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - phoneName:'1'

finished