[edit] i think i should have placed it in the "Scenes and Interface" section, sorry for that.
So, i'm new, newbe, so...dont shoot me
I've been reading a lot, on this forum and elsewhere trying to get my Powerview shades connected to a zwave switch.
It seems to be much harder to manage then i was hoping for. My head spins around with all the information, code lines and such,
Also, none of the info i found seems to be complete. It is all like "do it in LUA", make a QA or a a bunch of code lines.
I hope to find some hints, or answers - help with that.
So, what i worked out:
- The 8 button fysical wall switch works.
- The powerview plugin works, and the scene's controlled from the hub work
The imported scene's dont work, and need i to make a QA or a LUA scene for that.
What i tried:
I made a block scene with the switch, and a HUE lamp, converted this to LUA
this is the "what if button is pressed" and it works.
{
conditions = { {
id = 21,
isTrigger = true,
operator = "==",
property = "centralSceneEvent",
type = "device",
value = {
keyAttribute = "Pressed",
keyId = 1
}
} },
operator = "all"
}
The action part, i made this - but its wrong.
local connection = Net.FHttp("192.168.1.35", 80);
local command = "/api/scenes?sceneid=25173";
local response, status, errorCode = connection.GET(connection, command);
It gives this error:
10.07.2021] [07:00:40] [ERROR] [SCENE4]: (load):1: attempt to index a nil value (global 'Net')
I know there is a lost of writing about this on the forum but, I am totally lost in what to do, is this sort of the right way to do it ?
Should i do it with a QA ?