Re: [mh] Tasmota_HTTP_item.pm
H Plato <[email protected]> Mon, 18 Dec 2023 08:43:00 -0700
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
--===============7788763444534882203== Content-Type: multipart/alternative; boundary="Apple-Mail=_4356B914-BA8C-4B6D-A2B2-6B556C5006CE" --Apple-Mail=_4356B914-BA8C-4B6D-A2B2-6B556C5006CE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thank you Giles! I=E2=80=99ll see if I made any changes to my local one. I=E2=80=99ve = been using the power monitoring S31s with good success to trigger = notifications for appliances (text messages for dishwashers and = laundry). Since you have probably the largest install-base, some = runtime feedback from you would be great. > On Dec 18, 2023, at 4:08 AM, Giles Godart-Brown = <[email protected]> wrote: >=20 > All > I've been working on the async mode with Tasmota devices (I have over = 50 of them) and have made the following changes to=20 > Tasmota_HTTP_item.pm (attached - search for GGB to find changes) >=20 > 1) moved the output file for async calls to data/tasmota_http to stop = the data directory getting clogged in large installations > 2) changed many of the print_log statements to use the new format = print_log(message,severity,source) and added a few I needed=20 > to debug my additions > 3) added condition checks at start of set code to allow devices = detected elsewhere to be marked inactive or unplugged > unplugged is for devices temporarily unplugged e.g. Xmas tree = lights=20 > active is used for devices found not to be working but ought to be = OK > 4) bug fix to change $self->send_cmnd($cmd) to $self->send_cmd($cmd) > 5) added a "this_set_by" attribute so that the set_by attribute is = preserved in async calls and not=20 > always set to "process item" > 5) added a print log to the async process_check to print out the = status in the event of a failure >=20 > Before i do a pull request, does anyone have any other additions? >=20 > Happy Christmas/Holidays > Giles > = <Tasmota_HTTP_Item.pm>____________________________________________________= ____ > To unsubscribe from this list, go to: = https://lists.sourceforge.net/lists/listinfo/misterhouse-users >=20 --Apple-Mail=_4356B914-BA8C-4B6D-A2B2-6B556C5006CE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Thank= you Giles!<div class=3D""><br class=3D""></div><div class=3D""> = I=E2=80=99ll see if I made any changes to my local one. I=E2=80=99ve = been using the power monitoring S31s with good success to trigger = notifications for appliances (text messages for dishwashers and = laundry). Since you have probably the largest install-base, some = runtime feedback from you would be great.</div><div class=3D""><br = class=3D""></div><div class=3D""><div><br class=3D""><blockquote = type=3D"cite" class=3D""><div class=3D"">On Dec 18, 2023, at 4:08 AM, = Giles Godart-Brown <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""> =20 <meta http-equiv=3D"content-type" content=3D"text/html; = charset=3DUTF-8" class=3D""> =20 <div class=3D""> <font size=3D"4" face=3D"Calibri" class=3D"">All<br class=3D""> I've been working on the async mode with Tasmota devices (I have over 50 of them) and have made the following changes to <br = class=3D""> Tasmota_HTTP_item.pm (attached - search for GGB to find = changes)<br class=3D""> <br class=3D""> 1) moved the output file for async calls to data/tasmota_http to stop the data directory getting clogged in large installations<br = class=3D""> 2) changed many of the print_log statements to use the new format print_log(message,severity,source) and added a few I needed <br = class=3D""> to debug my additions<br class=3D""> 3) added condition checks at start of set code to allow devices detected elsewhere to be marked inactive or unplugged<br class=3D"">= unplugged is for devices temporarily unplugged e.g. = Xmas tree lights <br class=3D""> active is used for devices found not to be working = but ought to be OK<br class=3D""> 4) bug fix to change $self->send_cmnd($cmd) to $self->send_cmd($cmd)<br class=3D""> 5) added a "this_set_by" attribute so that the set_by attribute is preserved in async calls and not <br class=3D""> always set to "process item"<br class=3D""> 5) added a print log to the async process_check to print out the status in the event of a failure<br class=3D""> <br class=3D""> Before i do a pull request, does anyone have any other = additions?<br class=3D""> <br class=3D""> Happy Christmas/Holidays<br class=3D""> Giles<br class=3D""> </font> </div> <span = id=3D"cid:98A36494-D8E8-42A6-9AFB-EB152D86BF6A"><Tasmota_HTTP_Item.pm&g= t;</span>________________________________________________________<br = class=3D"">To unsubscribe from this list, go to: <a = href=3D"https://lists.sourceforge.net/lists/listinfo/misterhouse-users" = class=3D"">https://lists.sourceforge.net/lists/listinfo/misterhouse-users<= /a><br class=3D""><br class=3D""></div></blockquote></div><br = class=3D""></div></body></html>= --Apple-Mail=_4356B914-BA8C-4B6D-A2B2-6B556C5006CE-- --===============7788763444534882203== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7788763444534882203== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users --===============7788763444534882203==--