Domoticz and remote control Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
tinytiger3
Posts: 2
Joined: Monday 06 June 2016 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Domoticz and remote control

Post by tinytiger3 »

Hi guys,
i have a question: with domoticz is it possible control every button of every remote control by learning or something? or is it only possible to on/off the lights? for example, i want to control RGBW leds, change channel of tv or change song on the radio and so on...(that have remote control!).
And, if it is possible... how can i do that?
Thank you in advance!

(Sorry for my english, i'm italian)
jackslayter
Posts: 59
Joined: Tuesday 07 October 2014 11:00
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: France RA
Contact:

Re: Domoticz and remote control

Post by jackslayter »

yes with Chacon CH54761.
you learn each buttons in Dz and mane it 1A 2A ...1B....4C like the remote.
and you change the lua script to configure like you want.

Code: Select all

--script_device_tel.lua
commandArray = {}

if (devicechanged['a1'] == 'On') then
commandArray['lamp']='On'
elseif (devicechanged['a1'] == 'Off') then
commandArray['lamp']='Off'
end

--if (devicechanged['a2'] == 'On') then
--commandArray['remote tv']='On'
--elseif (devicechanged['a2'] == 'Off') then
--commandArray['remote tv']='Off'
--end

if (devicechanged['a3'] == 'On') then
commandArray['rgb on']='On'
elseif (devicechanged['a3'] == 'Off') then
commandArray['rgb off']='On'
end

if (devicechanged['a4'] == 'On') then
commandArray['patt up']='On'
elseif (devicechanged['a4'] == 'Off') then
commandArray['patt down']='On'
end

if (devicechanged['b1'] == 'On') then
commandArray['start']='On'
elseif (devicechanged['b1'] == 'Off') then
commandArray['stop radio']='Off'
end

if (devicechanged['b2'] == 'On') then
commandArray['OpenURL']='www.yourdomain.com/api/movecamtopreset.cgi' 
elseif (devicechanged['b2'] == 'Off') then
commandArray['OpenURL']='www.yourdomain.com/api/movecamtopreset.cgi' 
end

if (devicechanged['b3'] == 'On') then
elseif (devicechanged['b3'] == 'Off') then
end

if (devicechanged['b4'] == 'On') then
elseif (devicechanged['b4'] == 'Off') then
end

if (devicechanged['c1'] == 'On') then
elseif (devicechanged['c1'] == 'Off') then
end

if (devicechanged['c2'] == 'On') then
elseif (devicechanged['c2'] == 'Off') then
end

if (devicechanged['c3'] == 'On') then
elseif (devicechanged['c3'] == 'Off') then
end

if (devicechanged['c4'] == 'On') then
elseif (devicechanged['c4'] == 'Off') then
end

if (devicechanged['d1'] == 'On') then
elseif (devicechanged['d1'] == 'Off') then
end

if (devicechanged['d2'] == 'On') then
elseif (devicechanged['d2'] == 'Off') then
end

if (devicechanged['d3'] == 'On') then
elseif (devicechanged['d3'] == 'Off') then
end

if (devicechanged['d4'] == 'On') then
elseif (devicechanged['d4'] == 'Off') then
end

return commandArray
http://www.domoticz.com/wiki/LUA_commands#General
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest