I immediately bought one and perhaps the first one in line.
Thanks!
samppa
@samppa
Best posts made by samppa
-
RE: Get a MySensors T-Shirt!
-
RE: Is Vera still the best controller (to replace my failing Vera3)?
Perhaps we could link to https://socialcompare.com/en/comparison/home-automation-controllers-under-400dollar-37r4y81h and add rows for MySensors compatibility..
-
RE: Frustration ??
Actually I went to the nearest library and there you can print 3D objects for free!
So I immediately created a holder scaffold for arduino nano (plate and poles on corners with studs on top for the small holes in the corners of the nano) for easier mounting inside any box. The first prototype tested the precision of the printer and strength of the plastic.Here is the SketchUp model if someone is interested: ArduinoNano Holder 4.skb
Next I will try to make a snap-on plate that is only cut with scissors to snuggly fit into any case width to hold the nano in place.
With these I hope to resolve my frustration and still use existing boxes.
-
Plotting graphs with plot.ly service with luup scene using REST API
I have been searching for the easiest graphing solution to see how sensor data behaves and I think I have found it - at least it looks promising.
After creating plot.ly account create API key in https://plot.ly/settings/api
Then create scene with following luup that makes the REST API request to upload new the value into the plot.
So the example here is that I record time series one data point at a time and trigger the scene with 5 minute interval schedule,Replace <username>, <APIKey>, <nameForGraph> and <graphTitle> below with your (hard coded) values and the datavelue is of course the sensor data that you want to plot (I plot humidity).
LUUP CODE:
local datavalue = luup.variable_get("urn:micasaverde-com:serviceId:HumiditySensor1", "CurrentLevel", 83) local http = require("socket.http") http.TIMEOUT = 5 local ts = os.date("%Y-%m-%d %X") result, status = http.request("https://plot.ly/clientresp",'un=<username>&key=<APIKey>&origin=plot&platform=lisp&args=[{"x":["'..ts..'"],"y":['..datavalue..']}]&kwargs={"filename":"<nameForGraph>","fileopt":"extend","style":{"type":"scatter"},"traces":[0],"layout":{"title":"<graphTitle>"},"world_readable":false}')
-
Requirements for controller integration/support for MySensors?
@hek What are the requirements to get a controller fully supported by MySensors?
I mean technically and API wise. My friend is producing the Cozify controller and planning to open APIs for custom sensor development like MySensors.
Latest posts made by samppa
-
RE: Requirements for controller integration/support for MySensors?
@hek Thanks! Is there any documentation available about the controller integration?
-
RE: Is HTTPS request from LUUP code possible?
Thanks @hek
I got it working with CURL:
local pw = 'xxx' local un = 'xxx' --login request local url_1 = 'https://mypages.verisure.com/j_spring_security_check?locale=fi_FI' local command_1 = "curl -c '/tmp/log/cmh/cookie.txt' -d 'j_username="..un.."&j_password="..pw.." "..url_1 local f_1 = assert(io.popen(command_1, 'r')) local response_1 = assert(f_1:read('*a')) f_1:close(f_1) luup.log("Verisure login response: "..response_1) --armed status request local url_2 = 'https://mypages.verisure.com/remotecontrol?_=14616968783849' local command_2 = "curl -k -b '/tmp/log/cmh/cookie.txt' "..url_2 local f_2 = assert(io.popen(command_2, 'r')) local response_2 = assert(f_2:read('*a')) f_2:close(f_2) luup.log("Verisure status response: "..response_2)
This returns the alarm status of Verisure system:
[{"date":"Today 8:47 PM","notAllowedReason":"","name":"Samppa Turunen","changeAllowed":true,"id":1,"label":"Armed stay","type":"ARM_STATE","status":"armedhome"}]
Now I need to parse the response string into a variable.
Then I could make a device for it to be used as home / away switch.
What would be the easiest example to start packaging the code into a device file for Vera? This would be my very first handmade device.. -
RE: Is HTTPS request from LUUP code possible?
@hek Do you know who could know if saving the cookies is possible with https POST request in luup code?
-
Requirements for controller integration/support for MySensors?
@hek What are the requirements to get a controller fully supported by MySensors?
I mean technically and API wise. My friend is producing the Cozify controller and planning to open APIs for custom sensor development like MySensors. -
RE: Is Vera still the best controller (to replace my failing Vera3)?
Perhaps we could link to https://socialcompare.com/en/comparison/home-automation-controllers-under-400dollar-37r4y81h and add rows for MySensors compatibility..
-
RE: Is Vera still the best controller (to replace my failing Vera3)?
Yes I saw the list and struggling to go through it one by one..
It would be great to see the main differences and estimation of target audience as a summary table. Level of expertise needed, z-wave, zigbee support etc.. -
Is Vera still the best controller (to replace my failing Vera3)?
I have had Vera3 for a few years and after upgrade to UI7 from UI5 the problems started and the flash memory is degrading with bad blocks so that the unit is no longer stable or reliable.
What is the best controller for MySensors or are VeraEdge or Vera Plus the best alternatives?
I have somewhat complex rules and luup scripts with PLG to control things and I like the ability to tinker and code stuff to work together intelligently. And the active community support and developed apps/plugins are important factors.
So who could suggest the best controller box for my needs?By the way, the MySensors site should have controller comparison table as welll as and pors/cons and suggestions.
-
RE: My Vera 3 (UI7) keeps on rebooting
I had the same problem after updating to UI7 from UI5. Finally I was able to reset the box with this help with SSH (using putty on windows) : http://forum.micasaverde.com/index.php?topic=9949.0
After reset I upgraded the firmware to latest one and then take the settings from saved backup.
It kind of works now, but I am still struggling to get MySensors Plugin updated.
-
Verisure home alarm status as home/away switch
I am trying to get the status of my Verisure alarm system, but the API requires HTTPS login.
The only two workaround methods I have figured out so far are:- Monitor the "SmartPlug" that can be configured to turn on or off according to the alarm status
- Request the alarm status information for the web site with two HTTPS requests
The option 2 would be nice, but I am stuck with the HTTPS requests from Vera3 scene LUUP code.
Not sure if that is even possible. The status page requires first a login HTTPS request and the session tokens to be stored and another HTTPS request to retrieve the actual alarm status.Any ideas how to implement the HTTPS requests? Do I need to create a "device" and does that provide better access to SSL libraries like LuaSec? Would that help?
-
Is HTTPS request from LUUP code possible?
Does anyone know if I can make HTTPS request from luup code with cookie support?
I would login to my pages on Verisure website and get the alarm status to be used in automation as home/away switch. I can do this successfully with two wget HTTPS calls: 1) login and 2) access status page with cookies that store the session authentication. But no luck so far with luup.So can that even be done with lua from a scene with luup code?