activate_scenario.sh
Wed Sep 25 23:03:48 CEST 2024
scenario: vorraumOn
phoneName: 1

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

scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/09/25/_0.log)

vorher: 23:03:48.596

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:03:48.708
Dauer: 112 msec phName: 'phoneName:'1''


scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

urls : 1
vorher : 23:03:48.566
nachher: 23:03:48.714
Dauer : 148 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/25//scene_vorraumOn_20240925_230348.txt'


syslog

Sep 25 23:00:01 srv4hai CRON[3381]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Sep 25 23:00:01 srv4hai CRON[3382]: (root) CMD (/etc/linetest/linetest.sh)
Sep 25 23:00:01 srv4hai common[3384]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Sep 25 23:00:01 srv4hai meter.sh: SHELLY meter.sh started
Sep 25 23:00:02 srv4hai meter.sh: SHELLY 'shelly-29/Schalter Herdzeile' - type: 'shelly-i3' ignoring
Sep 25 23:00:02 srv4hai meter.sh: SHELLY 'shelly-28/Schalter Nasszeile' - type: 'shelly-i3' ignoring
Sep 25 23:00:05 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Sep 25 23:00:05 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Sep 25 23:00:05 srv4hai meter.sh: SHELLY 'shelly-37/Klima Büro' - type: 'shelly-ht' ignoring
Sep 25 23:00:05 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Sep 25 23:00:06 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Sep 25 23:00:09 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test' - status: 'OOS' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Sep 25 23:00:11 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Sep 25 23:00:12 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Sep 25 23:00:12 srv4hai meter.sh: SHELLY 'shelly-43/43-TBD' - status: 'OOS' ignoring
Sep 25 23:00:12 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Sep 25 23:00:12 srv4hai meter.sh: SHELLY 'shelly-45/45-TBD' - status: 'OOS' ignoring
Sep 25 23:00:12 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Sep 25 23:00:17 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 25 23:00:17 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Sep 25 23:00:17 srv4hai common[4285]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_shelly.sh
Sep 25 23:00:17 srv4hai check_shelly.sh: SHELLY last scenery executed: 'vorraumOn'
Sep 25 23:00:17 srv4hai check_shelly.sh: SHELLY found '1' active shelly outputs
Sep 25 23:00:17 srv4hai meter.sh: SHELLY meter.sh ended
Sep 25 23:00:50 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep 25 23:00:50 srv4hai fetchmail[1651]: 53080 messages (53080 seen) for tmiglinci at mail.akis.at (66614987 octets).
Sep 25 23:00:51 srv4hai fetchmail[1651]: 10769 messages (10769 seen) for srozum at mail.akis.at (1305679665 octets).
Sep 25 23:00:51 srv4hai fetchmail[1651]: 26146 messages (26146 seen) for mrozum at mail.akis.at (246365342 octets).
Sep 25 23:00:52 srv4hai fetchmail[1651]: 1145 messages (1145 seen) for admin@bastelstube.wien at pop3.world4you.com (51919832 octets).
Sep 25 23:00:56 srv4hai ping_SP[24487]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1727298056 - 'ping_SP_0'
Sep 25 23:00:56 srv4hai ping_SP[24487]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 25 23:01:01 srv4hai CRON[4330]: (root) CMD (/etc/linetest/linetest.sh)
Sep 25 23:02:01 srv4hai CRON[4344]: (root) CMD (/etc/linetest/linetest.sh)
Sep 25 23:02:09 srv4hai ping_SP[24487]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1727298129 - 'ping_SP_0'
Sep 25 23:02:09 srv4hai ping_SP[24487]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 25 23:02:31 srv4hai postfix/smtpd[4365]: connect from unknown[94.141.120.113]
Sep 25 23:02:31 srv4hai postfix/smtpd[4365]: warning: unknown[94.141.120.113]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep 25 23:02:31 srv4hai postfix/smtpd[4365]: lost connection after AUTH from unknown[94.141.120.113]
Sep 25 23:02:31 srv4hai postfix/smtpd[4365]: disconnect from unknown[94.141.120.113] ehlo=1 auth=0/1 commands=1/2
Sep 25 23:02:39 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Sep 25 23:02:39 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep 25 23:02:39 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Sep 25 23:02:39 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Sep 25 23:02:39 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Sep 25 23:02:39 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Sep 25 23:02:39 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f934c09fdf0 192.168.12.252#53057/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f93506df2d0 192.168.12.252#39847/key rndc-key: signer "rndc-key" approved
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f93506df2d0 192.168.12.252#39847/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f93506df2d0 192.168.12.252#39847/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f93506df2d0 192.168.12.252#39847/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f93506df2d0 192.168.12.252#39847/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Sep 25 23:02:39 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f931c01da50 192.168.12.252#40441/key rndc-key: signer "rndc-key" approved
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f931c01da50 192.168.12.252#40441/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Sep 25 23:02:39 srv4hai named[30406]: client @0x7f931c01da50 192.168.12.252#40441/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.
Sep 25 23:02:39 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Sep 25 23:02:39 srv4hai common[4371]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Sep 25 23:02:39 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Sep 25 23:02:39 srv4hai common[4384]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Sep 25 23:02:39 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=18.900000&hum=66.100000&id=C049EF8AC9D8&batt=100&volt=6.210000
Sep 25 23:02:39 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep 25 23:02:39 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/09/shelly-39_20240925.csv'
Sep 25 23:02:39 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep 25 23:02:39 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep 25 23:02:39 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep 25 23:02:39 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}'
Sep 25 23:02:39 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}'
Sep 25 23:02:39 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 '.''
Sep 25 23:02:39 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 '.''
Sep 25 23:02:39 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep 25 23:02:39 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep 25 23:02:40 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep 25 23:02:40 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep 25 23:02:40 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 18.9° - 66.1%
Sep 25 23:02:40 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 18.9°/19.4° - 66.1%/63.7% - SAVED
Sep 25 23:02:40 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Sep 25 23:02:40 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-09-25T21:02:40.511Z",#012    "content": {#012      "temp": 18.9,#012      "hum": 66.1,#012      "batt": 100,#012      "csvF": "shelly-39_20240925.csv"#012    },#012    "transaction": "ccebc4b9-7833-4da3-bf71-565fdbb1cb0b"#012  }#012}'°
Sep 25 23:03:01 srv4hai CRON[4569]: (root) CMD (/etc/linetest/linetest.sh)
Sep 25 23:03:22 srv4hai ping_SP[24487]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1727298202 - 'ping_SP_0'
Sep 25 23:03:22 srv4hai ping_SP[24487]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Sep 25 23:03:37 srv4hai common[4596]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep 25 23:03:47 srv4hai bt_scan[4596]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'Yes'
Sep 25 23:03:47 srv4hai bt_scan[4596]: SHELLY - ping_SP.sh started for BTmac: '1' - IPv4: '192.168.12.62'
Sep 25 23:03:47 srv4hai common[4628]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep 25 23:03:47 srv4hai ping_SP[4628]: SHELLY ping_SP.sh started from bt_scan, user:'www-data'
Sep 25 23:03:47 srv4hai common[4650]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 25 23:03:48 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'3'=1727298228-1727298225
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.Yes
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY (ping_SP__bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Sep 25 23:03:48 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'3'=1727298228-1727298225
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.TRY} and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Sep 25 23:03:48 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'3'=1727298228-1727298225
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY (ping_SP__bt_scan)-(1) what: 'coming' - persPresent: '(BT/LIVE) (BT/__) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_vorraumOn) - sceneONsmall(vorraumOn)
Sep 25 23:03:48 srv4hai check_presence[4650]: SHELLY (ping_SP__bt_scan)-(1)-coming: activate_scenario.shtml: vorraumOn
Sep 25 23:03:48 srv4hai activate_scenario[4799]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep 25 23:03:48 srv4hai activate_scenario[4799]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - phoneName:'1'

finished