[mh] Adding Tasmota HTTP support

Jeff Siddall via misterhouse-users <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
As a follow-on to the "What’s better than Insteon?" thread, Giles put me 
onto the Tasmota open source firmware that will run on a huge number 
(literally thousands) of smart things on the market. While you can talk 
to those over MQTT, then you also need to setup a broker, and that seems 
awkward in a world where all the smart things have web interfaces.

So that got me thinking about building a "Tasmota_HTTP_Item" in MH.  
There is already support for SETting things in MH using HTTP via the 
lib/http_server.pl code.  Tasmota devices can send updates using HTTP, 
as in this example:

https://tasmota.github.io/docs/Rules/#two-way-light-switches-without-mqtt

So combining those two would result in a rule for local switch control 
on the Tasmota with a command like:

WebSend [<mh_ip_address>:8081] 
/SET;none?select_item=Tasmota_Item_Name&select_state=on

And for remote control, MH would send a command like this when an item 
is set:

get 'http://<tasmota_item_ip>/cm?cmnd=POWER1 ON'

The only other thing is that the "set" function for the Tasmota_Item 
would need to check if the item was set_by:

web [<tasmota_item_ip_address>]

...and then not send anything in that case so it doesn't end up in a 
send loop with the Tasmota device.

Anyone tried anything like that?  If not, I guess it is time to order 
some of these things and start tinkering!



________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.