activate_scenario.sh
Fri Dec 20 10:49:21 CET 2024
scenario: buero_UM
source: 192.168.12.140

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

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

TB Regallicht (/srv/www/viehai/shelly/log_scenarios/2024/12/20/_0.log)

vorher: 10:49:21.179

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: 10:49:21.217
Dauer: 38 msec phName: 'shelly-40:'TB Licht''


TB Licht (/srv/www/viehai/shelly/log_scenarios/2024/12/20/_1.log)

vorher: 10:49:21.192

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: 10:49:21.228
Dauer: 37 msec phName: 'shelly-40:'TB Licht''


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

urls : 2
vorher : 10:49:21.160
nachher: 10:49:21.235
Dauer : 75 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/12/20//scene_buero_UM_20241220_104921.txt'


syslog

Dec 20 10:46:00 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Dec 20 10:46:01 srv4hai CRON[19741]: (root) CMD (/etc/linetest/linetest.sh)
Dec 20 10:46:01 srv4hai fetchmail[1651]: 59746 messages (59746 seen) for tmiglinci at mail.akis.at (617533588 octets).
Dec 20 10:46:02 srv4hai fetchmail[1651]: 11256 messages (11256 seen) for srozum at mail.akis.at (1348481434 octets).
Dec 20 10:46:02 srv4hai fetchmail[1651]: 27964 messages (27964 seen) for mrozum at mail.akis.at (514116433 octets).
Dec 20 10:46:03 srv4hai fetchmail[1651]: 1161 messages (1161 seen) for admin@bastelstube.wien at pop3.world4you.com (52202045 octets).
Dec 20 10:46:34 srv4hai mosquitto[29419]: New connection from 192.168.12.101 on port 1883.
Dec 20 10:46:34 srv4hai mosquitto[29419]: Socket error on client , disconnecting.
Dec 20 10:47:01 srv4hai ping_SP[31217]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1734688021 - 'ping_SP_0'
Dec 20 10:47:01 srv4hai ping_SP[31217]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Dec 20 10:47:01 srv4hai CRON[19774]: (root) CMD (/etc/linetest/linetest.sh)
Dec 20 10:47:32 srv4hai mosquitto[29419]: New connection from 192.168.12.101 on port 1883.
Dec 20 10:47:32 srv4hai mosquitto[29419]: Socket error on client , disconnecting.
Dec 20 10:47:39 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=19784, secured, session=
Dec 20 10:47:39 srv4hai dovecot: imap(miglincit)<19784>: Logged out in=292 out=1671 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Dec 20 10:47:42 srv4hai postfix/anvil[19477]: statistics: max connection rate 1/60s for (smtp:80.94.95.239) at Dec 20 10:44:18
Dec 20 10:47:42 srv4hai postfix/anvil[19477]: statistics: max connection count 1 for (smtp:80.94.95.239) at Dec 20 10:44:18
Dec 20 10:47:42 srv4hai postfix/anvil[19477]: statistics: max cache size 1 at Dec 20 10:44:18
Dec 20 10:47:57 srv4hai dhcpd[4995]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Dec 20 10:47:57 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Dec 20 10:47:57 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Dec 20 10:47:57 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.139
Dec 20 10:47:57 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-39
Dec 20 10:47:57 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Dec 20 10:47:57 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f9350166000 192.168.12.252#36281/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f932c0d0080 192.168.12.252#59795/key rndc-key: signer "rndc-key" approved
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f932c0d0080 192.168.12.252#59795/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f932c0d0080 192.168.12.252#59795/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f932c0d0080 192.168.12.252#59795/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f932c0d0080 192.168.12.252#59795/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Dec 20 10:47:57 srv4hai dhcpd[4995]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f933001df50 192.168.12.252#41851/key rndc-key: signer "rndc-key" approved
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f933001df50 192.168.12.252#41851/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Dec 20 10:47:57 srv4hai named[30406]: client @0x7f933001df50 192.168.12.252#41851/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.
Dec 20 10:47:57 srv4hai dhcpd[4995]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Dec 20 10:47:57 srv4hai common[19787]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Dec 20 10:47:57 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Dec 20 10:47:57 srv4hai common[19805]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Dec 20 10:47:57 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=7.100000&hum=65&id=C049EF8AC9D8&batt=98&volt=5.970000
Dec 20 10:47:57 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/12/shelly-39_20241220.csv'
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Dec 20 10:47:57 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}'
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Dec 20 10:47:57 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}'
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -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 '.''
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -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 '.''
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Dec 20 10:47:57 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Dec 20 10:47:57 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 7.1° - 65%
Dec 20 10:47:57 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 7.1°/6.6° - 65%/66.6% - SAVED
Dec 20 10:47:57 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='98'°
Dec 20 10:47:57 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-12-20T09:47:57.890Z",#012    "content": {#012      "temp": 7.1,#012      "hum": 65,#012      "batt": 98,#012      "csvF": "shelly-39_20241220.csv"#012    },#012    "transaction": "842cd195-59f4-44cc-87e6-c462439fed3b"#012  }#012}'°
Dec 20 10:48:01 srv4hai CRON[19945]: (root) CMD (/etc/linetest/linetest.sh)
Dec 20 10:48:11 srv4hai postfix/smtpd[19953]: connect from unknown[80.94.95.239]
Dec 20 10:48:13 srv4hai postfix/smtpd[19953]: warning: unknown[80.94.95.239]: SASL LOGIN authentication failed: Invalid authentication mechanism
Dec 20 10:48:14 srv4hai ping_SP[31217]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1734688094 - 'ping_SP_0'
Dec 20 10:48:14 srv4hai ping_SP[31217]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Dec 20 10:48:14 srv4hai postfix/smtpd[19953]: disconnect from unknown[80.94.95.239] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Dec 20 10:48:29 srv4hai mosquitto[29419]: New connection from 192.168.12.101 on port 1883.
Dec 20 10:48:29 srv4hai mosquitto[29419]: Socket error on client , disconnecting.
Dec 20 10:49:01 srv4hai CRON[19981]: (root) CMD (/etc/linetest/linetest.sh)
Dec 20 10:49:21 srv4hai activate_scenario[19994]: SHELLY scenario: 'buero_UM(buero_um)' started
Dec 20 10:49:21 srv4hai activate_scenario[19994]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'

finished