-
Notifications
You must be signed in to change notification settings - Fork 130
Items Tasmota HTTP Item
ggodart edited this page Jan 12, 2021
·
6 revisions
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
Tasmota support for a Tasmota switch
To add table_A
support, add these lines to the read_table_A.pl
file:
elsif ( $type eq "TASMOTA_HTTP_SWITCH" ) {
require Tasmota_HTTP_Item;
( $address, $name, $grouplist ) = @item_info;
$object = "Tasmota_HTTP::Switch('$address')";
}
Defined in items.mht
as
#TASMOTA_HTTP_SWITCH, IP_asddress, name, groups
TASMOTA_HTTP_SWITCH, 192.168.1.10, Kitchen_Light, Kitchen
Or in code as
$Kitchen_Light = new Tasmota_HTTP::Switch("192.168.1.10");
Jeff Siddall (jeff@siddall.name)