Re: [mh] Adding Tasmota HTTP support

Tom MacLean <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
Thanks to all who responded to my query. I’ll have  to check those devices that can run Tasmota. Insteon is not super-flawed, but it bugs me they never improved their quality, aesthetics or price in all the years I’ve been using it. It could have been so much better. 

Cheers,
Tom

Sent from my iPhone

> On Dec 12, 2020, at 9:56 PM, H Plato <[email protected]> wrote:
> 
> Look at my razberry module. This is very similar to how it works. Sending a http command for control and having a web endpoint for accepting status changes. 
> 
> Sent from my mobile device. 
> 
>> On Dec 12, 2020, at 7:41 PM, Jeff Siddall via misterhouse-users <[email protected]> wrote:
>> 
>> 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
>> 
> 
> 
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
> 


________________________________________________________
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.