Skip to content

Items Tasmota HTTP Item

ggodart edited this page Jan 14, 2021 · 6 revisions

Tasmota HTTP Item

SYNOPSIS

DESCRIPTION

Basic Tasmota support using the HTTP interface rather than MQTT.

This module currently supports Tasmota switch type devices but other devices can be added with extra packages added

The Tasmota device needs to be setup with a rule to send HTTP requests to MisterHouse if two-way communication is desired. For example, a Sonoff Mini switch input can be sent to MisterHouse with the rule:

  Rule1 ON Power1#State DO WebSend [192.168.0.1:80] /SET;none?select_item=Kitchen_Light&select_state=%value% ENDON

INHERITS

Generic_Item

INI PARAMETERS

METHODS

Tasmota_HTTP Switch

SYNOPSIS

DESCRIPTION

MisterHouse support for a Tasmota switch.

Make sure your read_table_A.pl file contains the entry for TASMOTA_HTTP_SWITCH

This was incorporated into the Master branch of MisterHouse in December 2020

INHERITS

Tasmota_HTTP_Item

items.mht

Defined in items.mht as

# TASMOTA_HTTP_SWITCH,   IP_address,  name,   POWER1,   groups
TASMOTA_HTTP_SWITCH,   192.168.1.10,   Kitchen_Light, POWER1,   Kitchen

Or in code as

$Kitchen_Light = new Tasmota_HTTP::Switch("192.168.1.10", "POWER1");

Where: 192.168.1.10 is the IPv4 address or hostname of the Tasmota device

POWER1 is the name of the Tasmota output to control (POWER1 if not specified)

Tasmota_HTTP Fan

SYNOPSIS

DESCRIPTION

MisterHouse support for a Tasmota fan.

Make sure your read_table_A.pl file contains the entry for TASMOTA_HTTP_FAN

INHERITS

Tasmota_HTTP_Item

items.mht

Defined in items.mht as

#TASMOTA_HTTP_FAN,  IP_asddress,   name,    groups
TASMOTA_HTTP_FAN,   192.168.1.10,   Kitchen_fan,    Kitchen

Or in code as

$Kitchen_fan = new Tasmota_HTTP::Fan("192.168.1.10");

AUTHOR

Jeff Siddall (jeff@siddall.name)

Clone this wiki locally