var my_01_Eingangskamera, anlegen_in, my_02_ARD, Pfad_Sender_Datenunkte, my_03_ZDF, Pfad_Menue_Datenunkte, my_04_SAT1, Pfad_Lautstaerke_Datenunkte, my_05_RTL, my_06_RTL2, ECHO_fuer_VU_Instanz_0, my_07_PRO7, ECHO_fuer_VU_Instanz_1, my_08_VOX, my_09_PHOENIX, my_10_SUPER_RTL, Alexa_SmartName_eingangskamera, my_11_KABEL_EINS, Alexa_SmartName_ard, my_12_KABEL_EINS_DOKU, Alexa_SmartName_zdf, my_13_WELT, Alexa_SmartName_sat1, my_14_N24_DOKU, Alexa_SmartName_rtl, my_15_NTV, Alexa_SmartName_rtl2, my_16_3SAT, Alexa_SmartName_pro7, my_17_ARTE, Alexa_SmartName_vox, my_18_SIXX, Alexa_SmartName_phoenix, my_19_DMAX, Alexa_SmartName_super_rtl, my_20_MDR, Alexa_SmartName_kabel_eins, my_21_HR, Alexa_SmartName_kabel_eins_doku, my_22_SPORT1, Alexa_SmartName_welt, my_23_NITRO, Alexa_SmartName_N24_DOKU, my_24_SAT1_GOLD, Alexa_SmartName_NTV, my_25_PRO7_MAXX, Alexa_SmartName_3sat, my_26_TELE5, Alexa_SmartName_arte, my_27_EUROSPORT1, Alexa_SmartName_sixx, my_28_EUROSPORT1_DE, Alexa_SmartName_dmax, my_29_NICKELODEON, Alexa_SmartName_mdr, my_30_SERVUS_TV, Alexa_SmartName_hr, Alexa_SmartName_sport1, my_01_MENUE_AUFNAHMEN, Alexa_SmartName_nitro, my_02_MENUE_EXIT, Alexa_SmartName_sat1_gold, my_03_MENUE_KANAL_ZURUECK, Alexa_SmartName_pro7_maxx, my_04_MENUE_VU_MUTE, Alexa_SmartName_tele5, my_05_MENUE_NAECHSTER_KANAL, Alexa_SmartName_eurosport1, my_06_MENUE_OKAY, Alexa_SmartName_eurosport1_de, my_07_MENUE_UEBERSICHT_AN, Alexa_SmartName_nickelodeon, my_01_MENUE_MACH_LAUTER, Alexa_SmartName_servustv, my_02_MENUE_MACH_LEISER, Alexa_SmartName_aufnahmen, Alexa_SmartName_exit, Alexa_SmartName_kanal_zurueck, Alexa_SmartName_vu_mute, Alexa_SmartName_naechster_kanal, Alexa_SmartName_okay_druecken, Alexa_SmartName_uebersicht_an, Alexa_SmartName_mach_lauter, Alexa_SmartName_mach_leiser, denon_volume_neu, vu_wz_volume_neu, vu_sz_volume_neu;
// Datenpunkte erstellen
async function Datenpunkte_erstellen() {
async function createUserStates(where, statesToCreate) {
let dp, idKey;
for(let key of statesToCreate){
idKey = where + '.' + key[0];
dp = key[1];
if (!(await existsStateAsync(idKey))) {
await createStateAsync(idKey, dp);
}
}
}
//####################################################################################
//Datenpunkte für Sender erstellen mit SmartNamen für iot
let statesToCreate = [
[Pfad_Sender_Datenunkte+'.01Kamera', {'name':'01Eingangskamera', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_eingangskamera,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.02ARD', {'name':'02ARD', 'type':'boolean', 'read':false, 'write':true, 'role':'button','def':true,"smartName": {"de": Alexa_SmartName_ard,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.03ZDF', {'name':'03ZDF', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_zdf,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.04SAT1', {'name':'04SAT1', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_sat1,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.05RTL', {'name':'05RTL', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_rtl,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.06RTLII', {'name':'06RTLII', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_rtl2,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.07Pro7', {'name':'07Pro7', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_pro7,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.08VOX', {'name':'08VOX', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_vox,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.09PHOENIX', {'name':'09PHOENIX', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_phoenix,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.10SuperRTL', {'name':'10SuperRTL', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_super_rtl,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.11KabelEins', {'name':'11KabelEins', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_kabel_eins,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.12KabelEinsDoku', {'name':'12KabelEinsDoku', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_kabel_eins_doku,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.13Welt', {'name':'13Welt', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_welt,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.14N24Doku', {'name':'14N24Doku', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_N24_DOKU,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.15NTV', {'name':'15NTV', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_NTV,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.16DreiSAT', {'name':'16DreiSAT', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_3sat,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.17Arte', {'name':'17Arte', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_3sat,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.18Sixx', {'name':'18Sixx', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_sixx,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.19DMax', {'name':'19DMax', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_dmax,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.20MDR', {'name':'20MDR', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_mdr,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.21HR', {'name':'21HR', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_hr,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.22Sport1', {'name':'22Sport1', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_sport1,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.23Nitro', {'name':'23Nitro', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_nitro,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.24Sat1Gold', {'name':'24Sat1Gold', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_sat1_gold,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.25Pro7Maxx', {'name':'25Pro7Maxx', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_pro7_maxx,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.26Tele5', {'name':'26Tele5', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_tele5,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.27Eurosport1', {'name':'27Eurosport1', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_eurosport1,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.28EurosportDE', {'name':'28EurosportDE', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_eurosport1_de,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.29Nick', {'name':'29Nick', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_nickelodeon,"smartType": "SWITCH"} }],
[Pfad_Sender_Datenunkte+'.30ServusTV', {'name':'30ServusTV', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_servustv,"smartType": "SWITCH"} }],
// Ab hier Menü Befehle für die VU
[Pfad_Menue_Datenunkte+'.01Aufnahmen', {'name':'01Aufnahmen', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_aufnahmen,"smartType": "SWITCH"} }],
[Pfad_Menue_Datenunkte+'.02Exit', {'name':'02Exit', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_exit,"smartType": "SWITCH"} }],
[Pfad_Menue_Datenunkte+'.03Kanalzurueck', {'name':'03Kanalzurueck', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_kanal_zurueck,"smartType": "SWITCH"} }],
[Pfad_Menue_Datenunkte+'.04Mute', {'name':'04Mute', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_vu_mute,"smartType": "SWITCH"} }],
[Pfad_Menue_Datenunkte+'.05naechsterKanal', {'name':'05naechsterKanal', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_naechster_kanal,"smartType": "SWITCH"} }],
[Pfad_Menue_Datenunkte+'.06Okay', {'name':'06Okay', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_okay_druecken,"smartType": "SWITCH"} }],
[Pfad_Menue_Datenunkte+'.07Ubersicht', {'name':'07Ubersicht', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_uebersicht_an,"smartType": "SWITCH"} }],
//Lautstärke VU oder DENON
[Pfad_Lautstaerke_Datenunkte+'.lauter', {'name':'lauter', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_mach_lauter,"smartType": "SWITCH"} }],
[Pfad_Lautstaerke_Datenunkte+'.leiser', {'name':'leiser', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": {"de": Alexa_SmartName_mach_leiser,"smartType": "SWITCH"} }],
];
await createUserStates(anlegen_in, statesToCreate);
main()
//####################################################################################
/*
//Datenpunkte für Sender erstellen ohne SmartNamen für iot
if (Alexa_verwenden == false){
let statesToCreate = [
[Pfad_Sender_Datenunkte+'.01Kamera', {'name':'01Eingangskamera', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.02ARD', {'name':'02ARD', 'type':'boolean', 'read':false, 'write':true, 'role':'button','def':true,"smartName": false }],
[Pfad_Sender_Datenunkte+'.03ZDF', {'name':'03ZDF', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.04SAT1', {'name':'04SAT1', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.05RTL', {'name':'05RTL', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.06RTLII', {'name':'06RTLII', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.07Pro7', {'name':'07Pro7', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.08VOX', {'name':'08VOX', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.09PHOENIX', {'name':'09PHOENIX', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.10SuperRTL', {'name':'10SuperRTL', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.11KabelEins', {'name':'11KabelEins', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.12KabelEinsDoku', {'name':'12KabelEinsDoku', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.13Welt', {'name':'13Welt', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.14N24Doku', {'name':'14N24Doku', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.15NTV', {'name':'15NTV', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.16DreiSAT', {'name':'16DreiSAT', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.17Arte', {'name':'17Arte', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.18Sixx', {'name':'18Sixx', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.19DMax', {'name':'19DMax', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.20MDR', {'name':'20MDR', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.21HR', {'name':'21HR', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.22Sport1', {'name':'22Sport1', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.23Nitro', {'name':'23Nitro', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.24Sat1Gold', {'name':'24Sat1Gold', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.25Pro7Maxx', {'name':'25Pro7Maxx', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.26Tele5', {'name':'26Tele5', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.27Eurosport1', {'name':'27Eurosport1', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.28EurosportDE', {'name':'28EurosportDE', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.29Nick', {'name':'29Nick', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Sender_Datenunkte+'.30ServusTV', {'name':'30ServusTV', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
// Ab hier Menü Befehle für die VU
[Pfad_Menue_Datenunkte+'.01Aufnahmen', {'name':'01Aufnahmen', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Menue_Datenunkte+'.02Exit', {'name':'02Exit', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Menue_Datenunkte+'.03Kanalzurueck', {'name':'03Kanalzurueck', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Menue_Datenunkte+'.04Mute', {'name':'04Mute', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Menue_Datenunkte+'.05naechsterKanal', {'name':'05naechsterKanal', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Menue_Datenunkte+'.06Okay', {'name':'06Okay', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Menue_Datenunkte+'.07Ubersicht', {'name':'07Ubersicht', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
//Lautstärke VU oder DENON
[Pfad_Lautstaerke_Datenunkte+'.lauter', {'name':'lauter', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
[Pfad_Lautstaerke_Datenunkte+'.leiser', {'name':'leiser', 'type':'boolean', 'read':false, 'write':true, 'role':'button', 'def':true, "smartName": false }],
];
await createUserStates(anlegen_in, statesToCreate);
main()
*/
}
// Beschreibe diese Funktion …
async function main() {
my_01_Eingangskamera = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','01Kamera'].join('');
my_02_ARD = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','02ARD'].join('');
my_03_ZDF = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','03ZDF'].join('');
my_04_SAT1 = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','04SAT1'].join('');
my_05_RTL = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','05RTL'].join('');
my_06_RTL2 = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','06RTLII'].join('');
my_07_PRO7 = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','07Pro7'].join('');
my_08_VOX = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','08VOX'].join('');
my_09_PHOENIX = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','09PHOENIX'].join('');
my_10_SUPER_RTL = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','10SuperRTL'].join('');
my_11_KABEL_EINS = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','11KabelEins'].join('');
my_12_KABEL_EINS_DOKU = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','12KabelEinsDoku'].join('');
my_13_WELT = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','13Welt'].join('');
my_14_N24_DOKU = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','14N24Doku'].join('');
my_15_NTV = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','15NTV'].join('');
my_16_3SAT = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','16DreiSAT'].join('');
my_17_ARTE = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','17Arte'].join('');
my_18_SIXX = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','18Sixx'].join('');
my_19_DMAX = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','19DMax'].join('');
my_20_MDR = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','20MDR'].join('');
my_21_HR = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','21HR'].join('');
my_22_SPORT1 = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','22Sport1'].join('');
my_23_NITRO = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','23Nitro'].join('');
my_24_SAT1_GOLD = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','24Sat1Gold'].join('');
my_25_PRO7_MAXX = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','25Pro7Maxx'].join('');
my_26_TELE5 = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','26Tele5'].join('');
my_27_EUROSPORT1 = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','27Eurosport1'].join('');
my_28_EUROSPORT1_DE = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','28EurosportDE'].join('');
my_29_NICKELODEON = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','29Nick'].join('');
my_30_SERVUS_TV = [anlegen_in,'.',Pfad_Sender_Datenunkte,'.','30ServusTV'].join('');
// Menü VU
my_01_MENUE_AUFNAHMEN = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','01Aufnahmen'].join('');
my_02_MENUE_EXIT = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','02Exit'].join('');
my_03_MENUE_KANAL_ZURUECK = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','03Kanalzurueck'].join('');
my_04_MENUE_VU_MUTE = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','04Mute'].join('');
my_05_MENUE_NAECHSTER_KANAL = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','05naechsterKanal'].join('');
my_06_MENUE_OKAY = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','06Okay'].join('');
my_07_MENUE_UEBERSICHT_AN = [anlegen_in,'.',Pfad_Menue_Datenunkte,'.','07Ubersicht'].join('');
my_01_MENUE_MACH_LAUTER = [anlegen_in,'.',Pfad_Lautstaerke_Datenunkte,'.','lauter'].join('');
my_02_MENUE_MACH_LEISER = [anlegen_in,'.',Pfad_Lautstaerke_Datenunkte,'.','leiser'].join('');
// ab hier Button schalten
on({id: my_01_Eingangskamera, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=2').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=2').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_02_ARD, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:283D:3FB:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:283D:3FB:1:C00000:0:0:0:');
}
});
on({id: my_03_ZDF, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2B66:3F3:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2B66:3F3:1:C00000:0:0:0:');
}
});
on({id: my_04_SAT1, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF74:3F9:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:445C:453:1:C00000:0:0:0:');
}
});
on({id: my_05_RTL, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF10:421:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:2EE3:441:1:C00000:0:0:0:');
}
});
on({id: my_06_RTL2, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF15:421:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:2EF4:441:1:C00000:0:0:0:');
}
});
on({id: my_07_PRO7, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF75:3F9:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:445D:453:1:C00000:0:0:0:');
}
});
on({id: my_08_VOX, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF11:421:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:2F1C:441:1:C00000:0:0:0:');
}
});
on({id: my_09_PHOENIX, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, ' 1:0:19:285B:401:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:285B:401:1:C00000:0:0:0:');
}
});
on({id: my_10_SUPER_RTL, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2E9B:411:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:2F08:441:1:C00000:0:0:0:');
}
});
on({id: my_11_KABEL_EINS, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF76:3F9:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:445E:453:1:C00000:0:0:0:');
}
});
on({id: my_12_KABEL_EINS_DOKU, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:1:4465:453:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:4465:453:1:C00000:0:0:0:');
}
});
on({id: my_13_WELT, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:5274:41D:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:445F:453:1:C00000:0:0:0:');
}
});
on({id: my_14_N24_DOKU, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:1:30:5:85:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:30:5:85:C00000:0:0:0:');
}
});
on({id: my_15_NTV, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF14:421:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:2F3A:441:1:C00000:0:0:0:');
}
});
on({id: my_16_3SAT, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2B8E:3F2:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2B8E:3F2:1:C00000:0:0:0:');
}
});
on({id: my_17_ARTE, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:283E:3FB:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:283E:3FB:1:C00000:0:0:0:');
}
});
on({id: my_18_SIXX, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF77:3F9:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:308:5:85:C00000:0:0:0:');
}
});
on({id: my_19_DMAX, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:151A:455:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:3F:21:85:C00000:0:0:0:');
}
});
on({id: my_20_MDR, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2871:425:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2873:425:1:C00000:0:0:0:');
}
});
on({id: my_21_HR, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2873:425:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:384:21:85:C00000:0:0:0:');
}
});
on({id: my_22_SPORT1, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:1581:41F:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:2F1D:441:1:C00000:0:0:0:');
}
});
on({id: my_23_NITRO, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:2EAF:411:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:4460:453:1:C00000:0:0:0:');
}
});
on({id: my_24_SAT1_GOLD, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:30D4:413:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:4461:453:1:C00000:0:0:0:');
}
});
on({id: my_25_PRO7_MAXX, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:EF78:3F9:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:33:21:85:C00000:0:0:0:');
}
});
on({id: my_26_TELE5, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:1519:455:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:79E0:443:1:C00000:0:0:0:');
}
});
on({id: my_27_EUROSPORT1, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:30D6:413:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:7008:436:1:C00000:0:0:0:');
}
});
on({id: my_28_EUROSPORT1_DE, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:1:79E0:443:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:1332:3EF:1:C00000:0:0:0:');
}
});
on({id: my_29_NICKELODEON, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:1:7008:436:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:1:701:5:85:C00000:0:0:0:');
}
});
on({id: my_30_SERVUS_TV, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
setState("enigma2.0.command.ZAP"/*Zap with Servicereference*/, '1:0:19:1332:3EF:1:C00000:0:0:0:');
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
setState("enigma2.1.command.ZAP"/*Zap with Servicereference*/, '1:0:19:526C:41D:1:C00000:0:0:0:');
}
});
on({id: my_01_MENUE_AUFNAHMEN, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=393').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=393').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_02_MENUE_EXIT, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=174').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=174').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_03_MENUE_KANAL_ZURUECK, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=105').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=105').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_04_MENUE_VU_MUTE, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=113').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=113').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_05_MENUE_NAECHSTER_KANAL, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=106').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=106').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_06_MENUE_OKAY, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=352').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=352').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_07_MENUE_UEBERSICHT_AN, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
// VU Wohnzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && !getState("enigma2.0.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.53/web/remotecontrol?command=108').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
// VU Schlafzimmer
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && !getState("enigma2.1.enigma2.STANDBY").val) {
try {
require("request")('http://192.168.1.52/web/remotecontrol?command=108').on("error", function (e) {console.error(e);});
} catch (e) { console.error(e); }
}
});
on({id: my_01_MENUE_MACH_LAUTER, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && getState("denon.0.zoneMain.powerZone").val == true && getState("enigma2.0.enigma2.STANDBY").val == false) {
denon_volume_neu = Math.round(getState("denon.0.zoneMain.volume").val + 5);
setState("denon.0.zoneMain.volume"/*Main Volume*/, denon_volume_neu);
} else if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && getState("denon.0.zoneMain.powerZone").val == false && getState("enigma2.0.enigma2.STANDBY").val == false) {
vu_wz_volume_neu = Math.round(getState("enigma2.0.enigma2.VOLUME").val + 5);
setState("enigma2.0.command.SET_VOLUME"/*SET VOLUME*/, vu_wz_volume_neu);
} else if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && getState("denon.0.zoneMain.powerZone").val == true && getState("enigma2.0.enigma2.STANDBY").val == true) {
denon_volume_neu = Math.round(getState("denon.0.zoneMain.volume").val + 5);
setState("denon.0.zoneMain.volume"/*Main Volume*/, denon_volume_neu);
} else if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && getState("enigma2.1.enigma2.STANDBY").val == false) {
vu_sz_volume_neu = Math.round(getState("enigma2.1.enigma2.VOLUME").val + 5);
setState("enigma2.1.command.SET_VOLUME"/*SET VOLUME*/, vu_sz_volume_neu);
}
});
on({id: my_02_MENUE_MACH_LEISER, change: "any"}, async function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && getState("denon.0.zoneMain.powerZone").val == true && getState("enigma2.0.enigma2.STANDBY").val == false) {
denon_volume_neu = Math.round(getState("denon.0.zoneMain.volume").val - 5);
setState("denon.0.zoneMain.volume"/*Main Volume*/, denon_volume_neu);
} else if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && getState("denon.0.zoneMain.powerZone").val == false && getState("enigma2.0.enigma2.STANDBY").val == false) {
vu_wz_volume_neu = Math.round(getState("enigma2.0.enigma2.VOLUME").val - 5);
setState("enigma2.0.command.SET_VOLUME"/*SET VOLUME*/, vu_wz_volume_neu);
} else if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_0 && getState("denon.0.zoneMain.powerZone").val == true && getState("enigma2.0.enigma2.STANDBY").val == true) {
denon_volume_neu = Math.round(getState("denon.0.zoneMain.volume").val - 5);
setState("denon.0.zoneMain.volume"/*Main Volume*/, denon_volume_neu);
} else if (getState("alexa2.0.History.name").val == ECHO_fuer_VU_Instanz_1 && getState("enigma2.1.enigma2.STANDBY").val == false) {
vu_sz_volume_neu = Math.round(getState("enigma2.1.enigma2.VOLUME").val - 5);
setState("enigma2.1.command.SET_VOLUME"/*SET VOLUME*/, vu_sz_volume_neu);
}
});
}
// javascript.x oder 0_userdata.0
anlegen_in = 'javascript.0';
Pfad_Sender_Datenunkte = 'TV_System_mit_Alexa.VU.Sender';
Pfad_Menue_Datenunkte = 'TV_System_mit_Alexa.VU.Menue';
Pfad_Lautstaerke_Datenunkte = 'TV_System_mit_Alexa.VU.Lautstaerke';
// Name des ECHO
ECHO_fuer_VU_Instanz_0 = 'Wohnzimmer';
ECHO_fuer_VU_Instanz_1 = 'Schlafzimmer';
// ab hier SmartNamen für iot
// mehrere durch Komma getrennt
Alexa_SmartName_eingangskamera = 'kanal einz, Kanal eins, Eingangskamera ';
Alexa_SmartName_ard = 'kanal zwei, a. r. d. ';
Alexa_SmartName_zdf = 'kanal drei, z. d. f. ';
Alexa_SmartName_sat1 = 'kanal vier, satt eins';
Alexa_SmartName_rtl = 'kanal fünf, r. t. l. ';
Alexa_SmartName_rtl2 = 'kanal sechs, r. t. l. zwei ';
Alexa_SmartName_pro7 = 'kanal sieben , pro sieben';
Alexa_SmartName_vox = 'kanal acht , vox , wochs';
Alexa_SmartName_phoenix = 'kanal neun , fönix , phoenix , phönix';
Alexa_SmartName_super_rtl = 'kanal zehn , super r. t. l. ';
Alexa_SmartName_kabel_eins = 'kanal elf , kabel eins ';
Alexa_SmartName_kabel_eins_doku = 'kanal zwölf , kabel eins doku , kabel einz doku ';
Alexa_SmartName_welt = 'kanal dreizehn , kanal drei zehn , welt';
Alexa_SmartName_N24_DOKU = 'kanal vierzehn , kanal vier zehn , n. vier und zwanzig doku , en vier und zwanzig doku , n vier und zwanzig doku';
Alexa_SmartName_NTV = 'kanal fünfzehn , n. t. v. ';
Alexa_SmartName_3sat = 'kanal sechzehn , drei sat , kanal sechs zehn ';
Alexa_SmartName_arte = 'kanal siebzehn , arte ';
Alexa_SmartName_sixx = 'kanal achtzehn , six ';
Alexa_SmartName_dmax = 'kanal neunzehn , d. max ';
Alexa_SmartName_mdr = 'kanal zwanzig , m. d. r. ';
Alexa_SmartName_hr = 'kanal ein und zwanzig , h. r. ';
Alexa_SmartName_sport1 = 'kanal zweiundzwanzig , kanal zwei und zwanzig , sport eins';
Alexa_SmartName_nitro = 'kanal dreiundzwanzig , kanal drei und zwanzig , nitro ';
Alexa_SmartName_sat1_gold = 'kanal vierundzwanzig , kanal vier und zwanzig , satt eins gold ';
Alexa_SmartName_pro7_maxx = 'kanal fünfundzwanzig , kanal fünf und zwanzig , pro sieben max ';
Alexa_SmartName_tele5 = 'kanal sechsundzwanzig , kanal sechs und zwanzig , tele fünf ';
Alexa_SmartName_eurosport1 = 'kanal siebenundzwanzig , kanal sieben und zwanzig , eurosport eins ';
Alexa_SmartName_eurosport1_de = 'kanal achtundzwanzig , kanal acht und zwanzig , eurosport eins deutschland';
Alexa_SmartName_nickelodeon = 'kanal neunundzwanzig , kanal neun und zwanzig , nick';
Alexa_SmartName_servustv = 'kanal dreissig , servus t. v. ';
// Menü VU
Alexa_SmartName_aufnahmen = 'Aufnahmen';
Alexa_SmartName_exit = 'exit drücken';
Alexa_SmartName_kanal_zurueck = 'kanal zurück';
Alexa_SmartName_vu_mute = 'vu mute';
Alexa_SmartName_naechster_kanal = 'nächster kanal';
Alexa_SmartName_okay_druecken = 'kanal';
Alexa_SmartName_uebersicht_an = 'übersicht';
Alexa_SmartName_mach_lauter = '13mach_lauter';
Alexa_SmartName_mach_leiser = '14mach_leiser';
await Datenpunkte_erstellen();