LS,
The Marmitek panel are getting cheap now, and can they be easily integrated into Domoticz. Did not see this yet on the forum, hence below how-to.
I created 16 buttons using the panel and named them P1, P2 etc in Domoticz.
For best results, I also created 16 slave buttons using the CM15Pro, these I named P1_slave, P2_slave etc. etc. The slave-buttons I linked the the regular buttons P1, P2 etc.
Domoticz picks up either the RFXCom or the CM15Pro signal as with X10 a signal gets lost from time-2-time.
I then use a LUA script to switch different devices (Zwave, Sonos, fire place etc). So like this you are not bounded with the panel to only X10 devices.
I created a template in PowerPoint to use as a background in the Panel, see ppt attached in case you like to use it.
Hope it inspires you.
- Spoiler: show
-
Code: Select all
-- Domoticz LUA script to use Marmitek Touchpanel
--
-- Version 1.0 -- 2019-12-27 -- First version of LUA Script.
--
local url_play = 'http://192.168.178.55:5005/Keuken/play'
local url_stop = 'http://192.168.178.55:5005/Keuken/pause'
local url_preset = 'http://192.168.178.55:5005/preset/touchpanel'
commandArray = {}
if (devicechanged['P1'] == 'On') then commandArray['Multi X Lamp'] = 'On'
print('MultiX Lamp AAN, door Touchpanel')
end
if (devicechanged['P1'] == 'Off') then commandArray['Multi X Lamp'] = 'Off'
print('MultiX Lamp UIT, door Touchpanel')
end
--
if (devicechanged['P2'] == 'On') then commandArray['Schemerlamp'] = 'On'
print('Schemerlamp AAN, door Touchpanel')
end
if (devicechanged['P2'] == 'Off') then commandArray['Schemerlamp'] = 'Off'
print('Schemerlamp UIT, door Touchpanel')
end
--
if (devicechanged['P3'] == 'On') then commandArray['Erker'] = 'On'
print('Erker AAN, door Touchpanel')
end
if (devicechanged['P3'] == 'Off') then commandArray['Erker'] = 'Off'
print('Erker UIT, door Touchpanel')
end
--
if (devicechanged['P4'] == 'On') then commandArray['Torchère'] = 'On'
print('Torchere AAN, door Touchpanel')
end
if (devicechanged['P4'] == 'Off') then commandArray['Torchère'] = 'Off'
print('Torchère UIT, door Touchpanel')
end
--
if (devicechanged['P5'] == 'On') then commandArray['Eettafel'] = 'On'
print('Eettafel AAN, door Touchpanel')
end
if (devicechanged['P5'] == 'Off') then commandArray['Eettafel'] = 'Off'
print('Eettafel UIT, door Touchpanel')
end
--
-- Woonkamner button (P6) is directly managed by Group activation
--
if (devicechanged['P7'] == 'On') then commandArray['Gordijnen'] = 'On'
print('Gordijen OPEN, door Touchpanel')
end
if (devicechanged['P7'] == 'Off') then commandArray['Gordijnen'] = 'Off'
print('Gordijenen DICHT, door Touchpanel')
end
--
if (devicechanged['P8'] == 'On') then commandArray['Keuken'] = 'On'
print('Keuken AAN, door Touchpanel')
end
if (devicechanged['P8'] == 'Off') then commandArray['Keuken'] = 'Off'
print('Keuken UIT, door Touchpanel')
end
--
if (devicechanged['P9'] == 'On') then commandArray['Openhaard'] = 'On'
print('Openhaard AAN, door Touchpanel')
end
if (devicechanged['P9'] == 'Off') then commandArray['Openhaard'] = 'Off'
print('Openhaard UIT, door Touchpanel')
end
--
if (devicechanged['P10'] == 'On') then commandArray['Hal'] = 'On'
print('Hal AAN, door Touchpanel')
end
if (devicechanged['P10'] == 'Off') then commandArray['Hal'] = 'Off'
print('Hal UIT, door Touchpanel')
end
--
if (devicechanged['P11'] == 'On') then commandArray['Overloop'] = 'On'
print('Overloop AAN, door Touchpanel')
end
if (devicechanged['P11'] == 'Off') then commandArray['Overloop'] = 'Off'
print('Overloop UIT, door Touchpanel')
end
--
if (devicechanged['P12'] == 'On') then commandArray['Slaapkamer'] = 'On'
print('Slaapkamer AAN, door Touchpanel')
end
if (devicechanged['P12'] == 'Off') then commandArray['Slaapkamer'] = 'Off'
print('Slaapkamer UIT, door Touchpanel')
end
--
-- Tuinverlichting (P13) directly managed in Group
--
if (devicechanged['P14'] == 'On') then
commandArray['OpenURL'] = url_preset
-- state : Opening the preset file from the node_sonos directory, making Sono PLAY the preset file
print('Sonos geSTART door Touchpanel')
end
if (devicechanged['P14'] == 'Off') then
commandArray['OpenURL'] = url_stop
print('Sonos geSTOPT door Touchpanel')
end
--
--
return commandArray
[