Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Tasmota_HTTP_Item.pm async mode issues #866

Open
ggodart opened this issue Dec 15, 2023 · 0 comments
Open

Two Tasmota_HTTP_Item.pm async mode issues #866

ggodart opened this issue Dec 15, 2023 · 0 comments

Comments

@ggodart
Copy link

ggodart commented Dec 15, 2023

  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());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant