https://store.particle.io/ for more information.
I have no real application for it right at the minute but thought I would just post that it is possible to control them by HS with a little effort (no I am not making this into a plugin, this is just to give people an idea - the possibilities are fairly limitless). If you have one of the boards and flash it with the example that Particle have in the IDE called 'WEB-CONNECTED LED' you can control the status LED on the board by sending it HTTP commands.
You can create a simple on/off virtual device in HomeSeer or in my case I used the reference of one of my existing X10 devices. Take a note of the device reference number.
Create a VB script in your scripts directory with a script that looks like this (this is quick and ugly but is just to prove a point);
You will need to change the DeviceID, AccessToken and dvRef to the device ID of the relevant Core board (available in the dashboard), the access token also from the dashboard and the dvRef to the reference of your device you have created or wish to mimic.
Then create an event that looks like the attached photo, it will just run the script when you change the device to any state. The script picks up the status and then sends the HTTP instructions to the board.
Although it routes through their respective cloud service my LED turns on quicker than it takes my X10 signal to come from downstairs!
Possibilities are limitless with these things! Remote temperature/humidity/sensor data...controlling stuff remotely or whatever.
I have no real application for it right at the minute but thought I would just post that it is possible to control them by HS with a little effort (no I am not making this into a plugin, this is just to give people an idea - the possibilities are fairly limitless). If you have one of the boards and flash it with the example that Particle have in the IDE called 'WEB-CONNECTED LED' you can control the status LED on the board by sending it HTTP commands.
You can create a simple on/off virtual device in HomeSeer or in my case I used the reference of one of my existing X10 devices. Take a note of the device reference number.
Create a VB script in your scripts directory with a script that looks like this (this is quick and ugly but is just to prove a point);
Code:
Const LT As String = "ParticleCoreScript" Const DeviceID As String = "53ff6d066667574841522xxx" Const AccessToken As String = "9b0118604a7ba3b932b9efbd4b96d044dec28xxx" Const dvRef As Integer = 101 Sub Main(Parm As Object) Try Dim URL As String = "https://api.particle.io/v1/devices/" & DeviceID & "/led" 'led is the name of our access point Dim responsebytes() As Byte Dim deviceStatus As String = hs.CAPIGetStatus(dvRef).Status.tolower Dim commandToSend As String = IIf(deviceStatus = "on", "on", "off") Using Wclient As New Net.WebClient Dim headerlist As New Specialized.NameValueCollection headerlist.Add("access_token", AccessToken) 'Send the access token headerlist.Add("params", commandToSend) 'to match the entry command in the spark code responsebytes = Wclient.UploadValues(URL, "POST", headerlist) hs.writelog(LT, "Reply: " & System.Text.Encoding.ASCII.GetString(responsebytes)) End Using Catch ex As Exception : hs.writelog(LT, "Exception: " & ex.Message.ToString) End Try End Sub
Then create an event that looks like the attached photo, it will just run the script when you change the device to any state. The script picks up the status and then sends the HTTP instructions to the board.
Although it routes through their respective cloud service my LED turns on quicker than it takes my X10 signal to come from downstairs!
Possibilities are limitless with these things! Remote temperature/humidity/sensor data...controlling stuff remotely or whatever.
Comment