activate_scenario.sh
Thu Sep 26 11:23:10 CEST 2024
scenario: vorraumOn
phoneName: 0

'day' <--> 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/26/_0.log)

vorher: 11:23:10.535

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: 11:23:10.584
Dauer: 48 msec phName: 'phoneName:'0''


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

urls : 1
vorher : 11:23:10.515
nachher: 11:23:10.590
Dauer : 75 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/26//scene_vorraumOn_20240926_112310.txt'


syslog

Sep 26 11:20:01 srv4hai CRON[18583]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Sep 26 11:20:01 srv4hai CRON[18584]: (root) CMD (/etc/linetest/linetest.sh)
Sep 26 11:20:01 srv4hai common[18585]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Sep 26 11:20:01 srv4hai meter.sh: SHELLY meter.sh started
Sep 26 11:20:01 srv4hai meter.sh: SHELLY 'shelly-29/Schalter Herdzeile' - type: 'shelly-i3' ignoring
Sep 26 11:20:01 srv4hai meter.sh: SHELLY 'shelly-28/Schalter Nasszeile' - type: 'shelly-i3' ignoring
Sep 26 11:20:04 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Sep 26 11:20:04 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Sep 26 11:20:04 srv4hai meter.sh: SHELLY 'shelly-37/Klima Büro' - type: 'shelly-ht' ignoring
Sep 26 11:20:04 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Sep 26 11:20:04 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Sep 26 11:20:07 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-47/47-plus1-Test' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-43/43-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-45/45-TBD' - status: 'OOS' ignoring
Sep 26 11:20:10 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Sep 26 11:20:13 srv4hai meter.sh: SHELLY 'shelly-58/Werkstatt Licht':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Sep 26 11:20:13 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Sep 26 11:20:13 srv4hai common[19479]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_shelly.sh
Sep 26 11:20:13 srv4hai check_shelly.sh: SHELLY last scenery executed: 'offAll'
Sep 26 11:20:13 srv4hai check_shelly.sh: SHELLY found '0' active shelly outputs
Sep 26 11:20:13 srv4hai meter.sh: SHELLY meter.sh ended
Sep 26 11:21:01 srv4hai CRON[19529]: (root) CMD (/etc/linetest/linetest.sh)
Sep 26 11:21:32 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Sep 26 11:21:32 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep 26 11:21:32 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Sep 26 11:21:32 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Sep 26 11:21:32 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Sep 26 11:21:32 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Sep 26 11:21:32 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f93380d2cb0 192.168.12.252#43025/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#58349/key rndc-key: signer "rndc-key" approved
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#58349/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#58349/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#58349/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#58349/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Sep 26 11:21:32 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f931c02c6e0 192.168.12.252#48271/key rndc-key: signer "rndc-key" approved
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f931c02c6e0 192.168.12.252#48271/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Sep 26 11:21:32 srv4hai named[30406]: client @0x7f931c02c6e0 192.168.12.252#48271/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 26 11:21:32 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Sep 26 11:21:32 srv4hai common[19548]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Sep 26 11:21:32 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Sep 26 11:21:32 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep 26 11:21:32 srv4hai common[19566]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Sep 26 11:21:32 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=19&hum=67&id=C049EF8AC9D8&batt=100&volt=6.190000
Sep 26 11:21:32 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/09/shelly-39_20240926.csv'
Sep 26 11:21:32 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep 26 11:21:32 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep 26 11:21:32 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep 26 11:21:32 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 26 11:21:32 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 26 11:21:32 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 26 11:21:32 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep 26 11:21:32 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 26 11:21:32 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep 26 11:21:32 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep 26 11:21:32 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep 26 11:21:32 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 19° - 67%
Sep 26 11:21:32 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 19°/18.5° - 67%/68.9% - SAVED
Sep 26 11:21:32 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Sep 26 11:21:32 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-26T09:21:32.913Z",#012    "content": {#012      "temp": 19,#012      "hum": 67,#012      "batt": 100,#012      "csvF": "shelly-39_20240926.csv"#012    },#012    "transaction": "ed138a7e-9abe-43d3-ba4f-8909edfddc44"#012  }#012}'°
Sep 26 11:22:01 srv4hai CRON[19719]: (root) CMD (/etc/linetest/linetest.sh)
Sep 26 11:22:27 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=19730, secured, session=<5bTsRgIj/tMAAAAAAAAAAAAAAAAAAAAB>
Sep 26 11:22:27 srv4hai dovecot: imap(miglincit)<19730><5bTsRgIj/tMAAAAAAAAAAAAAAAAAAAAB>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep 26 11:22:36 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep 26 11:22:37 srv4hai fetchmail[1651]: 53119 messages (53119 seen) for tmiglinci at mail.akis.at (68438071 octets).
Sep 26 11:22:37 srv4hai fetchmail[1651]: 10770 messages (10770 seen) for srozum at mail.akis.at (1305736644 octets).
Sep 26 11:22:38 srv4hai fetchmail[1651]: 26153 messages (26153 seen) for mrozum at mail.akis.at (246985034 octets).
Sep 26 11:22:38 srv4hai fetchmail[1651]: 1145 messages (1145 seen) for admin@bastelstube.wien at pop3.world4you.com (51919832 octets).
Sep 26 11:22:59 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Sep 26 11:22:59 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 26 11:22:59 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep 26 11:22:59 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep 26 11:22:59 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep 26 11:22:59 srv4hai common[19733]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep 26 11:22:59 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Sep 26 11:22:59 srv4hai common[19747]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep 26 11:22:59 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Sep 26 11:22:59 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#48261/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#36187/key rndc-key: signer "rndc-key" approved
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#36187/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#36187/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#36187/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931006ae50 192.168.12.252#36187/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Sep 26 11:22:59 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931005c050 192.168.12.252#39615/key rndc-key: signer "rndc-key" approved
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931005c050 192.168.12.252#39615/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Sep 26 11:22:59 srv4hai named[30406]: client @0x7f931005c050 192.168.12.252#39615/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '61.12.168.192.in-addr.arpa' PTR fpThomas.viehai.at.
Sep 26 11:22:59 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Sep 26 11:22:59 srv4hai ping_SP[19747]: SHELLY ping_SP.sh started from smartphone, user:'root'
Sep 26 11:23:00 srv4hai common[19769]: SHELLY common.sh inkludiert von ./bt_scan.sh
Sep 26 11:23:01 srv4hai CRON[19783]: (root) CMD (/etc/linetest/linetest.sh)
Sep 26 11:23:09 srv4hai common[19797]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep 26 11:23:10 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'3'=1727342590-1727342587
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Sep 26 11:23:10 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'3'=1727342590-1727342587
Sep 26 11:23:10 srv4hai bt_scan[19769]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Sep 26 11:23:10 srv4hai bt_scan[19769]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Sep 26 11:23:10 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'3'=1727342590-1727342587
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(BT/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Sep 26 11:23:10 srv4hai check_presence[19797]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Sep 26 11:23:10 srv4hai activate_scenario[19966]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep 26 11:23:10 srv4hai activate_scenario[19966]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished