activate_scenario.sh
Mon Jul 29 07:04:07 CEST 2024
scenario: homeOffice
source: 192.168.12.140
vorher: 07:04:07.945
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: 07:04:07.999
Dauer: 53 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:07.960
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: 07:04:07.989
Dauer: 28 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:07.972
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: 07:04:08.002
Dauer: 30 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:07.985
http://192.168.12.105/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "http" |
nachher: 07:04:08.018
Dauer: 33 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:07.998
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: 07:04:08.026
Dauer: 29 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.012
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: 07:04:08.131
Dauer: 119 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.024
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: 07:04:08.141
Dauer: 117 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.040
http://192.168.12.109/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 07:04:08.069
Dauer: 29 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.052
http://192.168.12.110/relay/0?turn=off |
---|
"ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 07:04:08.078
Dauer: 26 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.067
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: 07:04:08.105
Dauer: 37 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.081
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: 07:04:08.146
Dauer: 65 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.095
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: 07:04:08.120
Dauer: 24 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.108
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: 07:04:08.158
Dauer: 49 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.122
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: 07:04:08.157
Dauer: 34 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.136
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: 07:04:08.188
Dauer: 51 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.150
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: 07:04:08.183
Dauer: 33 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.169
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: 07:04:08.288
Dauer: 118 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.182
http://192.168.12.124/relay/0?turn=on |
---|
"ison": true, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "input" |
nachher: 07:04:08.221
Dauer: 39 msec
phName: 'shelly-40:'Thomas Büro Licht''
vorher: 07:04:08.195
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: 07:04:08.297
Dauer: 101 msec
phName: 'shelly-40:'Thomas Büro Licht''
urls : 19
vorher : 07:04:07.926
nachher: 07:04:08.305
Dauer : 379 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/29//scene_homeOffice_20240729_070407.txt'
Jul 29 07:01:01 srv4hai CRON[28317]: (root) CMD (/etc/linetest/linetest.sh) Jul 29 07:01:22 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0 Jul 29 07:01:22 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0 Jul 29 07:01:22 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh Jul 29 07:01:22 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139 Jul 29 07:01:22 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39 Jul 29 07:01:22 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0 Jul 29 07:01:22 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0 Jul 29 07:01:22 srv4hai named[30406]: client @0x7f932c06a420 192.168.12.252#44637/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN) Jul 29 07:01:22 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#41753/key rndc-key: signer "rndc-key" approved Jul 29 07:01:22 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#41753/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT Jul 29 07:01:22 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#41753/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7" Jul 29 07:01:22 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#41753/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A Jul 29 07:01:22 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#41753/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139 Jul 29 07:01:22 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139 Jul 29 07:01:22 srv4hai named[30406]: client @0x7f933010ba20 192.168.12.252#37917/key rndc-key: signer "rndc-key" approved Jul 29 07:01:22 srv4hai named[30406]: client @0x7f933010ba20 192.168.12.252#37917/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR Jul 29 07:01:22 srv4hai named[30406]: client @0x7f933010ba20 192.168.12.252#37917/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 29 07:01:22 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at Jul 29 07:01:22 srv4hai common[28324]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh Jul 29 07:01:22 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf' Jul 29 07:01:22 srv4hai conf_shelly.sh: SHELLY: PARAMS shName/1:'shelly-39' - shIP/2:'192.168.12.139' Jul 29 07:01:22 srv4hai common[28341]: SHELLY common.sh inkludiert von ./ht_shelly.sh Jul 29 07:01:22 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=22.900000&hum=49.200000&id=C049EF8AC9D8&batt=100&volt=6.740000 Jul 29 07:01:22 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/07/shelly-39_20240729.csv' Jul 29 07:01:22 srv4hai conf_shelly.sh: SHELLY: PARAMS shName/1:'shelly-39' - shIP/2:'192.168.12.139' Jul 29 07:01:22 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139' Jul 29 07:01:22 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 29 07:01:22 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139' Jul 29 07:01:22 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 29 07:01:22 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 29 07:01:22 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: '' Jul 29 07:01:22 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 29 07:01:22 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: '' Jul 29 07:01:22 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook Jul 29 07:01:22 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook Jul 29 07:01:22 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 22.9° - 49.2% Jul 29 07:01:22 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 22.9°/23.4° - 49.2%/44.8% - SAVED Jul 29 07:01:22 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'° Jul 29 07:01:23 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-29T05:01:23.271Z",#012 "content": {#012 "temp": 22.9,#012 "hum": 49.2,#012 "batt": 100,#012 "csvF": "shelly-39_20240729.csv"#012 },#012 "transaction": "f760fc9a-317e-4ab3-98a9-706a029acf74"#012 }#012}'° Jul 29 07:01:29 srv4hai postfix/smtpd[28510]: warning: database /etc/aliases.db is older than source file /etc/aliases Jul 29 07:01:29 srv4hai postfix/smtpd[28510]: connect from unknown[unknown] Jul 29 07:01:29 srv4hai postfix/smtpd[28510]: lost connection after CONNECT from unknown[unknown] Jul 29 07:01:29 srv4hai postfix/smtpd[28510]: disconnect from unknown[unknown] commands=0/0 Jul 29 07:01:29 srv4hai common[28513]: SHELLY common.sh inkludiert von ./bt_scan.sh Jul 29 07:01:39 srv4hai bt_scan[28513]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No' Jul 29 07:01:39 srv4hai bt_scan[28513]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence Jul 29 07:01:39 srv4hai common[28546]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh Jul 29 07:01:40 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1722229300-1722229289 Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence' Jul 29 07:01:40 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'11'=1722229300-1722229289 Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No Jul 29 07:01:40 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1722229300-1722229289 Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false' Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_offAll) - sceneOFF(offAll) Jul 29 07:01:40 srv4hai check_presence[28546]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll Jul 29 07:01:46 srv4hai common[28694]: SHELLY common.sh inkludiert von ./bt_scan.sh Jul 29 07:01:56 srv4hai bt_scan[28694]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes' Jul 29 07:01:56 srv4hai bt_scan[28694]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61' Jul 29 07:02:01 srv4hai CRON[28733]: (root) CMD (/etc/linetest/linetest.sh) Jul 29 07:02:11 srv4hai ping_SP[29545]: SHELLY (0) - ping 192.168.12.61 1 sucessfully @~1722229331 - 'ping_SP_0' Jul 29 07:02:11 srv4hai ping_SP[29545]: SHELLY (0) - ping 192.168.12.61 pCnt:'1' Jul 29 07:03:01 srv4hai CRON[28760]: (root) CMD (/etc/linetest/linetest.sh) Jul 29 07:03:15 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=28774, secured, session= Jul 29 07:03:15 srv4hai dovecot: imap(miglincit)<28774> : Logged out in=198 out=1286 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Jul 29 07:03:25 srv4hai ping_SP[29545]: SHELLY (0) - ping 192.168.12.61 1 sucessfully @~1722229405 - 'ping_SP_0' Jul 29 07:03:25 srv4hai ping_SP[29545]: SHELLY (0) - ping 192.168.12.61 pCnt:'1' Jul 29 07:03:56 srv4hai common[28796]: SHELLY common.sh inkludiert von ./bt_scan.sh Jul 29 07:04:01 srv4hai CRON[28810]: (root) CMD (/etc/linetest/linetest.sh) Jul 29 07:04:06 srv4hai bt_scan[28796]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No' Jul 29 07:04:06 srv4hai bt_scan[28796]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence Jul 29 07:04:06 srv4hai common[28834]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh Jul 29 07:04:07 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1722229447-1722229436 Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence' Jul 29 07:04:07 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'11'=1722229447-1722229436 Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No Jul 29 07:04:07 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1722229447-1722229436 Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false' Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_offAll) - sceneOFF(offAll) Jul 29 07:04:07 srv4hai check_presence[28834]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll Jul 29 07:04:07 srv4hai activate_scenario[28982]: SHELLY scenario: 'homeOffice(homeoffice)' started Jul 29 07:04:07 srv4hai activate_scenario[28982]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'
finished