Jump to content

Basic Wi-Fi device integration. Sonoff etc.....


keribi

Recommended Posts

Posted

I would like to see a feature to integrate low cost wi-fi enabled devices into ISY programs. There are several very low cost wi-fi enabled automation products available such as Sonoff that would be nice to play with but do not like using another platform to integrate these devices.  I know the PLM does not talk Wi-fi but maybe there is another way to integrate these devices?  Would the REST interface be capable of this?

Posted

I would like to see a feature to integrate low cost wi-fi enabled devices into ISY programs. There are several very low cost wi-fi enabled automation products available such as Sonoff that would be nice to play with but do not like using another platform to integrate these devices.  I know the PLM does not talk Wi-fi but maybe there is another way to integrate these devices?  Would the REST interface be capable of this?

 

https://forum.universal-devices.com/topic/23136-any-experience-with-sonoff-stuff/

Posted

I would like to see a feature to integrate low cost wi-fi enabled devices into ISY programs. There are several very low cost wi-fi enabled automation products available such as Sonoff that would be nice to play with but do not like using another platform to integrate these devices.  I know the PLM does not talk Wi-fi but maybe there is another way to integrate these devices?  Would the REST interface be capable of this?

 

Yes, REST is one way to do it, given some provisos. The ISY has a REST interface built in. The device must be able to form a REST command in the way the ISY wants it (or accept REST commands from it), or interface software must be written in-the-middle to facilitate the discussion between the 2.

 

Examples

  • The CAO wireless tags and related software can be used to updated variables in the ISY V4 or V5
  • Automation Shack / io_guy has written the XXXlink programs that interface with with V4 for a number of networkable devices. Sonoff is not one of them. However, his "devlink" software is designed to facilitate what you are talking about, but needs to be customized for each application, if its possible.
  • Ployglot is a v5 framework for adding networked devices as ISY devices. An appeal could be made in that part of the forum for a developer to write a sonoff nodeserver (if you're on V5).
  • If you get the ISY portal or buy the Network Module, it can send commands to network devices. A lot depends on the device's ability to accept commands

Paul

  • 1 month later...
Posted

I'm able to turn on and off my sonoff module within ISY (configured in network resources tab) but how would I go about getting status info from the switch? it is accessible through web interface and when using http://192.168.0.139/cm?cmnd=power in a browser window I get a response like this {"POWER":"ON"}

Below image is the configuration to turn the switch ON.

image.thumb.png.278142e8e17a8c13e6c465fa83d32f01.png

  • 11 months later...
Posted

I did something similiar with a lazybone wifi switch: I created two network resources - one for "on" and one for "off". Then I created a generic x10 device. Then created two programs for "on" and the other for "off": the switch itself keeps track of the on/off status...

1671849397_networkresources.thumb.JPG.30c417d647d9b2803b6dc50c52797c50.JPG

below is the resources for the lazybone switch: "on" and "off"

1796862539_resourceeditorforon.JPG.ab61be6d7654b12be35dcbe6bbff0a44.JPG

 

 

561373599_resourceeditorforoff.JPG.e73ed2d04533c1b899308268a8672f9a.JPG

 

programs for "on" and "off"

372369980_wifiawitchon.JPG.8c344807765d18f87fdd76dfd9c7949a.JPG

271854548_wifiswitchoff.JPG.7f54f4b8c20204a45a7fb3b0e0798672.JPG

x10 device used as on/off switch

 

206632338_x10genericdevicestatus.thumb.JPG.4f172b16e0c7ded151f680ac081639fe.JPG

1632581326_x10genericdevicestatusoff.thumb.JPG.bfe50a161718b335d34351a0966f0a0a.JPG

 

 

 

wifi switch off.JPG

Posted
3 hours ago, Hurting2Ride said:

Great idea.

Speaking of Sonoff and good ideas:

I don't use this, but I nearly always prefer to use a nodeserver over a Network Resource.  Might be worth a look.

Posted

@Hurting2Ride

Just recently I applied the same setup to a Sonoff switch. Only difference is the network resource but generally the same idea. There is no problem with latency but there is a problem with status. If the switch is activated manually, the status on isy is not updated. Only when the isy control sents the on/off command does the status again become synchronized. This makes the entire X10 button setup unsatisfactory. I am going to check out the Polyglot setup. The switch itself is very easy to flash with Tasmota firmware (https://www.youtube.com/watch?v=UDnNI5wkNNY)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...