activate_scenario.sh
Thu Apr 18 22:08:47 CEST 2024
scenario: buero_UM
source: 192.168.12.140

'night' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'null'

scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

Thomas Büro Regallicht (/srv/www/viehai/shelly/log_scenarios/2024/04/18/_0.log)

vorher: 22:08:47.480

http://192.168.12.108/relay/0?turn=toggle
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 22:08:47.535
Dauer: 54 msec phName: 'shelly-40:'Thomas Büro Licht''


Thomas Büro Licht (/srv/www/viehai/shelly/log_scenarios/2024/04/18/_1.log)

vorher: 22:08:47.498

http://192.168.12.140/relay/0?turn=toggle
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 22:08:47.538
Dauer: 40 msec phName: 'shelly-40:'Thomas Büro Licht''


scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

urls : 2
vorher : 22:08:47.456
nachher: 22:08:47.545
Dauer : 89 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/04/18//scene_buero_UM_20240418_220847.txt'


syslog

Apr 18 22:05:00 srv4hai fetchmail[1651]: 46 messages (46 seen) for admin@bastelstube.wien at pop3.world4you.com (12059834 octets).
Apr 18 22:05:01 srv4hai CRON[21654]: (root) CMD (/etc/linetest/linetest.sh)
Apr 18 22:05:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21660, secured, session=
Apr 18 22:05:01 srv4hai dovecot: imap(rozumm)<21660>: Logged out in=93 out=1063 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 18 22:05:04 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1713470704 - 'ping_SP_0'
Apr 18 22:05:04 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 18 22:05:14 srv4hai ping_SP[6192]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1713470714 - 'ping_SP_1'
Apr 18 22:05:14 srv4hai ping_SP[6192]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 18 22:06:01 srv4hai CRON[21699]: (root) CMD (/etc/linetest/linetest.sh)
Apr 18 22:06:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21704, secured, session=
Apr 18 22:06:01 srv4hai dovecot: imap(rozumm)<21704>: Logged out in=93 out=1063 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 18 22:06:17 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1713470777 - 'ping_SP_0'
Apr 18 22:06:17 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 18 22:06:27 srv4hai ping_SP[6192]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1713470787 - 'ping_SP_1'
Apr 18 22:06:27 srv4hai ping_SP[6192]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 18 22:06:37 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21749, secured, session=
Apr 18 22:06:38 srv4hai dovecot: imap(miglincit)<21749>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 18 22:07:01 srv4hai CRON[21752]: (root) CMD (/etc/linetest/linetest.sh)
Apr 18 22:07:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21757, secured, session=
Apr 18 22:07:01 srv4hai dovecot: imap(rozumm)<21757>: Logged out in=93 out=1063 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 18 22:07:21 srv4hai postfix/anvil[21333]: statistics: max connection rate 1/60s for (smtp:81.19.141.225) at Apr 18 22:01:30
Apr 18 22:07:21 srv4hai postfix/anvil[21333]: statistics: max connection count 1 for (smtp:81.19.141.225) at Apr 18 22:01:30
Apr 18 22:07:21 srv4hai postfix/anvil[21333]: statistics: max cache size 1 at Apr 18 22:01:30
Apr 18 22:07:22 srv4hai dhcpd[28085]: execute_statement argv[0] = /srv/www/viehai/shelly/dhcpcommit.sh
Apr 18 22:07:22 srv4hai dhcpd[28085]: execute_statement argv[1] = 192.168.12.28
Apr 18 22:07:22 srv4hai dhcpd[28085]: execute_statement argv[2] = harmonyhub
Apr 18 22:07:22 srv4hai dhcpd[28085]: DHCPREQUEST for 192.168.12.28 from c8:db:26:0c:f3:8e via enp2s0
Apr 18 22:07:22 srv4hai dhcpd[28085]: DHCPACK on 192.168.12.28 to c8:db:26:0c:f3:8e via enp2s0
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f9310041d20 192.168.12.252#40905/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: harmonyhub.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f930c0d2a30 192.168.12.252#38761/key rndc-key: signer "rndc-key" approved
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f930c0d2a30 192.168.12.252#38761/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'harmonyhub.viehai.at' TXT
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f930c0d2a30 192.168.12.252#38761/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'harmonyhub.viehai.at' TXT "3122b5a8b4281156e6f217b32b7e260713"
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f930c0d2a30 192.168.12.252#38761/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'harmonyhub.viehai.at' A
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f930c0d2a30 192.168.12.252#38761/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'harmonyhub.viehai.at' A 192.168.12.28
Apr 18 22:07:22 srv4hai dhcpcommit.sh: SHELLY ip:'192.168.12.28'(28) device 'harmonyhub'
Apr 18 22:07:22 srv4hai dhcpd[28085]: Added new forward map from harmonyhub.viehai.at to 192.168.12.28
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f93180107e0 192.168.12.252#49991/key rndc-key: signer "rndc-key" approved
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f93180107e0 192.168.12.252#49991/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '28.12.168.192.in-addr.arpa' PTR
Apr 18 22:07:22 srv4hai named[15509]: client @0x7f93180107e0 192.168.12.252#49991/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '28.12.168.192.in-addr.arpa' PTR harmonyhub.viehai.at.
Apr 18 22:07:22 srv4hai dhcpd[28085]: Added reverse map from 28.12.168.192.in-addr.arpa. to harmonyhub.viehai.at
Apr 18 22:07:22 srv4hai dhcpcommit.sh: SHELLY device 'harmonyhub' known and accepted
Apr 18 22:07:30 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1713470850 - 'ping_SP_0'
Apr 18 22:07:30 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 18 22:07:40 srv4hai ping_SP[6192]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1713470860 - 'ping_SP_1'
Apr 18 22:07:40 srv4hai ping_SP[6192]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 18 22:08:01 srv4hai CRON[21810]: (root) CMD (/etc/linetest/linetest.sh)
Apr 18 22:08:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21816, secured, session=
Apr 18 22:08:01 srv4hai dovecot: imap(rozumm)<21816>: Logged out in=93 out=1063 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 18 22:08:11 srv4hai activate_scenario[21819]: SHELLY scenario: 'buero_UM(buero_um)' started
Apr 18 22:08:11 srv4hai activate_scenario[21819]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'
Apr 18 22:08:11 srv4hai activate_scenario[21819]: SHELLY scenario: 'buero_UM(buero_um)' TO BE EXECUTED, shelly-40:'Thomas Büro Licht'
Apr 18 22:08:11 srv4hai postfix/pickup[8302]: 5D7046022F: uid=33 from=
Apr 18 22:08:11 srv4hai postfix/cleanup[21872]: 5D7046022F: message-id=<20240418200811.5D7046022F@mail.viehai.at>
Apr 18 22:08:11 srv4hai postfix/qmgr[15291]: 5D7046022F: from=, size=7240, nrcpt=1 (queue active)
Apr 18 22:08:11 srv4hai activate_scenario[21819]: SHELLY: scenario: 'buero_UM(buero_um)'-'shelly-08'-'Thomas Büro Regallicht' --> '0?turn=toggle'
Apr 18 22:08:11 srv4hai proc_url[21890]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/04/18/_0.log' - shellyUsage:'Thomas Büro Regallicht' - scUrl:'http://192.168.12.108/relay/0?turn=toggle' - phName:'shelly-40:'Thomas Büro Licht''
Apr 18 22:08:11 srv4hai postfix/local[21885]: 5D7046022F: to=, orig_to=, relay=local, delay=0.04, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "null")
Apr 18 22:08:11 srv4hai postfix/cleanup[21872]: 6524960230: message-id=<20240418200811.6524960230@mail.viehai.at>
Apr 18 22:08:11 srv4hai activate_scenario[21819]: SHELLY: scenario: 'buero_UM(buero_um)'-'shelly-40'-'Thomas Büro Licht' --> '0?turn=toggle'
Apr 18 22:08:11 srv4hai proc_url[21901]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/04/18/_1.log' - shellyUsage:'Thomas Büro Licht' - scUrl:'http://192.168.12.140/relay/0?turn=toggle' - phName:'shelly-40:'Thomas Büro Licht''
Apr 18 22:08:11 srv4hai postfix/bounce[21889]: 5D7046022F: sender non-delivery notification: 6524960230
Apr 18 22:08:11 srv4hai postfix/qmgr[15291]: 6524960230: from=<>, size=9162, nrcpt=1 (queue active)
Apr 18 22:08:11 srv4hai postfix/qmgr[15291]: 5D7046022F: removed
Apr 18 22:08:11 srv4hai postfix/local[21885]: 6524960230: to=, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Apr 18 22:08:11 srv4hai postfix/qmgr[15291]: 6524960230: removed
Apr 18 22:08:11 srv4hai activate_scenario[21819]: SHELLY scenario: 'buero_UM(buero_um)' took 293 msec, shelly-40:'Thomas Büro Licht'
Apr 18 22:08:15 srv4hai dhcpd[28085]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Apr 18 22:08:15 srv4hai dhcpd[28085]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Apr 18 22:08:15 srv4hai dhcpd[28085]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Apr 18 22:08:15 srv4hai dhcpd[28085]: execute_statement argv[1] = 192.168.12.139
Apr 18 22:08:15 srv4hai dhcpd[28085]: execute_statement argv[2] = shelly-39
Apr 18 22:08:15 srv4hai dhcpd[28085]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Apr 18 22:08:15 srv4hai dhcpd[28085]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f931008c780 192.168.12.252#51003/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f92fc030df0 192.168.12.252#41257/key rndc-key: signer "rndc-key" approved
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f92fc030df0 192.168.12.252#41257/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f92fc030df0 192.168.12.252#41257/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f92fc030df0 192.168.12.252#41257/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f92fc030df0 192.168.12.252#41257/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Apr 18 22:08:15 srv4hai dhcpd[28085]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f9318034020 192.168.12.252#38735/key rndc-key: signer "rndc-key" approved
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f9318034020 192.168.12.252#38735/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Apr 18 22:08:15 srv4hai named[15509]: client @0x7f9318034020 192.168.12.252#38735/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.
Apr 18 22:08:15 srv4hai dhcpd[28085]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Apr 18 22:08:15 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Apr 18 22:08:16 srv4hai common[21950]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Apr 18 22:08:16 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=8.300000&hum=63.500000&id=C049EF8AC9D8&batt=100&volt=6.630000
Apr 18 22:08:16 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/04/shelly-39_20240418.csv'
Apr 18 22:08:16 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Apr 18 22:08:16 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Apr 18 22:08:16 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}'
Apr 18 22:08:17 srv4hai grab_shelly.sh: SHELLY 'shelly-39':  OFFLINE, resp. not answering within connect-timeout 1.500000s
Apr 18 22:08:20 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 '.''
Apr 18 22:08:20 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Apr 18 22:08:20 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Apr 18 22:08:20 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 8.3° - 63.5%
Apr 18 22:08:20 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 8.3°/8.8° - 63.5%/60.8% - SAVED
Apr 18 22:08:20 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Apr 18 22:08:20 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-04-18T20:08:20.785Z",#012    "content": {#012      "temp": 8.3,#012      "hum": 63.5,#012      "batt": 100,#012      "csvF": "shelly-39_20240418.csv"#012    },#012    "transaction": "0bd02a56-07e0-49a3-92e9-39f25edbe644"#012  }#012}'°
Apr 18 22:08:43 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1713470923 - 'ping_SP_0'
Apr 18 22:08:43 srv4hai ping_SP[14320]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 18 22:08:47 srv4hai activate_scenario[22077]: SHELLY scenario: 'buero_UM(buero_um)' started
Apr 18 22:08:47 srv4hai activate_scenario[22077]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished