8000 Two Tasmota_HTTP_Item.pm async mode issues · Issue #866 · hollie/misterhouse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Two Tasmota_HTTP_Item.pm async mode issues #866
Open
@ggodart

Description

@ggodart
  1. There is a small typo on line 203 of Tasmota_HTTP_Item.pm which throws an error if using async mode, it should read
    $self->send_cmd($cmd);
    and not
    $self->send_cmnd($cmd);

  2. It changes the set_by value to 'process item' if you use the async mode, making debugging much more difficult. I got around this by adding
    $self->{this_set_by} = $set_by;
    at the beginning of the set subroutine and
    in process_check changing
    #$self->SUPER::set( $state, "process item") unless (lc $state eq lc $self->state());
    to
    $self->SUPER::set( $state, $self->{this_set_by}) unless (lc $state eq lc $self->state());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0