activate_scenario.sh
Sat Jul 6 12:36:50 CEST 2024
scenario: pcOFF
source: 192.168.12.10

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

scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

Thomas Schreibtischlampe (/srv/www/viehai/shelly/log_scenarios/2024/07/06/_0.log)

vorher: 12:36:50.283

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

nachher: 12:36:50.307
Dauer: 25 msec phName: 'shelly-0:'''


scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

urls : 1
vorher : 12:36:50.263
nachher: 12:36:50.314
Dauer : 50 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/06//scene_pcOFF_20240706_123650.txt'


syslog

Jul  6 12:33:01 srv4hai CRON[8071]: (root) CMD (/etc/linetest/linetest.sh)
Jul  6 12:33:07 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1720261987 - 'ping_SP_1'
Jul  6 12:33:07 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  6 12:33:21 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=8108, secured, session=<+lyJtZEc1r0AAAAAAAAAAAAAAAAAAAAB>
Jul  6 12:33:21 srv4hai dovecot: imap(miglincit)<8108><+lyJtZEc1r0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=318 out=1730 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  6 12:33:29 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Jul  6 12:33:29 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jul  6 12:33:29 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jul  6 12:33:29 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Jul  6 12:33:29 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Jul  6 12:33:29 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Jul  6 12:33:29 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#58287/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f93480cbdb0 192.168.12.252#44139/key rndc-key: signer "rndc-key" approved
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f93480cbdb0 192.168.12.252#44139/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f93480cbdb0 192.168.12.252#44139/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f93480cbdb0 192.168.12.252#44139/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f93480cbdb0 192.168.12.252#44139/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Jul  6 12:33:29 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f932c088690 192.168.12.252#60331/key rndc-key: signer "rndc-key" approved
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f932c088690 192.168.12.252#60331/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Jul  6 12:33:29 srv4hai named[30406]: client @0x7f932c088690 192.168.12.252#60331/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  6 12:33:29 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Jul  6 12:33:29 srv4hai common[8114]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jul  6 12:33:29 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Jul  6 12:33:29 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Jul  6 12:33:29 srv4hai common[8133]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Jul  6 12:33:29 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=29.500000&hum=38.300000&id=C049EF8AC9D8&batt=100&volt=6.760000
Jul  6 12:33:29 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/07/shelly-39_20240706.csv'
Jul  6 12:33:29 srv4hai ht_shelly.sh: SHELLY - 'shelly-39_20240706.csv' modifed 489s ago - EXIT
Jul  6 12:33:29 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Jul  6 12:33:29 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  6 12:33:29 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  6 12:33:29 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Jul  6 12:33:29 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Jul  6 12:33:58 srv4hai systemd[1]: Started Run anacron jobs.
Jul  6 12:33:58 srv4hai anacron[8225]: Anacron 2.3 started on 2024-07-06
Jul  6 12:33:58 srv4hai anacron[8225]: Normal exit (0 jobs run)
Jul  6 12:33:58 srv4hai systemd[1]: anacron.service: Succeeded.
Jul  6 12:34:01 srv4hai CRON[8231]: (root) CMD (/etc/linetest/linetest.sh)
Jul  6 12:34:10 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1720262050 - 'ping_SP_1'
Jul  6 12:34:10 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  6 12:34:46 srv4hai postfix/smtpd[8280]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jul  6 12:34:46 srv4hai postfix/smtpd[8280]: connect from unknown[178.215.236.221]
Jul  6 12:34:46 srv4hai postfix/smtpd[8280]: warning: unknown[178.215.236.221]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jul  6 12:34:46 srv4hai postfix/smtpd[8280]: disconnect from unknown[178.215.236.221] ehlo=1 auth=0/1 quit=1 commands=2/3
Jul  6 12:35:01 srv4hai CRON[8295]: (root) CMD (/etc/linetest/linetest.sh)
Jul  6 12:35:08 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=8306, secured, session=<1ujiu5Ec7r0AAAAAAAAAAAAAAAAAAAAB>
Jul  6 12:35:08 srv4hai dovecot: imap(miglincit)<8306><1ujiu5Ec7r0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=649 out=5108 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  6 12:35:13 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1720262113 - 'ping_SP_1'
Jul  6 12:35:13 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  6 12:35:49 srv4hai dhcpd[30731]: uid lease 192.168.12.40 for client ec:da:3b:c6:1d:3c is duplicate on 192.168.12.0/24
Jul  6 12:35:49 srv4hai dhcpd[30731]: DHCPDISCOVER from ec:da:3b:c6:1d:3c via enp2s0
Jul  6 12:35:49 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.150 to ec:da:3b:c6:1d:3c via enp2s0
Jul  6 12:35:49 srv4hai dhcpd[30731]: uid lease 192.168.12.40 for client ec:da:3b:c6:1d:3c is duplicate on 192.168.12.0/24
Jul  6 12:35:49 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jul  6 12:35:49 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.150
Jul  6 12:35:49 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-50
Jul  6 12:35:49 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.150 (192.168.12.252) from ec:da:3b:c6:1d:3c via enp2s0
Jul  6 12:35:49 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.150 to ec:da:3b:c6:1d:3c via enp2s0
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f93300fcc20 192.168.12.252#40781/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-50.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f9330095370 192.168.12.252#56207/key rndc-key: signer "rndc-key" approved
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f9330095370 192.168.12.252#56207/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-50.viehai.at' TXT
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f9330095370 192.168.12.252#56207/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-50.viehai.at' TXT "31ddfcf6e79cbbdf4e55e03247020075f9"
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f9330095370 192.168.12.252#56207/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-50.viehai.at' A
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f9330095370 192.168.12.252#56207/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-50.viehai.at' A 192.168.12.150
Jul  6 12:35:49 srv4hai dhcpd[30731]: Added new forward map from shelly-50.viehai.at to 192.168.12.150
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f931c02c6e0 192.168.12.252#58661/key rndc-key: signer "rndc-key" approved
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f931c02c6e0 192.168.12.252#58661/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '150.12.168.192.in-addr.arpa' PTR
Jul  6 12:35:49 srv4hai named[30406]: client @0x7f931c02c6e0 192.168.12.252#58661/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '150.12.168.192.in-addr.arpa' PTR shelly-50.viehai.at.
Jul  6 12:35:49 srv4hai dhcpd[30731]: Added reverse map from 150.12.168.192.in-addr.arpa. to shelly-50.viehai.at
Jul  6 12:35:49 srv4hai common[8350]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jul  6 12:35:49 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-50' - shIP/2:'' perform:'conf'
Jul  6 12:35:49 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-50' - shIP/2:'192.168.12.150'
Jul  6 12:35:49 srv4hai mosquitto[18551]: New connection from 192.168.12.150 on port 1883.
Jul  6 12:35:49 srv4hai mosquitto[18551]: Client shellypmminig3-ecda3bc61d3c already connected, closing old connection.
Jul  6 12:35:49 srv4hai mosquitto[18551]: Socket error on client shellypmminig3-ecda3bc61d3c, disconnecting.
Jul  6 12:35:49 srv4hai mosquitto[18551]: New client connected from 192.168.12.150 as shellypmminig3-ecda3bc61d3c (c1, k60, u'shmqtt').
Jul  6 12:35:49 srv4hai conf_shelly.sh: SHELLY: usage/name '50-TBD' already set for '192.168.12.150'
Jul  6 12:35:49 srv4hai conf_shelly.sh: SHELLY:'shelly-50' no WebHook
Jul  6 12:36:01 srv4hai CRON[8406]: (root) CMD (/etc/linetest/linetest.sh)
Jul  6 12:36:17 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1720262177 - 'ping_SP_1'
Jul  6 12:36:17 srv4hai ping_SP[32220]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  6 12:36:21 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=8448, secured, session=
Jul  6 12:36:21 srv4hai dovecot: imap(miglincit)<8448>: Logged out in=318 out=1730 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  6 12:36:48 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jul  6 12:36:49 srv4hai fetchmail[1651]: 48118 messages (48118 seen) for tmiglinci at mail.akis.at (-320952367 octets).
Jul  6 12:36:49 srv4hai fetchmail[1651]: 10416 messages (10416 seen) for srozum at mail.akis.at (1250737631 octets).
Jul  6 12:36:50 srv4hai fetchmail[1651]: 24584 messages (24584 seen) for mrozum at mail.akis.at (12607911 octets).
Jul  6 12:36:50 srv4hai activate_scenario[8463]: SHELLY scenario: 'pcOFF(pcoff)' started
Jul  6 12:36:50 srv4hai activate_scenario[8463]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-0:''

finished