-
Notifications
You must be signed in to change notification settings - Fork 130
Items Tasmota HTTP Item
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
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
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)
MisterHouse support for a Tasmota fan.
Make sure your read_table_A.pl
file contains the entry for TASMOTA_HTTP_FAN
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");
Jeff Siddall ([email protected])