activate_scenario.sh
Wed Jan 31 23:04:18 CET 2024
scenario: welcomeLight
phoneName: 0

'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/01/31/_0.log)

vorher: 23:04:18.462

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: 23:04:18.498
Dauer: 36 msec phName: 'phoneName:'0''


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

vorher: 23:04:18.487

http://192.168.12.116/white/0?turn=on&brightness=25
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 25,
  "transition": 0,
  "power": 12.72,
  "overpower": false

nachher: 23:04:18.534
Dauer: 47 msec phName: 'phoneName:'0''


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

vorher: 23:04:18.513

http://192.168.12.116/white/1?turn=on&brightness=25
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 25,
  "transition": 0,
  "power": 12.72,
  "overpower": false

nachher: 23:04:18.551
Dauer: 38 msec phName: 'phoneName:'0''


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

vorher: 23:04:18.531

http://192.168.12.117/white/0?turn=on&brightness=25
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 25,
  "transition": 0,
  "power": 7.13,
  "overpower": false

nachher: 23:04:18.556
Dauer: 25 msec phName: 'phoneName:'0''


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

vorher: 23:04:18.545

http://192.168.12.117/white/1?turn=on&brightness=25
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 25,
  "transition": 0,
  "power": 7.13,
  "overpower": false

nachher: 23:04:18.609
Dauer: 64 msec phName: 'phoneName:'0''


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

urls : 5
vorher : 23:04:18.424
nachher: 23:04:18.616
Dauer : 192 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/01/31//scene_welcomeLight_20240131_230418.txt'


syslog

Jan 31 23:01:01 srv4hai CRON[12482]: (root) CMD (/etc/linetest/linetest.sh)
Jan 31 23:01:07 srv4hai meter.sh: SHELLY meter.sh ended
Jan 31 23:01:07 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738467 - 'ping_SP_0'
Jan 31 23:01:07 srv4hai check_presence[12514]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(BT/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:01:07 srv4hai check_presence[12514]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:01:07 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:01:22 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1706738482 - 'ping_SP_1'
Jan 31 23:01:22 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 31 23:01:37 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738497 - 'ping_SP_0'
Jan 31 23:01:37 srv4hai check_presence[12568]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(BT/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:01:37 srv4hai check_presence[12568]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:01:37 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:01:52 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1706738512 - 'ping_SP_1'
Jan 31 23:01:52 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 31 23:02:01 srv4hai CRON[12609]: (root) CMD (/etc/linetest/linetest.sh)
Jan 31 23:02:07 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738527 - 'ping_SP_0'
Jan 31 23:02:07 srv4hai check_presence[12626]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(BT/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:02:07 srv4hai check_presence[12626]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:02:07 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:02:11 srv4hai dhcpd[5037]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Jan 31 23:02:11 srv4hai dhcpd[5037]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jan 31 23:02:11 srv4hai dhcpd[5037]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jan 31 23:02:11 srv4hai dhcpd[5037]: execute_statement argv[1] = 192.168.12.139
Jan 31 23:02:11 srv4hai dhcpd[5037]: execute_statement argv[2] = shelly-39
Jan 31 23:02:11 srv4hai dhcpd[5037]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Jan 31 23:02:11 srv4hai dhcpd[5037]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3201073f0 192.168.12.252#40063/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#60445/key rndc-key: signer "rndc-key" approved
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#60445/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#60445/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#60445/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3200e9ad0 192.168.12.252#60445/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Jan 31 23:02:11 srv4hai dhcpd[5037]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3180a5240 192.168.12.252#38537/key rndc-key: signer "rndc-key" approved
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3180a5240 192.168.12.252#38537/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Jan 31 23:02:11 srv4hai named[14530]: client @0x7fc3180a5240 192.168.12.252#38537/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.
Jan 31 23:02:11 srv4hai dhcpd[5037]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Jan 31 23:02:11 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY - working dir '/srv/www/viehai/shelly/wetter/2024/01'
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=4.500000&hum=72.200000&id=C049EF8AC9D8&batt=100&volt=6.690000
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY id  => macID: '8A:C9:D8'
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jan 31 23:02:11 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}'
Jan 31 23:02:11 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}'
Jan 31 23:02:11 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 '.''
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jan 31 23:02:11 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 '.''
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jan 31 23:02:11 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 4.5° - 72.2%
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly/wetter/2024/01/shelly-39_20240131.csv'
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 4.5°/5.1° - 72.2%/69.7% - SAVED
Jan 31 23:02:11 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Jan 31 23:02:12 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-01-31T22:02:12.166Z",#012    "content": {#012      "temp": 4.5,#012      "hum": 72.2,#012      "batt": 100#012    },#012    "transaction": "735cc6e3-9583-429a-ba70-c86402742342"#012  }#012}'°
Jan 31 23:02:21 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jan 31 23:02:22 srv4hai fetchmail[1651]: 36923 messages (36921 seen) for tmiglinci at mail.akis.at (-1229134626 octets).
Jan 31 23:02:22 srv4hai postfix/smtpd[12799]: connect from localhost[127.0.0.1]
Jan 31 23:02:22 srv4hai postfix/smtpd[12799]: A278E6011E: client=localhost[127.0.0.1]
Jan 31 23:02:22 srv4hai postfix/cleanup[12802]: A278E6011E: message-id=<20240131220020.79C6960244@mail.viehai.at>
Jan 31 23:02:22 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:36922 of 36923 (10180 octets) not flushed
Jan 31 23:02:22 srv4hai postfix/qmgr[28610]: A278E6011E: from=, size=10476, nrcpt=1 (queue active)
Jan 31 23:02:22 srv4hai postfix/local[12803]: A278E6011E: to=, relay=local, delay=0.08, delays=0.05/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Jan 31 23:02:22 srv4hai postfix/qmgr[28610]: A278E6011E: removed
Jan 31 23:02:22 srv4hai postfix/smtpd[12799]: B71176011E: client=localhost[127.0.0.1]
Jan 31 23:02:22 srv4hai postfix/cleanup[12802]: B71176011E: message-id=
Jan 31 23:02:22 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:36923 of 36923 (89606 octets) not flushed
Jan 31 23:02:22 srv4hai postfix/qmgr[28610]: B71176011E: from=, size=89848, nrcpt=1 (queue active)
Jan 31 23:02:22 srv4hai postfix/smtpd[12799]: disconnect from localhost[127.0.0.1] ehlo=1 mail=2 rcpt=2 data=2 quit=1 commands=8
Jan 31 23:02:22 srv4hai postfix/local[12803]: B71176011E: to=, relay=local, delay=0.1, delays=0.09/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Jan 31 23:02:22 srv4hai postfix/qmgr[28610]: B71176011E: removed
Jan 31 23:02:23 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1706738543 - 'ping_SP_1'
Jan 31 23:02:23 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 31 23:02:23 srv4hai fetchmail[1651]: 9838 messages (9838 seen) for srozum at mail.akis.at (1188632446 octets).
Jan 31 23:02:23 srv4hai fetchmail[1651]: 21416 messages (21416 seen) for mrozum at mail.akis.at (-669007289 octets).
Jan 31 23:02:24 srv4hai fetchmail[1651]: 45 messages (45 seen) for admin@bastelstube.wien at pop3.world4you.com (12035480 octets).
Jan 31 23:02:28 srv4hai bt_scan[12826]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' found: 'No'
Jan 31 23:02:28 srv4hai bt_scan[12826]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Jan 31 23:02:28 srv4hai check_presence[12850]: SHELLY ()-(bt_scan) what: 'presence' - persPresent: '(__/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:02:28 srv4hai check_presence[12850]: SHELLY ()-(bt_scan)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:02:37 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738557 - 'ping_SP_0'
Jan 31 23:02:37 srv4hai check_presence[12876]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(__/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:02:37 srv4hai check_presence[12876]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:02:37 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:02:53 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1706738573 - 'ping_SP_1'
Jan 31 23:02:53 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 31 23:03:01 srv4hai CRON[12916]: (root) CMD (/etc/linetest/linetest.sh)
Jan 31 23:03:07 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738587 - 'ping_SP_0'
Jan 31 23:03:07 srv4hai check_presence[12932]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(__/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:03:07 srv4hai check_presence[12932]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:03:07 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:03:23 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1706738603 - 'ping_SP_1'
Jan 31 23:03:23 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 31 23:03:37 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738617 - 'ping_SP_0'
Jan 31 23:03:38 srv4hai check_presence[12988]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(__/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:03:38 srv4hai check_presence[12988]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:03:38 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:03:54 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1706738634 - 'ping_SP_1'
Jan 31 23:03:54 srv4hai ping_SP[15725]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 31 23:04:01 srv4hai CRON[13029]: (root) CMD (/etc/linetest/linetest.sh)
Jan 31 23:04:08 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1706738648 - 'ping_SP_0'
Jan 31 23:04:08 srv4hai check_presence[13047]: SHELLY (ping_SP__ping_OK)-(0) what: 'presence' - persPresent: '(__/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:04:08 srv4hai check_presence[13047]: SHELLY (ping_SP__ping_OK)-(0)-presence: NOT activate_scenario.shtml: offAll
Jan 31 23:04:08 srv4hai ping_SP[4113]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 31 23:04:18 srv4hai bt_scan[13073]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' found: 'Yes'
Jan 31 23:04:18 srv4hai bt_scan[13073]: SHELLY - ping_SP.sh started for BTmac: '0' - IPv4: '192.168.12.61'
Jan 31 23:04:18 srv4hai ping_SP[13106]: SHELLY ping_SP.sh started from bt_scan - trcF:'/srv/www/viehai/shelly/meter/trc_13106.txt'
Jan 31 23:04:18 srv4hai check_presence[13111]: SHELLY (ping_SP__bt_scan)-(0) what: 'coming' - persPresent: '(BT/IP) (BT/IP) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jan 31 23:04:18 srv4hai check_presence[13111]: SHELLY (ping_SP__bt_scan)-(0)-coming: activate_scenario.shtml: welcomeLight
Jan 31 23:04:18 srv4hai activate_scenario[13128]: SHELLY scenario: 'welcomeLight(welcomelight)' started
Jan 31 23:04:18 srv4hai activate_scenario[13128]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished