<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<data version="1.34.0">
  <trigger type="battery_level">
    <useDefaultName>true</useDefaultName>
    <name>Akku Ladestand: grösser als 0%</name>
    <enabled>true</enabled>
    <levelPercentage>0</levelPercentage>
    <batteryLevelCondition>HIGHER_THAN</batteryLevelCondition>
    <ignoreTemperatureChanges>true</ignoreTemperatureChanges>
    <ignoreVoltageChanges>true</ignoreVoltageChanges>
  </trigger>
  <trigger type="app_task_ended">
    <useDefaultName>false</useDefaultName>
    <name>App Task Beendet</name>
    <enabled>true</enabled>
    <method>CLASSIC</method>
    <packageNameFilter>*</packageNameFilter>
  </trigger>
  <trigger type="app_task_ended">
    <useDefaultName>true</useDefaultName>
    <name>App Task Beendet: ch.gridvision.ppam.androidautomagic</name>
    <enabled>false</enabled>
    <method>CLASSIC</method>
    <packageNameFilter>ch.gridvision.ppam.androidautomagic</packageNameFilter>
  </trigger>
  <trigger type="app_task_started">
    <useDefaultName>false</useDefaultName>
    <name>App Task Gestartet</name>
    <enabled>true</enabled>
    <method>CLASSIC</method>
    <packageNameFilter>*</packageNameFilter>
  </trigger>
  <trigger type="notification_status_bar_displayed">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic</name>
    <enabled>true</enabled>
    <packageNameFilter>ch.gridvision.ppam.androidautomagic</packageNameFilter>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>false</ignoreOngoing>
  </trigger>
  <trigger type="notification_status_bar_displayed">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung in Statusbar angezeigt: com.whatsapp</name>
    <enabled>true</enabled>
    <packageNameFilter>com.whatsapp</packageNameFilter>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>true</ignoreOngoing>
  </trigger>
  <trigger type="notification_status_bar_displayed">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung in Statusbar angezeigt: org.telegram.messenger</name>
    <enabled>true</enabled>
    <packageNameFilter>org.telegram.messenger</packageNameFilter>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>true</ignoreOngoing>
  </trigger>
  <trigger type="notification_status_bar_removed">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic</name>
    <enabled>true</enabled>
    <packageNameFilter>ch.gridvision.ppam.androidautomagic</packageNameFilter>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>false</ignoreOngoing>
  </trigger>
  <trigger type="bluetooth_device_disconnected">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät getrennt: Alle Geräte</name>
    <enabled>true</enabled>
    <all>true</all>
    <deviceAddress></deviceAddress>
    <deviceName></deviceName>
  </trigger>
  <trigger type="bluetooth_device_connected">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbunden: Alle Geräte</name>
    <enabled>true</enabled>
    <all>true</all>
    <deviceAddress></deviceAddress>
    <deviceName></deviceName>
  </trigger>
  <trigger type="bluetooth_state">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Status: Schaltet aus, Aus</name>
    <enabled>true</enabled>
    <turningOn>false</turningOn>
    <on>false</on>
    <turningOff>true</turningOff>
    <off>true</off>
  </trigger>
  <trigger type="bluetooth_state">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Status: Schaltet ein, Ein</name>
    <enabled>true</enabled>
    <turningOn>true</turningOn>
    <on>true</on>
    <turningOff>false</turningOff>
    <off>false</off>
  </trigger>
  <trigger type="daydream_state">
    <useDefaultName>true</useDefaultName>
    <name>Daydream Status: Gestartet</name>
    <enabled>true</enabled>
    <started>true</started>
  </trigger>
  <trigger type="daydream_state">
    <useDefaultName>true</useDefaultName>
    <name>Daydream Status: Gestoppt</name>
    <enabled>true</enabled>
    <started>false</started>
  </trigger>
  <trigger type="screen_orientation">
    <useDefaultName>true</useDefaultName>
    <name>Display Orientierung: Landscape</name>
    <enabled>true</enabled>
    <portrait>false</portrait>
  </trigger>
  <trigger type="screen_orientation">
    <useDefaultName>true</useDefaultName>
    <name>Display Orientierung: Portrait</name>
    <enabled>true</enabled>
    <portrait>true</portrait>
  </trigger>
  <trigger type="display_state">
    <useDefaultName>true</useDefaultName>
    <name>Display Status: Aus</name>
    <enabled>true</enabled>
    <displayOn>false</displayOn>
  </trigger>
  <trigger type="display_state">
    <useDefaultName>true</useDefaultName>
    <name>Display Status: Ein</name>
    <enabled>true</enabled>
    <displayOn>true</displayOn>
  </trigger>
  <trigger type="dock_event">
    <useDefaultName>true</useDefaultName>
    <name>Dock Event: Docked</name>
    <enabled>true</enabled>
    <docked>true</docked>
  </trigger>
  <trigger type="dock_event">
    <useDefaultName>true</useDefaultName>
    <name>Dock Event: Undocked</name>
    <enabled>true</enabled>
    <docked>false</docked>
  </trigger>
  <trigger type="incoming_call">
    <useDefaultName>true</useDefaultName>
    <name>Eingehender Anruf. Status: Klingelt, Nummern: Alle</name>
    <enabled>true</enabled>
    <all>true</all>
    <incomingNumbersList></incomingNumbersList>
    <handleSuppressedCallnumber>true</handleSuppressedCallnumber>
    <ringing>true</ringing>
    <offhook>false</offhook>
    <idle>false</idle>
    <missedRejected>false</missedRejected>
  </trigger>
  <trigger type="airplane_mode">
    <useDefaultName>true</useDefaultName>
    <name>Flugmodus: Aus</name>
    <enabled>true</enabled>
    <on>false</on>
  </trigger>
  <trigger type="general_broadcast">
    <useDefaultName>true</useDefaultName>
    <name>Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT</name>
    <enabled>true</enabled>
    <action>com.android.deskclock.ALARM_ALERT</action>
    <categoryList></categoryList>
    <dataSchemeList></dataSchemeList>
    <dataAuthorityList></dataAuthorityList>
    <dataPathLiteralList></dataPathLiteralList>
    <dataPathPrefixList></dataPathPrefixList>
    <dataPathGlobList></dataPathGlobList>
    <dataTypeList></dataTypeList>
    <extras></extras>
    <receiveInitialStickyBroadcast>false</receiveInitialStickyBroadcast>
  </trigger>
  <trigger type="general_broadcast">
    <useDefaultName>true</useDefaultName>
    <name>Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS</name>
    <enabled>true</enabled>
    <action>com.android.deskclock.ALARM_DISMISS</action>
    <categoryList></categoryList>
    <dataSchemeList></dataSchemeList>
    <dataAuthorityList></dataAuthorityList>
    <dataPathLiteralList></dataPathLiteralList>
    <dataPathPrefixList></dataPathPrefixList>
    <dataPathGlobList></dataPathGlobList>
    <dataTypeList></dataTypeList>
    <extras></extras>
    <receiveInitialStickyBroadcast>false</receiveInitialStickyBroadcast>
  </trigger>
  <trigger type="general_broadcast">
    <useDefaultName>true</useDefaultName>
    <name>Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE</name>
    <enabled>true</enabled>
    <action>com.android.deskclock.ALARM_DONE</action>
    <categoryList></categoryList>
    <dataSchemeList></dataSchemeList>
    <dataAuthorityList></dataAuthorityList>
    <dataPathLiteralList></dataPathLiteralList>
    <dataPathPrefixList></dataPathPrefixList>
    <dataPathGlobList></dataPathGlobList>
    <dataTypeList></dataTypeList>
    <extras></extras>
    <receiveInitialStickyBroadcast>false</receiveInitialStickyBroadcast>
  </trigger>
  <trigger type="general_broadcast">
    <useDefaultName>true</useDefaultName>
    <name>Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE</name>
    <enabled>true</enabled>
    <action>com.android.deskclock.ALARM_SNOOZE</action>
    <categoryList></categoryList>
    <dataSchemeList></dataSchemeList>
    <dataAuthorityList></dataAuthorityList>
    <dataPathLiteralList></dataPathLiteralList>
    <dataPathPrefixList></dataPathPrefixList>
    <dataPathGlobList></dataPathGlobList>
    <dataTypeList></dataTypeList>
    <extras></extras>
    <receiveInitialStickyBroadcast>false</receiveInitialStickyBroadcast>
  </trigger>
  <trigger type="general_broadcast">
    <useDefaultName>true</useDefaultName>
    <name>Genereller Broadcast: wenn org.smblott.intentradio.STATE</name>
    <enabled>true</enabled>
    <action>org.smblott.intentradio.STATE</action>
    <categoryList></categoryList>
    <dataSchemeList></dataSchemeList>
    <dataAuthorityList></dataAuthorityList>
    <dataPathLiteralList></dataPathLiteralList>
    <dataPathPrefixList></dataPathPrefixList>
    <dataPathGlobList></dataPathGlobList>
    <dataTypeList></dataTypeList>
    <extras>irstate=getString("state");
irname=getString("name")</extras>
    <receiveInitialStickyBroadcast>false</receiveInitialStickyBroadcast>
  </trigger>
  <trigger type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: /fhem-amad/deviceInfo/</name>
    <enabled>true</enabled>
    <path>/fhem-amad/deviceInfo/</path>
    <port>8090</port>
    <acquireWifiLock>true</acquireWifiLock>
  </trigger>
  <trigger type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: /fhem-amad/setCommands/*</name>
    <enabled>true</enabled>
    <path>/fhem-amad/setCommands/*</path>
    <port>8090</port>
    <acquireWifiLock>true</acquireWifiLock>
  </trigger>
  <trigger type="wired_headset_plugged">
    <useDefaultName>false</useDefaultName>
    <name>Kabelgebundenes Headset Getrennt</name>
    <enabled>true</enabled>
    <plugged>false</plugged>
  </trigger>
  <trigger type="wired_headset_plugged">
    <useDefaultName>false</useDefaultName>
    <name>Kabelgebundenes Headset Verbunden</name>
    <enabled>true</enabled>
    <plugged>true</plugged>
  </trigger>
  <trigger type="media_session_changed">
    <useDefaultName>false</useDefaultName>
    <name>Medien Session verändert</name>
    <enabled>true</enabled>
    <packageNameFilter>com.amazon.mp3,com.audible.application,com.google.android.apps.youtube.kids,com.maxmpz.audioplayer,com.mxtech.videoplayer.pro,com.rhapsody.alditalk,com.sec.android.app.music,com.spotify.music,de.maxdome.app.android,deezer.android.app,com.google.android.videos,com.google.android.music,org.smblott.intentradioio,org.videolan.vlc,com.amazon.avod.thirdpartyclient,tunein.player,com.google.android.youtube</packageNameFilter>
  </trigger>
  <trigger type="nfc_state">
    <useDefaultName>false</useDefaultName>
    <name>NFC State</name>
    <enabled>true</enabled>
    <turningOn>true</turningOn>
    <on>true</on>
    <turningOff>true</turningOff>
    <off>true</off>
  </trigger>
  <trigger type="nfc_tag">
    <useDefaultName>false</useDefaultName>
    <name>NFC TagIDs</name>
    <enabled>true</enabled>
    <automagicTagID>false</automagicTagID>
    <tagID>TAG_123</tagID>
    <existingTagID></existingTagID>
  </trigger>
  <trigger type="periodic_timer">
    <useDefaultName>false</useDefaultName>
    <name>Periodischer Timer: alle 120s</name>
    <enabled>true</enabled>
    <frequency>120000</frequency>
    <wakeDevice>true</wakeDevice>
    <fixedTimes>false</fixedTimes>
    <limitTimeRange>false</limitTimeRange>
    <weekday>Mon</weekday>
    <weekday>Tue</weekday>
    <weekday>Wed</weekday>
    <weekday>Thu</weekday>
    <weekday>Fri</weekday>
    <weekday>Sat</weekday>
    <weekday>Sun</weekday>
    <hourFrom>8</hourFrom>
    <minuteFrom>0</minuteFrom>
    <hourTo>17</hourTo>
    <minuteTo>0</minuteTo>
    <allowInDeviceIdle>true</allowInDeviceIdle>
    <likeAlarmClock>false</likeAlarmClock>
  </trigger>
  <trigger type="sms_receive">
    <useDefaultName>false</useDefaultName>
    <name>SMS Empfangen: Alle</name>
    <enabled>true</enabled>
    <allSender>true</allSender>
    <senders></senders>
    <containedString></containedString>
    <abortBroadcast>false</abortBroadcast>
  </trigger>
  <trigger type="voice_command_requested">
    <useDefaultName>true</useDefaultName>
    <name>Sprachbefehl angefordert</name>
    <enabled>true</enabled>
  </trigger>
  <trigger type="power_connected">
    <useDefaultName>true</useDefaultName>
    <name>Stromversorgung: Angeschlossen</name>
    <enabled>true</enabled>
    <powerConnected>true</powerConnected>
    <chargingACAdapter>true</chargingACAdapter>
    <chargingUSB>true</chargingUSB>
    <chargingWireless>true</chargingWireless>
  </trigger>
  <trigger type="power_connected">
    <useDefaultName>true</useDefaultName>
    <name>Stromversorgung: Entfernt</name>
    <enabled>true</enabled>
    <powerConnected>false</powerConnected>
    <chargingACAdapter>true</chargingACAdapter>
    <chargingUSB>true</chargingUSB>
    <chargingWireless>true</chargingWireless>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>false</useDefaultName>
    <name>Systemeinstellung verändert: System next_alarm</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>next_alarm_formatted</settingName>
    <variable>setting</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System screen_brightness</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>screen_brightness</settingName>
    <variable>screenBrightness</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System screen_brightness_mode</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>screen_brightness_mode</settingName>
    <variable>screenBrightnessMode</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System volume_music_bt_a2dp</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_music_bt_a2dp</settingName>
    <variable>volume</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System volume_music_headphone</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_music_headphone</settingName>
    <variable>volume</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>false</useDefaultName>
    <name>Systemeinstellung verändert: System volume_music_headset</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_music_headset</settingName>
    <variable>volume</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System volume_music_speaker</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_music_speaker</settingName>
    <variable>volume</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System volume_ring</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_ring</settingName>
    <variable>volumeRingSound</variable>
  </trigger>
  <trigger type="system_setting_changed">
    <useDefaultName>true</useDefaultName>
    <name>Systemeinstellung verändert: System volume_ring_speaker</name>
    <enabled>true</enabled>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_ring_speaker</settingName>
    <variable>volumeNotification</variable>
  </trigger>
  <trigger type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Alle / Immer unterbrechen</name>
    <enabled>true</enabled>
    <interruptionsMode>OFF</interruptionsMode>
  </trigger>
  <trigger type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Keine / Nicht unterbrechen</name>
    <enabled>true</enabled>
    <interruptionsMode>NO_INTERRUPTIONS</interruptionsMode>
  </trigger>
  <trigger type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Nur Wecker (Android 6+)</name>
    <enabled>true</enabled>
    <interruptionsMode>ALARMS_ONLY</interruptionsMode>
  </trigger>
  <trigger type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen</name>
    <enabled>true</enabled>
    <interruptionsMode>IMPORTANT_INTERRUPTIONS</interruptionsMode>
  </trigger>
  <trigger type="wifi_disconnected">
    <useDefaultName>false</useDefaultName>
    <name>WLAN Getrennt: toGo</name>
    <enabled>true</enabled>
    <all>false</all>
    <ssidList>{global_apssid}</ssidList>
  </trigger>
  <trigger type="wifi_connected">
    <useDefaultName>false</useDefaultName>
    <name>WLAN Verbunden: toGo</name>
    <enabled>true</enabled>
    <all>false</all>
    <ssidList>{global_apssid}</ssidList>
  </trigger>
  <condition type="app_task_running">
    <useDefaultName>false</useDefaultName>
    <name>App Task läuft:  App (neuster)</name>
    <method>CLASSIC</method>
    <packageNameList>{param_app}</packageNameList>
    <checkMostRecentAppTaskOnly>true</checkMostRecentAppTaskOnly>
  </condition>
  <condition type="app_task_running">
    <useDefaultName>true</useDefaultName>
    <name>App Task läuft: {global_activetask} (neuster)</name>
    <method>CLASSIC</method>
    <packageNameList>{global_activetask}</packageNameList>
    <checkMostRecentAppTaskOnly>true</checkMostRecentAppTaskOnly>
  </condition>
  <condition type="notification_status_bar_displayed">
    <useDefaultName>false</useDefaultName>
    <name>Benachrichtigung in Statusbar angezeigt: Automagic</name>
    <packageNameFilter>ch.gridvision.ppam.androidautomagic</packageNameFilter>
    <all>true</all>
    <notificationID>1</notificationID>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>false</ignoreOngoing>
  </condition>
  <condition type="notification_status_bar_displayed">
    <useDefaultName>false</useDefaultName>
    <name>Benachrichtigung in Statusbar angezeigt: Telegram Messenger</name>
    <packageNameFilter>org.telegram.messenger</packageNameFilter>
    <all>true</all>
    <notificationID>1</notificationID>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>false</ignoreOngoing>
  </condition>
  <condition type="notification_status_bar_displayed">
    <useDefaultName>false</useDefaultName>
    <name>Benachrichtigung in Statusbar angezeigt: WhatsApp</name>
    <packageNameFilter>com.whatsapp</packageNameFilter>
    <all>true</all>
    <notificationID>1</notificationID>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
    <ignoreRegular>false</ignoreRegular>
    <ignoreOngoing>false</ignoreOngoing>
  </condition>
  <condition type="bluetooth_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth eingeschaltet</name>
  </condition>
  <condition type="bluetooth_device_connected">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbunden: Beliebiges Geräte</name>
    <any>true</any>
    <deviceAddress></deviceAddress>
    <deviceName></deviceName>
    <bluetoothDeviceProfile>ANY</bluetoothDeviceProfile>
  </condition>
  <condition type="bluetooth_device_connected">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution)</name>
    <any>true</any>
    <deviceAddress></deviceAddress>
    <deviceName></deviceName>
    <bluetoothDeviceProfile>A2DP</bluetoothDeviceProfile>
  </condition>
  <condition type="auto_rotate_screen_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Display automatisch drehen eingeschaltet</name>
  </condition>
  <condition type="screen_on">
    <useDefaultName>true</useDefaultName>
    <name>Display eingeschaltet</name>
  </condition>
  <condition type="screen_orientation">
    <useDefaultName>true</useDefaultName>
    <name>Display Orientierung: Portrait</name>
    <portrait>true</portrait>
  </condition>
  <condition type="dock_state">
    <useDefaultName>true</useDefaultName>
    <name>Dock Status: Docked</name>
    <dockedCar>true</dockedCar>
    <dockedDesk>true</dockedDesk>
    <dockedHighEndDesk>true</dockedHighEndDesk>
    <dockedLowEndDesk>true</dockedLowEndDesk>
    <dockedSpecial>true</dockedSpecial>
    <undocked>false</undocked>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: airpcount &lt; 11</name>
    <expression>airpcount &lt; 11</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: Airplanemode</name>
    <expression>param_syscmd == "airplanemodeON"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: All</name>
    <expression>param_app == "All"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: amadcmd == "firstrun"</name>
    <expression>amadcmd == "firstrun"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: Automagic</name>
    <expression>param_app == "Automagic"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: Clear Automagic Meldungen"</name>
    <expression>request_path == "/fhem-amad/setCommands/clearnotificationbar"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: closeCall"</name>
    <expression>request_path == "/fhem-amad/setCommands/closeCall"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: contains(value, " und ")</name>
    <expression>contains(value, " und ")</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: currentFlowsetUpdate"</name>
    <expression>request_path == "/fhem-amad/setCommands/currentFlowsetUpdate"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: do not Disturb"</name>
    <expression>request_path == "/fhem-amad/setCommands/donotdisturb"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: fhemcmd == "fhemfunc"</name>
    <expression>fhemcmd == "fhemfunc"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: fhemcmd == "readingsval"</name>
    <expression>fhemcmd == "readingsval"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: fhemcmd == "set"</name>
    <expression>fhemcmd == "set"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: fhemcmd == "setreading"</name>
    <expression>fhemcmd == "setreading"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: fhemcmd == "voiceinputvalue"</name>
    <expression>fhemcmd == "voiceinputvalue"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: flowRun"</name>
    <expression>request_path == "/fhem-amad/setCommands/flowRun"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: flowState"</name>
    <expression>request_path == "/fhem-amad/setCommands/flowState"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: getAndroidSDKVersion() &gt;= "16"</name>
    <expression>getAndroidSDKVersion() &gt;= "16"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: getAndroidSDKVersion() &gt;= "19"</name>
    <expression>getAndroidSDKVersion() &gt;= "19"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: getAndroidSDKVersion() &gt;= "21"</name>
    <expression>getAndroidSDKVersion() &gt;= "21"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: global_activetask != null</name>
    <expression>global_activetask != null</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: global_fhemctlmode != "thirdPartControl"</name>
    <expression>global_fhemctlmode != "thirdPartControl"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: global_fhemip != null or global_bridgeport != null</name>
    <expression>global_fhemip != null or global_bridgeport != null</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: global_userflowstate != "none"</name>
    <expression>global_userflowstate != "none"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: header_amadid == {global_amadid}</name>
    <expression>header_amadid == {global_amadid}</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: installFlow"</name>
    <expression>request_path == "/fhem-amad/setCommands/installFlow"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: keyguard == "locked"</name>
    <expression>keyguard == "locked"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: Leon == "Gaultier"</name>
    <expression>Leon == "Gaultier"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: multimediaControl"</name>
    <expression>request_path == "/fhem-amad/setCommands/multimediaControl"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: nfc"</name>
    <expression>request_path == "/fhem-amad/setCommands/setnfc"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: notifysnd"</name>
    <expression>request_path == "/fhem-amad/setCommands/playnotifysnd"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: openApp"</name>
    <expression>request_path == "/fhem-amad/setCommands/openApp"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: openCall"</name>
    <expression>request_path == "/fhem-amad/setCommands/openCall"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: openURL"</name>
    <expression>request_path == "/fhem-amad/setCommands/openURL"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: package_name == {global_activetask}</name>
    <expression>package_name == {global_activetask}</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_bluetooth == "off"</name>
    <expression>param_bluetooth == "off"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_bluetooth == "on"</name>
    <expression>param_bluetooth == "on"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_button == "mediaBack"</name>
    <expression>param_button == "mediaBack"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_button == "mediaNext"</name>
    <expression>param_button == "mediaNext"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_button == "mediaPlay"</name>
    <expression>param_button == "mediaPlay"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_button == "mediaStop"</name>
    <expression>param_button == "mediaStop"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_disturbmod == "alarmClockOnly"</name>
    <expression>param_disturbmod == "alarmClockOnly"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_disturbmod == "always"</name>
    <expression>param_disturbmod == "always"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_disturbmod == "never"</name>
    <expression>param_disturbmod == "never"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_disturbmod == "onlyImportant"</name>
    <expression>param_disturbmod == "onlyImportant"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_flowstate == "active"</name>
    <expression>param_flowstate == "active"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_flowstate == "active" or param_flowstate == "inactive"</name>
    <expression>param_flowstate == "active" or param_flowstate == "inactive"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_fullscreen == "off"</name>
    <expression>param_fullscreen == "off"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_fullscreen == "on"</name>
    <expression>param_fullscreen == "on"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_lockmod == "lock"</name>
    <expression>param_lockmod == "lock"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: param_msgvol == "none"</name>
    <expression>param_msgvol == "none"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_nfc == "off"</name>
    <expression>param_nfc == "off"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_nfc == "on"</name>
    <expression>param_nfc == "on"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_notifyfile == "RedAlert.mp3"</name>
    <expression>param_notifyfile == "RedAlert.mp3"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: param_option</name>
    <expression>param_hanguptime != "none"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_orientation == "auto"</name>
    <expression>param_orientation == "auto"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_orientation == "landscape"</name>
    <expression>param_orientation == "landscape"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_orientation == "portrait"</name>
    <expression>param_orientation == "portrait"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_picturecamera == "Back"</name>
    <expression>param_picturecamera == "Back"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_pictureresolution == "1024x768"</name>
    <expression>param_pictureresolution == "1024x768"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_pictureresolution == "1280x720"</name>
    <expression>param_pictureresolution == "1280x720"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_pictureresolution == "1600x1200"</name>
    <expression>param_pictureresolution == "1600x1200"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_pictureresolution == "1920x1080"</name>
    <expression>param_pictureresolution == "1920x1080"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_pictureresolution == "800x600"</name>
    <expression>param_pictureresolution == "800x600"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_screen=="off"</name>
    <expression>param_screen=="off"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_screen=="on"</name>
    <expression>param_screen=="on"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_screenshotresolution == "1280x720"</name>
    <expression>param_screenshotresolution == "1280x720"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_screenshotresolution == "1920x1080"</name>
    <expression>param_screenshotresolution == "1920x1080"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: param_screenshotresolution == "1920x1200"</name>
    <expression>param_screenshotresolution == "1920x1200"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: Reboot</name>
    <expression>param_syscmd == "reboot"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: request_path == "/fhem-amad/setCommands/setBrightnessMode"</name>
    <expression>request_path == "/fhem-amad/setCommands/setBrightnessMode"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: respreadingsval != "kaputt" and respreadingsval != "none"</name>
    <expression>respreadingsval != "kaputt" and respreadingsval != "none"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: respreadingsval == "online"</name>
    <expression>respreadingsval == "online"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: scrcount &lt; 5</name>
    <expression>scrcount &lt; 5</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: screenMsg"</name>
    <expression>request_path == "/fhem-amad/setCommands/screenMsg"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: sendIntent"</name>
    <expression>request_path == "/fhem-amad/setCommands/sendIntent"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: sendSms"</name>
    <expression>request_path == "/fhem-amad/setCommands/sendSms"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setAlarm"</name>
    <expression>request_path == "/fhem-amad/setCommands/setAlarm"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setBluetooth"</name>
    <expression>request_path == "/fhem-amad/setCommands/setbluetooth"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setBrightness"</name>
    <expression>request_path == "/fhem-amad/setCommands/setBrightness"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setBTDevice"</name>
    <expression>request_path == "/fhem-amad/setCommands/setbtdevice"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setNotifiVolume"</name>
    <expression>request_path == "/fhem-amad/setCommands/setNotifiVolume"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setRingSoundVolume"</name>
    <expression>request_path == "/fhem-amad/setCommands/setRingSoundVolume"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setScreenFullscreen"</name>
    <expression>request_path == "/fhem-amad/setCommands/setScreenFullscreen"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setScreenlock"</name>
    <expression>request_path == "/fhem-amad/setCommands/screenlock"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setScreenOnOff"</name>
    <expression>request_path == "/fhem-amad/setCommands/setScreenOnOff"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setScreenOrientation"</name>
    <expression>request_path == "/fhem-amad/setCommands/setScreenOrientation"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setTimer"</name>
    <expression>request_path == "/fhem-amad/setCommands/setTimer"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setVibrate"</name>
    <expression>request_path == "/fhem-amad/setCommands/setvibrate"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setVoiceCommand"</name>
    <expression>request_path == "/fhem-amad/setCommands/setvoicecmd"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: setVolume"</name>
    <expression>request_path == "/fhem-amad/setCommands/setVolume"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: showhomescreen"</name>
    <expression>request_path == "/fhem-amad/setCommands/showhomescreen"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: Shutdown</name>
    <expression>param_syscmd == "shutdown"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: sprachassi == "ja"</name>
    <expression>sprachassi == "ja"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: sprachassi == "nein"</name>
    <expression>sprachassi == "nein"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: startDaydream"</name>
    <expression>request_path == "/fhem-amad/setCommands/startDaydream"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: System Command"</name>
    <expression>request_path == "/fhem-amad/setCommands/systemcommand"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: takepicture</name>
    <expression>request_path == "/fhem-amad/setCommands/takepicture"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: takescreenshot</name>
    <expression>request_path == "/fhem-amad/setCommands/takescreenshot"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: togocount &lt; 6</name>
    <expression>togocount &lt; 6</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Akku Ladestand: grösser als 0%"</name>
    <expression>trigger == "Akku Ladestand: grösser als 0%"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "App Task Beendet" or trigger == "App Task Gestartet"</name>
    <expression>trigger == "App Task Beendet" or trigger == "App Task Gestartet"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "App Task Gestartet" or trigger == "Periodischer Timer: alle 120s"</name>
    <expression>trigger == "App Task Gestartet" or trigger == "Periodischer Timer: alle 120s"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" 
 or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp"</name>
    <expression>trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Benachrichtigung in Statusbar angezeigt: org.telegram.messenger"</name>
    <expression>trigger == "Benachrichtigung in Statusbar angezeigt: org.telegram.messenger"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Bluetooth Status: Schaltet aus, Aus" or trigger == "Bluetooth Gerät verbunden: Alle Geräte" or trigger == "Bluetooth Gerät getrennt: Alle Geräte" or trigger == "Bluetooth Status: Schaltet ein, Ein" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Bluetooth Status: Schaltet aus, Aus"
 or trigger == "Bluetooth Gerät verbunden: Alle Geräte"
 or trigger == "Bluetooth Gerät getrennt: Alle Geräte"
 or trigger == "Bluetooth Status: Schaltet ein, Ein"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Daydream Status: Gestartet"</name>
    <expression>trigger == "Daydream Status: Gestartet"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Daydream Status: Gestartet" or trigger == "Daydream Status: Gestoppt"</name>
    <expression>trigger == "Daydream Status: Gestartet"
 or trigger == "Daydream Status: Gestoppt"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Display Orientierung: Landscape" or trigger == "Display Orientierung: Portrait" or trigger == "Display Status: Ein" or trigger == "Display Status: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Display Orientierung: Landscape"
 or trigger == "Display Orientierung: Portrait"
 or trigger == "Display Status: Ein"
 or trigger == "Display Status: Aus"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Display Status: Aus" or trigger == "Display Status: Ein" or udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Display Status: Aus"
 or trigger == "Display Status: Ein"
 or udef_trigger == "setLockPin"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Dock Event: Docked" or trigger == "Dock Event: Undocked" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Dock Event: Docked"
 or trigger == "Dock Event: Undocked"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle"</name>
    <expression>trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Flugmodus: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Flugmodus: Aus"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT"
or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS"
or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE"
or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE"
or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE"</name>
    <expression>trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" and header_amadid == {global_amadid}</name>
    <expression>trigger == "HTTP Request: /fhem-amad/deviceInfo/" and header_amadid == {global_amadid}</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*"</name>
    <expression>trigger == "HTTP Request: /fhem-amad/setCommands/*"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Kabelgebundenes Headset Verbunden" or trigger == "Kabelgebundenes Headset Getrennt"</name>
    <expression>trigger == "Kabelgebundenes Headset Verbunden" or trigger == "Kabelgebundenes Headset Getrennt"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Medien Session verändert" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Medien Session verändert"
  or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Periodischer Timer: alle 120s"</name>
    <expression>trigger == "Periodischer Timer: alle 120s"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Periodischer Timer: alle 120s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Periodischer Timer: alle 120s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "SMS Empfangen: Alle"</name>
    <expression>trigger == "SMS Empfangen: Alle"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Sprachbefehl angefordert"</name>
    <expression>trigger == "Sprachbefehl angefordert"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Systemeinstellung verändert: System next_alarm" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Systemeinstellung verändert: System next_alarm"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Systemeinstellung verändert: System screen_brightness"</name>
    <expression>trigger == "Systemeinstellung verändert: System screen_brightness"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Systemeinstellung verändert: System screen_brightness_mode"</name>
    <expression>trigger == "Systemeinstellung verändert: System screen_brightness_mode"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" or trigger == "Systemeinstellung verändert: System volume_music_speaker" or trigger == "Systemeinstellung verändert: System volume_music_headphone" or trigger == "Systemeinstellung verändert: System volume_music_headset"</name>
    <expression>trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp"
 or trigger == "Systemeinstellung verändert: System volume_music_speaker"
 or trigger == "Systemeinstellung verändert: System volume_music_headphone"
 or trigger == "Systemeinstellung verändert: System volume_music_headset"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Systemeinstellung verändert: System volume_ring"</name>
    <expression>trigger == "Systemeinstellung verändert: System volume_ring"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker"</name>
    <expression>trigger == "Systemeinstellung verändert: System volume_ring_speaker"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "Unterbrechnungen-Modus: Alle / Immer unterbrechen" or trigger == "Unterbrechnungen-Modus: Keine / Nicht unterbrechen" or trigger == "Unterbrechnungen-Modus: Nur Wecker (Android 6+)" or trigger == "Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>trigger == "Unterbrechnungen-Modus: Alle / Immer unterbrechen"
or trigger == "Unterbrechnungen-Modus: Keine / Nicht unterbrechen"
or trigger == "Unterbrechnungen-Modus: Nur Wecker (Android 6+)"
or trigger == "Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen"
or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "WLAN Getrennt: toGo"</name>
    <expression>trigger == "WLAN Getrennt: toGo"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: trigger == "WLAN Verbunden: toGo"</name>
    <expression>trigger == "WLAN Verbunden: toGo"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: ttsMsg"</name>
    <expression>request_path == "/fhem-amad/setCommands/ttsMsg"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>false</useDefaultName>
    <name>Expression: ttsMsgLang"</name>
    <expression>param_msglang == "en"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</name>
    <expression>udef_trigger == "setLockPin"
 or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: value != ""</name>
    <expression>value != ""</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: value == "ja"</name>
    <expression>value == "ja"</expression>
  </condition>
  <condition type="expression">
    <useDefaultName>true</useDefaultName>
    <name>Expression: value == "nein"</name>
    <expression>value == "nein"</expression>
  </condition>
  <condition type="flow_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Flow Aktiv: First Run Assistant</name>
    <flowName>First Run Assistant</flowName>
  </condition>
  <condition type="flow_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Flow Aktiv: Informations</name>
    <flowName>Informations</flowName>
  </condition>
  <condition type="flow_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Flow Aktiv: Send Data to AMADCommBridge</name>
    <flowName>Send Data to AMADCommBridge</flowName>
  </condition>
  <condition type="flow_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Flow Aktiv: SetCommands</name>
    <flowName>SetCommands</flowName>
  </condition>
  <condition type="flow_enabled">
    <useDefaultName>true</useDefaultName>
    <name>Flow Aktiv: {global_userflowstate}</name>
    <flowName>{global_userflowstate}</flowName>
  </condition>
  <condition type="device_storage_space">
    <useDefaultName>true</useDefaultName>
    <name>Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/sdcard)</name>
    <path>/sdcard</path>
    <freeSpace>true</freeSpace>
    <over>true</over>
    <size>1024</size>
  </condition>
  <condition type="device_storage_space">
    <useDefaultName>true</useDefaultName>
    <name>Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/emulated/0)</name>
    <path>/storage/emulated/0</path>
    <freeSpace>true</freeSpace>
    <over>true</over>
    <size>1024</size>
  </condition>
  <condition type="device_storage_space">
    <useDefaultName>true</useDefaultName>
    <name>Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/sdcard0)</name>
    <path>/storage/sdcard0</path>
    <freeSpace>true</freeSpace>
    <over>true</over>
    <size>1024</size>
  </condition>
  <condition type="host_reachable">
    <useDefaultName>true</useDefaultName>
    <name>Host erreichbar: {global_fhemip}:{global_bridgeport}</name>
    <type>SOCKET</type>
    <host>{global_fhemip}</host>
    <socketPort>{global_bridgeport}</socketPort>
  </condition>
  <condition type="wired_headset_plugged">
    <useDefaultName>true</useDefaultName>
    <name>Kabelgebundenes Headset verbunden</name>
  </condition>
  <condition type="keyguard_locked">
    <useDefaultName>true</useDefaultName>
    <name>Keyguard gesperrt</name>
  </condition>
  <condition type="keyguard_secure">
    <useDefaultName>true</useDefaultName>
    <name>Keyguard mit Sicherheit</name>
  </condition>
  <condition type="music_active">
    <useDefaultName>true</useDefaultName>
    <name>Musik Aktiv</name>
  </condition>
  <condition type="power_connected">
    <useDefaultName>true</useDefaultName>
    <name>Stromversorgung: Angeschlossen</name>
    <powerConnected>true</powerConnected>
    <chargingACAdapter>true</chargingACAdapter>
    <chargingUSB>true</chargingUSB>
    <chargingWireless>true</chargingWireless>
  </condition>
  <condition type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Alle / Immer unterbrechen</name>
    <interruptionsMode>OFF</interruptionsMode>
  </condition>
  <condition type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Keine / Nicht unterbrechen</name>
    <interruptionsMode>NO_INTERRUPTIONS</interruptionsMode>
  </condition>
  <condition type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Nur Wecker (Android 6+)</name>
    <interruptionsMode>ALARMS_ONLY</interruptionsMode>
  </condition>
  <condition type="interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen</name>
    <interruptionsMode>IMPORTANT_INTERRUPTIONS</interruptionsMode>
  </condition>
  <condition type="wifi_available">
    <useDefaultName>true</useDefaultName>
    <name>WLAN verfügbar: {global_apssid}</name>
    <ssidList>{global_apssid}</ssidList>
  </condition>
  <action type="execute_flows">
    <useDefaultName>false</useDefaultName>
    <name>Abfrage</name>
    <includeFlowNamePatternList>Send Data to AMADCommBridge</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>true</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>true</returnLocalVariablesToCallingFlow>
  </action>
  <action type="speech_output">
    <useDefaultName>false</useDefaultName>
    <name>AMAD First Run Assistent Begrüßung</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Hallo und herzlich willkommen beim Einrichtungs Assistenten von Fhem Amaad. Wenn Du fortfahren möchtest antworte einfach mit ja. Wenn nicht mit nein.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="input_speech">
    <useDefaultName>false</useDefaultName>
    <name>AMAD Voice Control</name>
    <showUI>true</showUI>
    <prompt></prompt>
    <defineLanguage>true</defineLanguage>
    <language>de-DE</language>
    <useBluetoothHeadset>false</useBluetoothHeadset>
  </action>
  <action type="end_call">
    <useDefaultName>true</useDefaultName>
    <name>Anruf beenden</name>
  </action>
  <action type="launch_app">
    <useDefaultName>false</useDefaultName>
    <name>App Starten: App</name>
    <packageName>{param_app}</packageName>
    <className></className>
  </action>
  <action type="control_audio_player">
    <useDefaultName>true</useDefaultName>
    <name>Audio Player steuern: Medienknopf Play/Pause (/{kname})</name>
    <simulateMediaButton>true</simulateMediaButton>
    <broadcastAction>TOGGLE_PAUSE</broadcastAction>
    <mediaButton>KEYCODE_MEDIA_PLAY_PAUSE</mediaButton>
    <explicitComponent>true</explicitComponent>
    <packageName>{pname}</packageName>
    <className>{kname}</className>
    <appName></appName>
  </action>
  <action type="control_audio_player">
    <useDefaultName>true</useDefaultName>
    <name>Audio Player steuern: Medienknopf Stopp ({pname}/{kname})</name>
    <simulateMediaButton>true</simulateMediaButton>
    <broadcastAction>STOP</broadcastAction>
    <mediaButton>KEYCODE_MEDIA_STOP</mediaButton>
    <explicitComponent>true</explicitComponent>
    <packageName>{pname}</packageName>
    <className>{kname}</className>
    <appName></appName>
  </action>
  <action type="control_audio_player">
    <useDefaultName>true</useDefaultName>
    <name>Audio Player steuern: Medienknopf Weiter ({pname}/{kname})</name>
    <simulateMediaButton>true</simulateMediaButton>
    <broadcastAction>NEXT</broadcastAction>
    <mediaButton>KEYCODE_MEDIA_NEXT</mediaButton>
    <explicitComponent>true</explicitComponent>
    <packageName>{pname}</packageName>
    <className>{kname}</className>
    <appName></appName>
  </action>
  <action type="control_audio_player">
    <useDefaultName>true</useDefaultName>
    <name>Audio Player steuern: Medienknopf Zurück ({pname}/{kname})</name>
    <simulateMediaButton>true</simulateMediaButton>
    <broadcastAction>PREVIOUS</broadcastAction>
    <mediaButton>KEYCODE_MEDIA_PREVIOUS</mediaButton>
    <explicitComponent>true</explicitComponent>
    <packageName>{pname}</packageName>
    <className>{kname}</className>
    <appName></appName>
  </action>
  <action type="notification_screen">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung auf Bildschirm: [AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt! (lange)</name>
    <showText>true</showText>
    <text>[AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt!</text>
    <widgetName></widgetName>
    <width>200</width>
    <height>250</height>
    <stretchToFillArea>false</stretchToFillArea>
    <opacity>1.0</opacity>
    <durationLong>true</durationLong>
    <customPosition>false</customPosition>
    <gravityType>TOP_LEFT</gravityType>
    <xOffset>0</xOffset>
    <yOffset>0</yOffset>
  </action>
  <action type="notification_screen">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung auf Bildschirm: {param_message} (lange)</name>
    <showText>true</showText>
    <text>{param_message}</text>
    <widgetName></widgetName>
    <width>200</width>
    <height>250</height>
    <stretchToFillArea>false</stretchToFillArea>
    <opacity>1.0</opacity>
    <durationLong>true</durationLong>
    <customPosition>false</customPosition>
    <gravityType>TOP_LEFT</gravityType>
    <xOffset>0</xOffset>
    <yOffset>0</yOffset>
  </action>
  <action type="notification_screen">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung auf Bildschirm: {value} (lange)</name>
    <showText>true</showText>
    <text>{value}</text>
    <widgetName></widgetName>
    <width>200</width>
    <height>250</height>
    <stretchToFillArea>false</stretchToFillArea>
    <opacity>1.0</opacity>
    <durationLong>true</durationLong>
    <customPosition>false</customPosition>
    <gravityType>TOP_LEFT</gravityType>
    <xOffset>0</xOffset>
    <yOffset>0</yOffset>
  </action>
  <action type="remove_notification_status_bar">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung aus Statusbar entfernen: Alle</name>
    <automagicNotifications>false</automagicNotifications>
    <all>true</all>
    <notificationID>1</notificationID>
    <overall>true</overall>
    <packageName></packageName>
    <allOfApp>true</allOfApp>
    <filterNotificationID>{id}</filterNotificationID>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
  </action>
  <action type="remove_notification_status_bar">
    <useDefaultName>true</useDefaultName>
    <name>Benachrichtigung aus Statusbar entfernen: Alle (Automagic)</name>
    <automagicNotifications>true</automagicNotifications>
    <all>true</all>
    <notificationID>1</notificationID>
    <overall>false</overall>
    <packageName></packageName>
    <allOfApp>true</allOfApp>
    <filterNotificationID>{id}</filterNotificationID>
    <textMatchField>TEXT</textMatchField>
    <textMatchType>CONTAINS_TEXT</textMatchType>
    <textFilter></textFilter>
  </action>
  <action type="take_screenshot">
    <useDefaultName>false</useDefaultName>
    <name>Bildschirmfoto aufnehmen: 1280x720</name>
    <resolution>HD_720P</resolution>
    <path>/storage/emulated/0/AMADscreenshot.png</path>
  </action>
  <action type="take_screenshot">
    <useDefaultName>false</useDefaultName>
    <name>Bildschirmfoto aufnehmen: 1920x1080</name>
    <resolution>HD_FULL</resolution>
    <path>/storage/emulated/0/AMADscreenshot.png</path>
  </action>
  <action type="take_screenshot">
    <useDefaultName>false</useDefaultName>
    <name>Bildschirmfoto aufnehmen: 1920x1200</name>
    <resolution>FULL</resolution>
    <path>/storage/emulated/0/AMADscreenshot.png</path>
  </action>
  <action type="set_bluetooth_state">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth ein-/ausschalten: Aus</name>
    <enable>false</enable>
  </action>
  <action type="set_bluetooth_state">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth ein-/ausschalten: Ein</name>
    <enable>true</enable>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdeviceone}</name>
    <bluetoothDeviceProfile>A2DP</bluetoothDeviceProfile>
    <deviceAddress>{param_btdeviceone}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdevicetwo}</name>
    <bluetoothDeviceProfile>A2DP</bluetoothDeviceProfile>
    <deviceAddress>{param_btdevicetwo}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdeviceone}</name>
    <bluetoothDeviceProfile>INPUT_DEVICE</bluetoothDeviceProfile>
    <deviceAddress>{param_btdeviceone}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdevicetwo}</name>
    <bluetoothDeviceProfile>INPUT_DEVICE</bluetoothDeviceProfile>
    <deviceAddress>{param_btdevicetwo}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdeviceone}</name>
    <bluetoothDeviceProfile>HEADSET</bluetoothDeviceProfile>
    <deviceAddress>{param_btdeviceone}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdevicetwo}</name>
    <bluetoothDeviceProfile>HEADSET</bluetoothDeviceProfile>
    <deviceAddress>{param_btdevicetwo}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdeviceone}</name>
    <bluetoothDeviceProfile>PAN</bluetoothDeviceProfile>
    <deviceAddress>{param_btdeviceone}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdevicetwo}</name>
    <bluetoothDeviceProfile>PAN</bluetoothDeviceProfile>
    <deviceAddress>{param_btdevicetwo}</deviceAddress>
    <deviceName></deviceName>
    <connect>false</connect>
  </action>
  <action type="connect_disconnect_bluetooth_device">
    <useDefaultName>true</useDefaultName>
    <name>Bluetooth Gerät verbinden/trennen: Verbinden Advanced Audio Distribution {param_swtobtdevicemac}</name>
    <bluetoothDeviceProfile>A2DP</bluetoothDeviceProfile>
    <deviceAddress>{param_swtobtdevicemac}</deviceAddress>
    <deviceName></deviceName>
    <connect>true</connect>
  </action>
  <action type="send_broadcast">
    <useDefaultName>true</useDefaultName>
    <name>Broadcast senden: {param_action} </name>
    <intentAction>{param_action}</intentAction>
    <categoryListEnabled>false</categoryListEnabled>
    <categoryList>android.intent.category.DEFAULT</categoryList>
    <dataEnabled>false</dataEnabled>
    <data></data>
    <dataTypeEnabled>false</dataTypeEnabled>
    <dataType>text/plain</dataType>
    <explicitComponent>false</explicitComponent>
    <packageName></packageName>
    <className></className>
    <flagList>FLAG_ACTIVITY_NEW_TASK</flagList>
    <extras>putString("{param_exkey1}", "{param_exval1}");
putString("{param_exkey2}", "{param_exval2}");</extras>
    <waitForResult>false</waitForResult>
    <accessResultExtras></accessResultExtras>
  </action>
  <action type="delete_files">
    <useDefaultName>true</useDefaultName>
    <name>Dateien löschen: /sdcard/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</name>
    <pathList>/sdcard/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</pathList>
    <showProgress>true</showProgress>
  </action>
  <action type="delete_files">
    <useDefaultName>true</useDefaultName>
    <name>Dateien löschen: /storage/emulated/0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</name>
    <pathList>/storage/emulated/0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</pathList>
    <showProgress>true</showProgress>
  </action>
  <action type="delete_files">
    <useDefaultName>true</useDefaultName>
    <name>Dateien löschen: /storage/emulated/0/Download/installFlow_{param_flowname}</name>
    <pathList>/storage/emulated/0/Download/installFlow_{param_flowname}</pathList>
    <showProgress>true</showProgress>
  </action>
  <action type="delete_files">
    <useDefaultName>true</useDefaultName>
    <name>Dateien löschen: /storage/sdcard0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</name>
    <pathList>/storage/sdcard0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</pathList>
    <showProgress>true</showProgress>
  </action>
  <action type="delete_files">
    <useDefaultName>true</useDefaultName>
    <name>Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}</name>
    <pathList>/storage/sdcard0/Download/installFlow_{param_flowname}</pathList>
    <showProgress>true</showProgress>
  </action>
  <action type="set_auto_rotate_screen_state">
    <useDefaultName>true</useDefaultName>
    <name>Display automatisch drehen ein-/ausschalten: Aus</name>
    <enable>false</enable>
  </action>
  <action type="set_auto_rotate_screen_state">
    <useDefaultName>true</useDefaultName>
    <name>Display automatisch drehen ein-/ausschalten: Ein</name>
    <enable>true</enable>
  </action>
  <action type="download_url">
    <useDefaultName>true</useDefaultName>
    <name>Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml nach /sdcard/AMADNG_FlowsetUpdate</name>
    <url>http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml</url>
    <directory>/sdcard/AMADNG_FlowsetUpdate</directory>
    <showProgress>true</showProgress>
  </action>
  <action type="download_url">
    <useDefaultName>true</useDefaultName>
    <name>Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml nach /storage/emulated/0/AMADNG_FlowsetUpdate</name>
    <url>http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml</url>
    <directory>/storage/emulated/0/AMADNG_FlowsetUpdate</directory>
    <showProgress>true</showProgress>
  </action>
  <action type="download_url">
    <useDefaultName>true</useDefaultName>
    <name>Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml nach /storage/sdcard0/AMADNG_FlowsetUpdate</name>
    <url>http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml</url>
    <directory>/storage/sdcard0/AMADNG_FlowsetUpdate</directory>
    <showProgress>true</showProgress>
  </action>
  <action type="download_url">
    <useDefaultName>true</useDefaultName>
    <name>Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/emulated/0/Download</name>
    <url>http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname}</url>
    <directory>/storage/emulated/0/Download</directory>
    <showProgress>true</showProgress>
  </action>
  <action type="download_url">
    <useDefaultName>true</useDefaultName>
    <name>Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/sdcard0/Download</name>
    <url>http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname}</url>
    <directory>/storage/sdcard0/Download</directory>
    <showProgress>true</showProgress>
  </action>
  <action type="input_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Eingabedialog: AMADCommBridge Port Einzeiliger Text Bitte gebe den Port der AMADCommBridge vom FHEM Server an.</name>
    <title>AMADCommBridge Port</title>
    <inputDialogType>SINGLE_LINE_TEXT</inputDialogType>
    <prompt>Bitte gebe den Port der AMADCommBridge vom FHEM Server an.</prompt>
    <inputValues></inputValues>
    <defaultValue>8090</defaultValue>
    <titleFontSize>DEFAULT</titleFontSize>
    <promptFontSize>DEFAULT</promptFontSize>
    <fontSize>DEFAULT</fontSize>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
    <defaultValueOnTimeout></defaultValueOnTimeout>
    <showWhenLocked>false</showWhenLocked>
    <turnScreenOn>false</turnScreenOn>
    <keepScreenOn>false</keepScreenOn>
    <enlargeDialogWidth>false</enlargeDialogWidth>
  </action>
  <action type="input_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Eingabedialog: Android Device IP Adresse Einzeiliger Text Bitte gebe die IP Adresse Deines Androidgerätes an. NUR IP kein FQDN!!!</name>
    <title>Android Device IP Adresse</title>
    <inputDialogType>SINGLE_LINE_TEXT</inputDialogType>
    <prompt>Bitte gebe die IP Adresse Deines Androidgerätes an. NUR IP kein FQDN!!!</prompt>
    <inputValues></inputValues>
    <defaultValue>192.168.x.x</defaultValue>
    <titleFontSize>DEFAULT</titleFontSize>
    <promptFontSize>DEFAULT</promptFontSize>
    <fontSize>DEFAULT</fontSize>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
    <defaultValueOnTimeout></defaultValueOnTimeout>
    <showWhenLocked>false</showWhenLocked>
    <turnScreenOn>false</turnScreenOn>
    <keepScreenOn>false</keepScreenOn>
    <enlargeDialogWidth>false</enlargeDialogWidth>
  </action>
  <action type="input_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Eingabedialog: FHEM Devicename Einzeiliger Text Wie soll das Device in FHEM heißen?</name>
    <title>FHEM Devicename</title>
    <inputDialogType>SINGLE_LINE_TEXT</inputDialogType>
    <prompt>Wie soll das Device in FHEM heißen?</prompt>
    <inputValues></inputValues>
    <defaultValue>TabletWohnzimmer</defaultValue>
    <titleFontSize>DEFAULT</titleFontSize>
    <promptFontSize>DEFAULT</promptFontSize>
    <fontSize>DEFAULT</fontSize>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
    <defaultValueOnTimeout></defaultValueOnTimeout>
    <showWhenLocked>false</showWhenLocked>
    <turnScreenOn>false</turnScreenOn>
    <keepScreenOn>false</keepScreenOn>
    <enlargeDialogWidth>false</enlargeDialogWidth>
  </action>
  <action type="input_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Eingabedialog: FHEM Server IP Einzeiliger Text Bitte gebe die IP Adresse oder den FQDN Deines FHEM Servers an.</name>
    <title>FHEM Server IP</title>
    <inputDialogType>SINGLE_LINE_TEXT</inputDialogType>
    <prompt>Bitte gebe die IP Adresse oder den FQDN Deines FHEM Servers an.</prompt>
    <inputValues></inputValues>
    <defaultValue>192.168.x.x</defaultValue>
    <titleFontSize>DEFAULT</titleFontSize>
    <promptFontSize>DEFAULT</promptFontSize>
    <fontSize>DEFAULT</fontSize>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
    <defaultValueOnTimeout></defaultValueOnTimeout>
    <showWhenLocked>false</showWhenLocked>
    <turnScreenOn>false</turnScreenOn>
    <keepScreenOn>false</keepScreenOn>
    <enlargeDialogWidth>false</enlargeDialogWidth>
  </action>
  <action type="input_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Eingabedialog: Wünschst Du einen sprachgestützten oder dialoggestützten Installationsassistanten? Einfachauswahl Menü Sprache,Dialog (15s)</name>
    <title>Wünschst Du einen sprachgestützten oder dialoggestützten Installationsassistanten?</title>
    <inputDialogType>SINGLE_CHOICE_MENU</inputDialogType>
    <prompt></prompt>
    <inputValues>Sprache,Dialog</inputValues>
    <defaultValue></defaultValue>
    <titleFontSize>DEFAULT</titleFontSize>
    <promptFontSize>DEFAULT</promptFontSize>
    <fontSize>DEFAULT</fontSize>
    <timeoutEnabled>true</timeoutEnabled>
    <timeout>15000</timeout>
    <defaultValueOnTimeout>Sprache</defaultValueOnTimeout>
    <showWhenLocked>false</showWhenLocked>
    <turnScreenOn>false</turnScreenOn>
    <keepScreenOn>false</keepScreenOn>
    <enlargeDialogWidth>false</enlargeDialogWidth>
  </action>
  <action type="execute_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows ausführen: Send Data to AMADCommBridge</name>
    <includeFlowNamePatternList>Send Data to AMADCommBridge</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>false</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>false</returnLocalVariablesToCallingFlow>
  </action>
  <action type="execute_flows">
    <useDefaultName>false</useDefaultName>
    <name>Flows ausführen: Send Data to AMADCommBridge mit warten</name>
    <includeFlowNamePatternList>Send Data to AMADCommBridge</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>true</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>false</returnLocalVariablesToCallingFlow>
  </action>
  <action type="execute_flows">
    <useDefaultName>false</useDefaultName>
    <name>Flows ausführen: udef_trigger setLockPin</name>
    <includeFlowNamePatternList>Informations</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>true</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>false</returnLocalVariablesToCallingFlow>
  </action>
  <action type="execute_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows ausführen: Update AMAD Flowset</name>
    <includeFlowNamePatternList>Update AMAD Flowset</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>false</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>false</returnLocalVariablesToCallingFlow>
  </action>
  <action type="execute_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows ausführen: VoiceControl</name>
    <includeFlowNamePatternList>VoiceControl</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>false</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>false</returnLocalVariablesToCallingFlow>
  </action>
  <action type="execute_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows ausführen: {param_flowname}</name>
    <includeFlowNamePatternList>{param_flowname}</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
    <skipDisabledFlowsWithoutError>false</skipDisabledFlowsWithoutError>
    <waitForFlowsToFinish>false</waitForFlowsToFinish>
    <returnLocalVariablesToCallingFlow>false</returnLocalVariablesToCallingFlow>
  </action>
  <action type="delete_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows löschen: First Run Assistant</name>
    <flowNameList>First Run Assistant</flowNameList>
    <deleteUnusedObjects>true</deleteUnusedObjects>
  </action>
  <action type="delete_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows löschen: MultimediaControl</name>
    <flowNameList>MultimediaControl</flowNameList>
    <deleteUnusedObjects>true</deleteUnusedObjects>
  </action>
  <action type="import_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows/Widgets importieren: /sdcard/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</name>
    <path>/sdcard/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</path>
    <replace>true</replace>
  </action>
  <action type="import_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows/Widgets importieren: /storage/emulated/0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</name>
    <path>/storage/emulated/0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</path>
    <replace>true</replace>
  </action>
  <action type="import_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows/Widgets importieren: /storage/emulated/0/Download/installFlow_{param_flowname}</name>
    <path>/storage/emulated/0/Download/installFlow_{param_flowname}</path>
    <replace>true</replace>
  </action>
  <action type="import_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows/Widgets importieren: /storage/sdcard0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</name>
    <path>/storage/sdcard0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</path>
    <replace>true</replace>
  </action>
  <action type="import_flows">
    <useDefaultName>true</useDefaultName>
    <name>Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname}</name>
    <path>/storage/sdcard0/Download/installFlow_{param_flowname}</path>
    <replace>true</replace>
  </action>
  <action type="set_airplane_mode">
    <useDefaultName>true</useDefaultName>
    <name>Flugmodus ein-/ausschalten: Ein</name>
    <method>SYSTEM_SETTING</method>
    <enable>true</enable>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1024x768</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>0</cameraId>
    <pictureSize>1024*768</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>auto</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1024x768 Front</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>1</cameraId>
    <pictureSize>1024*768</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>fixed</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1280x720</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>0</cameraId>
    <pictureSize>1280*720</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>auto</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1280x720 Front</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>1</cameraId>
    <pictureSize>1280*720</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>fixed</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1600x1200</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>0</cameraId>
    <pictureSize>1600*1200</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>auto</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1600x1200 Front</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>1</cameraId>
    <pictureSize>176*144</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>fixed</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1920x1080</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>0</cameraId>
    <pictureSize>1920*1080</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>auto</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1920x1080 Front</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>1</cameraId>
    <pictureSize>176*144</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>fixed</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 800x600</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>0</cameraId>
    <pictureSize>800*600</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>auto</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="take_picture">
    <useDefaultName>false</useDefaultName>
    <name>Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 800x600 Front</name>
    <useCameraApp>false</useCameraApp>
    <path>/storage/emulated/0/AMADpicture.jpg</path>
    <cameraId>1</cameraId>
    <pictureSize>800*600</pictureSize>
    <zoom>100</zoom>
    <sceneMode>auto</sceneMode>
    <colorEffect>none</colorEffect>
    <flashMode></flashMode>
    <whiteBalance>auto</whiteBalance>
    <focusMode>fixed</focusMode>
    <awaitPreviewImages>false</awaitPreviewImages>
    <blackPictureFix>true</blackPictureFix>
    <blackPictureFixDuration>2000</blackPictureFixDuration>
    <addToGallery>true</addToGallery>
  </action>
  <action type="lock_device">
    <useDefaultName>true</useDefaultName>
    <name>Gerät sperren</name>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Get Android Version</name>
    <script>if (getAndroidSDKVersion() == 27)
{
androidVersion = "8.1 Oreo"
}

if (getAndroidSDKVersion() == 26)
{
androidVersion = "8.0 Oreo"
}

if (getAndroidSDKVersion() == 25)
{
androidVersion = "7.1 Nougat"
}

if (getAndroidSDKVersion() == 24)
{
androidVersion = "7.0 Nougat"
}

if (getAndroidSDKVersion() == 23)
{
androidVersion = "6.0 Marshmallow"
}

if (getAndroidSDKVersion() == 22)
{
androidVersion = "5.1 Lollipop MR1"
}

if (getAndroidSDKVersion() == 21)
{
androidVersion = "5.0 Lollipop"
}

if (getAndroidSDKVersion() == 19)
{
androidVersion = "4.4 KitKat"
}

if (getAndroidSDKVersion() == 18)
{
androidVersion = "4.3 Jelly Bean MR2"
}

if (getAndroidSDKVersion() == 17)
{
androidVersion = "4.2 - 4.2.2 Jelly Bean MR1"
}

if (getAndroidSDKVersion() == 16)
{
androidVersion = "4.1 - 4.1.1  Jelly Bean"
}

if (getAndroidSDKVersion() == 15)
{
androidVersion = "4.0.3 - 4.0.4 Ice Cream Sandwich MR1"
}

if (getAndroidSDKVersion() == 14)
{
androidVersion = "4.0 - 4.0.2 Ice Cream Sandwich"
}</script>
  </action>
  <action type="shutdown">
    <useDefaultName>true</useDefaultName>
    <name>Herunterfahren</name>
  </action>
  <action type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: send FHEMFUNC data to AMADCommBridge JSON</name>
    <url>http://{global_fhemip}:{global_bridgeport}</url>
    <verifyCertificates>false</verifyCertificates>
    <basicAuthentication>false</basicAuthentication>
    <username></username>
    <clientCert>false</clientCert>
    <clientCertPath></clientCertPath>
    <httpMethod>POST</httpMethod>
    <httpContentType>GENERAL_TEXT</httpContentType>
    <contentType>application/json</contentType>
    <generalTextData>{fhemfunc}</generalTextData>
    <formFieldList>@@@@readingsNameXYZ@@readingsValueABC</formFieldList>
    <uploadFieldName>upload_field</uploadFieldName>
    <uploadFilePath></uploadFilePath>
    <timeout>15000</timeout>
    <setCustomHTTPHeaders>true</setCustomHTTPHeaders>
    <customHTTPHeaders>Connection: close</customHTTPHeaders>
    <storeInVariable>true</storeInVariable>
    <variable>respfhemfunc</variable>
    <path>/storage/emulated/0/Download/file.bin</path>
    <followRedirects>false</followRedirects>
  </action>
  <action type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: send FIRSTRUN data to AMADCommBridge JSON</name>
    <url>http://{global_fhemip}:{global_bridgeport}</url>
    <verifyCertificates>false</verifyCertificates>
    <basicAuthentication>false</basicAuthentication>
    <username></username>
    <clientCert>false</clientCert>
    <clientCertPath></clientCertPath>
    <httpMethod>POST</httpMethod>
    <httpContentType>GENERAL_TEXT</httpContentType>
    <contentType>application/json</contentType>
    <generalTextData>{firstrundata}</generalTextData>
    <formFieldList>@@@@readingsNameXYZ@@readingsValueABC</formFieldList>
    <uploadFieldName>upload_field</uploadFieldName>
    <uploadFilePath></uploadFilePath>
    <timeout>15000</timeout>
    <setCustomHTTPHeaders>true</setCustomHTTPHeaders>
    <customHTTPHeaders>Connection: close</customHTTPHeaders>
    <storeInVariable>true</storeInVariable>
    <variable>respfirstrun</variable>
    <path>/storage/emulated/0/Download/file.bin</path>
    <followRedirects>false</followRedirects>
  </action>
  <action type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: send READINGS data to AMADCommBridge JSON</name>
    <url>http://{global_fhemip}:{global_bridgeport}</url>
    <verifyCertificates>false</verifyCertificates>
    <basicAuthentication>false</basicAuthentication>
    <username></username>
    <clientCert>false</clientCert>
    <clientCertPath></clientCertPath>
    <httpMethod>POST</httpMethod>
    <httpContentType>GENERAL_TEXT</httpContentType>
    <contentType>application/json</contentType>
    <generalTextData>{fhemdata}</generalTextData>
    <formFieldList>@@@@readingsNameXYZ@@readingsValueABC</formFieldList>
    <uploadFieldName>upload_field</uploadFieldName>
    <uploadFilePath></uploadFilePath>
    <timeout>15000</timeout>
    <setCustomHTTPHeaders>true</setCustomHTTPHeaders>
    <customHTTPHeaders>Connection: close</customHTTPHeaders>
    <storeInVariable>true</storeInVariable>
    <variable>respsetreading</variable>
    <path>/storage/emulated/0/Download/file.bin</path>
    <followRedirects>false</followRedirects>
  </action>
  <action type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: send READINGSVAL data to AMADCommBridge JSON</name>
    <url>http://{global_fhemip}:{global_bridgeport}</url>
    <verifyCertificates>false</verifyCertificates>
    <basicAuthentication>false</basicAuthentication>
    <username></username>
    <clientCert>false</clientCert>
    <clientCertPath></clientCertPath>
    <httpMethod>POST</httpMethod>
    <httpContentType>GENERAL_TEXT</httpContentType>
    <contentType>application/json</contentType>
    <generalTextData>{readingsvalcmd}</generalTextData>
    <formFieldList>@@@@readingsNameXYZ@@readingsValueABC</formFieldList>
    <uploadFieldName>upload_field</uploadFieldName>
    <uploadFilePath></uploadFilePath>
    <timeout>15000</timeout>
    <setCustomHTTPHeaders>true</setCustomHTTPHeaders>
    <customHTTPHeaders>Connection: close</customHTTPHeaders>
    <storeInVariable>true</storeInVariable>
    <variable>respreadingsval</variable>
    <path>/storage/emulated/0/Download/file.bin</path>
    <followRedirects>false</followRedirects>
  </action>
  <action type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: send SET data to AMADCommBridge JSON</name>
    <url>http://{global_fhemip}:{global_bridgeport}</url>
    <verifyCertificates>false</verifyCertificates>
    <basicAuthentication>false</basicAuthentication>
    <username></username>
    <clientCert>false</clientCert>
    <clientCertPath></clientCertPath>
    <httpMethod>POST</httpMethod>
    <httpContentType>GENERAL_TEXT</httpContentType>
    <contentType>application/json</contentType>
    <generalTextData>{setcmd}</generalTextData>
    <formFieldList>@@@@readingsNameXYZ@@readingsValueABC</formFieldList>
    <uploadFieldName>upload_field</uploadFieldName>
    <uploadFilePath></uploadFilePath>
    <timeout>15000</timeout>
    <setCustomHTTPHeaders>true</setCustomHTTPHeaders>
    <customHTTPHeaders>Connection: close</customHTTPHeaders>
    <storeInVariable>true</storeInVariable>
    <variable>respset</variable>
    <path>/storage/emulated/0/Download/file.bin</path>
    <followRedirects>false</followRedirects>
  </action>
  <action type="http_request">
    <useDefaultName>false</useDefaultName>
    <name>HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge</name>
    <url>http://{global_fhemip}:{global_bridgeport}</url>
    <verifyCertificates>false</verifyCertificates>
    <basicAuthentication>false</basicAuthentication>
    <username></username>
    <clientCert>false</clientCert>
    <clientCertPath></clientCertPath>
    <httpMethod>POST</httpMethod>
    <httpContentType>GENERAL_TEXT</httpContentType>
    <contentType>application/json</contentType>
    <generalTextData>{voiceinputdata}</generalTextData>
    <formFieldList>@@@@readingsNameXYZ@@readingsValueABC</formFieldList>
    <uploadFieldName>upload_field</uploadFieldName>
    <uploadFilePath></uploadFilePath>
    <timeout>15000</timeout>
    <setCustomHTTPHeaders>true</setCustomHTTPHeaders>
    <customHTTPHeaders>FHEMDEVICE: {global_fhemdevice}
FHEMCMD: voiceinputvalue
Connection: close</customHTTPHeaders>
    <storeInVariable>true</storeInVariable>
    <variable>respvoiceinputvalue</variable>
    <path>/storage/emulated/0/Download/file.bin</path>
    <followRedirects>true</followRedirects>
  </action>
  <action type="write_to_file">
    <useDefaultName>true</useDefaultName>
    <name>In Datei Schreiben: Aktiviere Flows in /storage/emulated/0/file.txt (anhängen)</name>
    <path>/storage/emulated/0/file.txt</path>
    <text>Aktiviere Flows</text>
    <append>true</append>
  </action>
  <action type="write_to_file">
    <useDefaultName>true</useDefaultName>
    <name>In Datei Schreiben: Deaktiviere Flows in /storage/emulated/0/file.txt (anhängen)</name>
    <path>/storage/emulated/0/file.txt</path>
    <text>Deaktiviere Flows</text>
    <append>true</append>
  </action>
  <action type="init_variable_next_alarm">
    <useDefaultName>false</useDefaultName>
    <name>Initialisiere Variable Nächster Alarm: next_alarm</name>
    <variable>next_alarm</variable>
  </action>
  <action type="init_variable_system_setting">
    <useDefaultName>false</useDefaultName>
    <name>Initialisiere Variable Systemeinstellung: screenBrightness</name>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>screen_brightness</settingName>
    <variable>screenBrightness</variable>
  </action>
  <action type="init_variable_system_setting">
    <useDefaultName>false</useDefaultName>
    <name>Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2</name>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_music_bt_a2dp</settingName>
    <variable>volumeBT</variable>
  </action>
  <action type="init_variable_system_setting">
    <useDefaultName>false</useDefaultName>
    <name>Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2</name>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_music_speaker</settingName>
    <variable>volumeSP</variable>
  </action>
  <action type="init_variable_system_setting">
    <useDefaultName>false</useDefaultName>
    <name>Initialisiere Variable Systemeinstellung: volumeNotification</name>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_ring_speaker</settingName>
    <variable>volumeNotification</variable>
  </action>
  <action type="init_variable_system_setting">
    <useDefaultName>false</useDefaultName>
    <name>Initialisiere Variable Systemeinstellung: volumeRingSound</name>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>volume_ring</settingName>
    <variable>volumeRingSound</variable>
  </action>
  <action type="set_audio_stream_volume">
    <useDefaultName>true</useDefaultName>
    <name>Lautstärke einstellen: Medien auf Level 8</name>
    <audioStreamType>MUSIC</audioStreamType>
    <audioStreamChangeType>ADJUST_SET_ABSOLUTE</audioStreamChangeType>
    <volumeIndex>8</volumeIndex>
    <playSound>false</playSound>
    <showUI>false</showUI>
  </action>
  <action type="set_audio_stream_volume">
    <useDefaultName>true</useDefaultName>
    <name>Lautstärke einstellen: Medien auf Level {param_msgvol}</name>
    <audioStreamType>MUSIC</audioStreamType>
    <audioStreamChangeType>ADJUST_SET_ABSOLUTE</audioStreamChangeType>
    <volumeIndex>{param_msgvol}</volumeIndex>
    <playSound>false</playSound>
    <showUI>false</showUI>
  </action>
  <action type="restore_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Lautstärken setzen param_notifivolume</name>
    <restoreVolumeAlarm>false</restoreVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <restoreVolumeDTMF>false</restoreVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <restoreVolumeMusic>false</restoreVolumeMusic>
    <variableVolumeMusic>param_volume</variableVolumeMusic>
    <restoreVolumeNotification>true</restoreVolumeNotification>
    <variableVolumeNotification>param_notifivolume</variableVolumeNotification>
    <restoreVolumeRing>false</restoreVolumeRing>
    <variableVolumeRing>global_volume_ring</variableVolumeRing>
    <restoreVolumeSystem>false</restoreVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <restoreVolumeVoiceCall>false</restoreVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <restoreRingerMode>false</restoreRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <restoreInterruptionsMode>false</restoreInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="restore_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Lautstärken setzen param_ringsoundvolume</name>
    <restoreVolumeAlarm>false</restoreVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <restoreVolumeDTMF>false</restoreVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <restoreVolumeMusic>false</restoreVolumeMusic>
    <variableVolumeMusic>param_volume</variableVolumeMusic>
    <restoreVolumeNotification>false</restoreVolumeNotification>
    <variableVolumeNotification>param_notifivolume</variableVolumeNotification>
    <restoreVolumeRing>true</restoreVolumeRing>
    <variableVolumeRing>param_ringsoundvolume</variableVolumeRing>
    <restoreVolumeSystem>false</restoreVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <restoreVolumeVoiceCall>false</restoreVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <restoreRingerMode>false</restoreRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <restoreInterruptionsMode>false</restoreInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="restore_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Lautstärken setzen param_volume</name>
    <restoreVolumeAlarm>false</restoreVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <restoreVolumeDTMF>false</restoreVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <restoreVolumeMusic>true</restoreVolumeMusic>
    <variableVolumeMusic>param_volume</variableVolumeMusic>
    <restoreVolumeNotification>false</restoreVolumeNotification>
    <variableVolumeNotification>global_volume_notification</variableVolumeNotification>
    <restoreVolumeRing>false</restoreVolumeRing>
    <variableVolumeRing>global_volume_ring</variableVolumeRing>
    <restoreVolumeSystem>false</restoreVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <restoreVolumeVoiceCall>false</restoreVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <restoreRingerMode>false</restoreRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <restoreInterruptionsMode>false</restoreInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="store_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Medianlautstärken Speichern</name>
    <storeVolumeAlarm>false</storeVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <storeVolumeDTMF>false</storeVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <storeVolumeMusic>true</storeVolumeMusic>
    <variableVolumeMusic>global_volume_music</variableVolumeMusic>
    <storeVolumeNotification>false</storeVolumeNotification>
    <variableVolumeNotification>global_volume_notification</variableVolumeNotification>
    <storeVolumeRing>false</storeVolumeRing>
    <variableVolumeRing>global_volume_ring</variableVolumeRing>
    <storeVolumeSystem>false</storeVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <storeVolumeVoiceCall>false</storeVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <storeRingerMode>false</storeRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <storeInterruptionsMode>false</storeInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="restore_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Medienlautstärke Wiederherstellen</name>
    <restoreVolumeAlarm>false</restoreVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <restoreVolumeDTMF>false</restoreVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <restoreVolumeMusic>true</restoreVolumeMusic>
    <variableVolumeMusic>global_volume_music</variableVolumeMusic>
    <restoreVolumeNotification>false</restoreVolumeNotification>
    <variableVolumeNotification>global_volume_notification</variableVolumeNotification>
    <restoreVolumeRing>false</restoreVolumeRing>
    <variableVolumeRing>global_volume_ring</variableVolumeRing>
    <restoreVolumeSystem>false</restoreVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <restoreVolumeVoiceCall>false</restoreVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <restoreRingerMode>false</restoreRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <restoreInterruptionsMode>false</restoreInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="message_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Meldungsdialog:  Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung.</name>
    <title></title>
    <message>Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung.</message>
    <buttonLabel>Weiter</buttonLabel>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
  </action>
  <action type="message_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Meldungsdialog:  Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Am</name>
    <title></title>
    <message>Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind.</message>
    <buttonLabel>Weiter</buttonLabel>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
  </action>
  <action type="message_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Meldungsdialog:  Die Einrichtung ist nun abgeschlossen und das AMAD Device online.</name>
    <title></title>
    <message>Die Einrichtung ist nun abgeschlossen und das AMAD Device online.</message>
    <buttonLabel>Weiter</buttonLabel>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
  </action>
  <action type="message_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Meldungsdialog:  Leider scheint es ein Problem beim Einrichten des FHEM Devices gegeben zu haben. Hast Du die AMADCommBridge definiert, und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an CoolTux alias Leon, im FHEM Forum.</name>
    <title></title>
    <message>Leider scheint es ein Problem beim Einrichten des FHEM Devices gegeben zu haben. Hast Du die AMADCommBridge definiert, und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an CoolTux alias Leon, im FHEM Forum.</message>
    <buttonLabel>Weiter</buttonLabel>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
  </action>
  <action type="message_dialog">
    <useDefaultName>true</useDefaultName>
    <name>Meldungsdialog:  Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen.</name>
    <title></title>
    <message>Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen.</message>
    <buttonLabel>Weiter</buttonLabel>
    <timeoutEnabled>false</timeoutEnabled>
    <timeout>60000</timeout>
  </action>
  <action type="reboot">
    <useDefaultName>true</useDefaultName>
    <name>Neustart </name>
    <options></options>
  </action>
  <action type="set_nfc_state">
    <useDefaultName>true</useDefaultName>
    <name>NFC ein-/ausschalten: Aus</name>
    <enable>false</enable>
  </action>
  <action type="set_nfc_state">
    <useDefaultName>true</useDefaultName>
    <name>NFC ein-/ausschalten: Ein</name>
    <enable>true</enable>
  </action>
  <action type="store_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Notification Lautstärke Speichern</name>
    <storeVolumeAlarm>false</storeVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <storeVolumeDTMF>false</storeVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <storeVolumeMusic>false</storeVolumeMusic>
    <variableVolumeMusic>global_volume_music</variableVolumeMusic>
    <storeVolumeNotification>true</storeVolumeNotification>
    <variableVolumeNotification>global_volume_notification</variableVolumeNotification>
    <storeVolumeRing>false</storeVolumeRing>
    <variableVolumeRing>global_volume_ring</variableVolumeRing>
    <storeVolumeSystem>false</storeVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <storeVolumeVoiceCall>false</storeVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <storeRingerMode>false</storeRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <storeInterruptionsMode>false</storeInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="restore_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>Notification Lautstärke Wiederherstellen</name>
    <restoreVolumeAlarm>false</restoreVolumeAlarm>
    <variableVolumeAlarm>global_volume_alarm</variableVolumeAlarm>
    <restoreVolumeDTMF>false</restoreVolumeDTMF>
    <variableVolumeDTMF>global_volume_dtmf</variableVolumeDTMF>
    <restoreVolumeMusic>false</restoreVolumeMusic>
    <variableVolumeMusic>param_volume</variableVolumeMusic>
    <restoreVolumeNotification>true</restoreVolumeNotification>
    <variableVolumeNotification>global_volume_notification</variableVolumeNotification>
    <restoreVolumeRing>false</restoreVolumeRing>
    <variableVolumeRing>global_volume_ring</variableVolumeRing>
    <restoreVolumeSystem>false</restoreVolumeSystem>
    <variableVolumeSystem>global_volume_system</variableVolumeSystem>
    <restoreVolumeVoiceCall>false</restoreVolumeVoiceCall>
    <variableVolumeVoiceCall>global_volume_voice_call</variableVolumeVoiceCall>
    <restoreRingerMode>false</restoreRingerMode>
    <variableRingerMode>global_ringer_mode</variableRingerMode>
    <restoreInterruptionsMode>false</restoreInterruptionsMode>
    <variableInterruptionsMode>global_interruptions_mode</variableInterruptionsMode>
  </action>
  <action type="set_audio_stream_volume">
    <useDefaultName>false</useDefaultName>
    <name>NotificationLautstärke auf Level 7</name>
    <audioStreamType>NOTIFICATION</audioStreamType>
    <audioStreamChangeType>ADJUST_SET_ABSOLUTE</audioStreamChangeType>
    <volumeIndex>7</volumeIndex>
    <playSound>false</playSound>
    <showUI>false</showUI>
  </action>
  <action type="call_number">
    <useDefaultName>true</useDefaultName>
    <name>Nummer anrufen: {param_callnumber}</name>
    <sim></sim>
    <number>{param_callnumber}</number>
    <directlyInitiateCall>true</directlyInitiateCall>
  </action>
  <action type="sleep">
    <useDefaultName>true</useDefaultName>
    <name>Pause: 1s (Gerät wach halten)</name>
    <duration>1s</duration>
    <keepDeviceAwake>true</keepDeviceAwake>
    <allowWakeupFromDeviceIdle>false</allowWakeupFromDeviceIdle>
  </action>
  <action type="sleep">
    <useDefaultName>true</useDefaultName>
    <name>Pause: 2s (Gerät wach halten)</name>
    <duration>2s</duration>
    <keepDeviceAwake>true</keepDeviceAwake>
    <allowWakeupFromDeviceIdle>false</allowWakeupFromDeviceIdle>
  </action>
  <action type="sleep">
    <useDefaultName>true</useDefaultName>
    <name>Pause: 3s (Gerät wach halten)</name>
    <duration>3s</duration>
    <keepDeviceAwake>true</keepDeviceAwake>
    <allowWakeupFromDeviceIdle>false</allowWakeupFromDeviceIdle>
  </action>
  <action type="sleep">
    <useDefaultName>true</useDefaultName>
    <name>Pause: {param_hanguptime}s (Gerät wach halten)</name>
    <duration>{param_hanguptime}s</duration>
    <keepDeviceAwake>true</keepDeviceAwake>
    <allowWakeupFromDeviceIdle>false</allowWakeupFromDeviceIdle>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Prüfe und setze Bridgeport Variable</name>
    <script>if (global_bridgeport == null) {
    global_bridgeport = "8090" }</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Prüfe und setze globale Variable</name>
    <script>if (header_bport == null) {
    global_bridgeport = "8090" }
if (global_bridgeport != {header_bport}) {
    global_bridgeport = {header_bport} }

if (header_fhemctlmode != null or header_fhemctlmode != {global_fhemctlmode}) {
   global_fhemctlmode = {header_fhemctlmode} }

if (header_fhemip != null or header_fhemip != {global_fhemip}) {
   global_fhemip = {header_fhemip} }

if (header_fhemdevice != null or header_fhemdevice != {global_fhemdevice}) {
   global_fhemdevice = {header_fhemdevice} }

if (header_activetask != null or header_activetask != {global_activetask}) {
   global_activetask = {header_activetask} }

if (header_apssid != null or header_apssid != {global_apssid}) {
   global_apssid = {header_apssid} }

if (header_dport != null or header_dport != {global_deviceport}) {
   global_deviceport = {header_dport} }

if (header_userflowstate != null or header_userflowstate != {global_userflowstate}) {
   global_userflowstate = {header_userflowstate} }</script>
  </action>
  <action type="turn_screen_on">
    <useDefaultName>false</useDefaultName>
    <name>Schalte Display ein</name>
    <bright>false</bright>
    <duration>5s</duration>
    <resetUserActivityTimer>true</resetUserActivityTimer>
  </action>
  <action type="turn_screen_on">
    <useDefaultName>true</useDefaultName>
    <name>Schalte Display ein: Hell für {param_screenontime}s</name>
    <bright>true</bright>
    <duration>{param_screenontime}s</duration>
    <resetUserActivityTimer>true</resetUserActivityTimer>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: airpcount = 0</name>
    <script>airpcount = 0</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: airpcount = airpcount + 1</name>
    <script>airpcount = airpcount + 1</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: airplanemode = "\"airplanemode\":" + " \"" + {airplanemode} + "\""; fhemcmd = "setreading";</name>
    <script>airplanemode = "\"airplanemode\":" + " \"" + {airplanemode} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: airplanemode = "airplanemode@@on"; fhemcmd = "setreading";</name>
    <script>airplanemode = "airplanemode@@on";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: airplanemode = "off"</name>
    <script>airplanemode = "off"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: amadcmd = "firstrun"</name>
    <script>amadcmd = "firstrun"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: amaddevice_ip = {value}</name>
    <script>amaddevice_ip = {value}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: androidVersion = "\"androidVersion\":" + " \"" + {androidVersion} + "\""; fhemcmd = "setreading";</name>
    <script>androidVersion = "\"androidVersion\":" + " \"" + {androidVersion} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: androidVersion = "not supported funktion"</name>
    <script>androidVersion = "not supported funktion"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</name>
    <script>automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: bluetooth = "\"bluetooth\":" + " \"" + {bluetooth_state} + "\""; fhemcmd = "setreading";</name>
    <script>bluetooth = "\"bluetooth\":" + " \"" + {bluetooth_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: bluetooth_state = "off"</name>
    <script>bluetooth_state = "off"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: bluetooth_state = "on"</name>
    <script>bluetooth_state = "on"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: btdeviceinfo = "\"connectedBTdevices\":" + " \"" + {connected_devices_names} + "\"" + "," + "\"connectedBTdevicesMAC\":" + " \"" + {connected_devices_addresses} + "\""; fhemcmd = "setreading";</name>
    <script>btdeviceinfo = "\"connectedBTdevices\":" + " \"" + {connected_devices_names} + "\""
 + "," + "\"connectedBTdevicesMAC\":" + " \"" + {connected_devices_addresses} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: checkActiveTask = "\"checkActiveTask\":" + " \"" + {runTask} + "\""; fhemcmd = "setreading";</name>
    <script>checkActiveTask = "\"checkActiveTask\":" + " \"" + {runTask} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: connected_devices_names = "none"; connected_devices_addresses = "none"</name>
    <script>connected_devices_names = "none";
connected_devices_addresses = "none"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: currentMusic = "\"currentMusicTrack\":" + " \"" + {title} + "\"" + "," + "\"currentMusicAlbum\":" + " \"" + {description} + "\"" + "," + "\"currentMusicArtist\":" + " \"" + {subtitle} + "\"" + "," + "\"currentMusicApp\":" + " \"" + {musicapp} + "\"" + "," + "\"currentMusicIcon\":" + " \"" + {icon} + "\"" + "," + "\"currentMusicState\":" + " \"" + {playback_state} + "\""; fhemcmd = "setreading";</name>
    <script>currentMusic = "\"currentMusicTrack\":" + " \"" + {title} + "\""
 + "," + "\"currentMusicAlbum\":" + " \"" + {description} + "\""
 + "," + "\"currentMusicArtist\":" + " \"" + {subtitle} + "\""
 + "," + "\"currentMusicApp\":" + " \"" + {musicapp} + "\""
 + "," + "\"currentMusicIcon\":" + " \"" + {icon} + "\""
 + "," + "\"currentMusicState\":" + " \"" + {playback_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: daydream = "\"daydream\":" + " \"" + {daydream_state} + "\""; fhemcmd = "setreading";</name>
    <script>daydream = "\"daydream\":" + " \"" + {daydream_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: daydream_state = "off"</name>
    <script>daydream_state = "off"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: daydream_state = "on"</name>
    <script>daydream_state = "on"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: deviceState = "\"deviceState\": \"online\""; fhemcmd = "setreading";</name>
    <script>deviceState = "\"deviceState\": \"online\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dndValue = "alarmClockOnly"</name>
    <script>dndValue = "alarmClockOnly"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dndValue = "always"</name>
    <script>dndValue = "always"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dndValue = "never"</name>
    <script>dndValue = "never"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dndValue = "onlyImportant"</name>
    <script>dndValue = "onlyImportant"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dock_state = "docked"</name>
    <script>dock_state = "docked"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dock_state = "undocked"</name>
    <script>dock_state = "undocked"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: dockingState = "\"dockingState\":" + " \"" + {dock_state} + "\""; fhemcmd = "setreading";</name>
    <script>dockingState = "\"dockingState\":" + " \"" + {dock_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: doNotDisturb = "\"doNotDisturb\":" + " \"" + {dndValue} + "\""; fhemcmd = "setreading";</name>
    <script>doNotDisturb = "\"doNotDisturb\":" + " \"" + {dndValue} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: flow_informations = "\"flow_informations\":" + " \"" + {informationFlow_state} + "\""; fhemcmd = "setreading";</name>
    <script>flow_informations = "\"flow_informations\":" + " \"" + {informationFlow_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: flow_informations = "\"userFlowState\":" + " \"" + {flowState} + "\""; fhemcmd = "setreading";</name>
    <script>flow_informations = "\"userFlowState\":" + " \"" + {flowState} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: flow_SetCommands = "\"flow_SetCommands\":" + " \"" + {setCommandFlow_state} + "\""; fhemcmd = "setreading";</name>
    <script>flow_SetCommands = "\"flow_SetCommands\":" + " \"" + {setCommandFlow_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: flowState = "active"</name>
    <script>flowState = "active"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: flowState = "inactive"</name>
    <script>flowState = "inactive"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: global_activetask = "none"; global_apssid = "none"; global_userflowstate = "none";</name>
    <script>global_activetask = "none";
global_apssid = "none";
global_userflowstate = "none";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: global_amadid = getDate();</name>
    <script>global_amadid = getDate();</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: global_bridgeport = {value}</name>
    <script>global_bridgeport = {value}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: global_fhemdevice = {value}</name>
    <script>global_fhemdevice = {value}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: global_fhemip = {value}</name>
    <script>global_fhemip = {value}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: headsetValue = 0</name>
    <script>headsetValue = 0</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: headsetValue = 1</name>
    <script>headsetValue = 1</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if (trigger == "NFC TagIDs" ) { nfcLastTagID = "\"nfcLastTagID\":" + " \"" + {nfc_tag_ids} + "\""} if (trigger == "NFC State" ) { nfc = "\"nfc\":" + " \"" + {nfc_state} + "\""} fhemcmd = "setreading";</name>
    <script>if (trigger == "NFC TagIDs" ) {
  nfcLastTagID = "\"nfcLastTagID\":" + " \"" + {nfc_tag_ids} + "\""}

if (trigger == "NFC State" ) {
  nfc = "\"nfc\":" + " \"" + {nfc_state} + "\""}


fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if(index == 0) { sprachassi = "ja"; } else if(index == 1) { sprachassi = "nein"; }</name>
    <script>if(index == 0)
{
  sprachassi = "ja";
} 
else if(index == 1)
{
  sprachassi = "nein";
}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if(package_name == "com.google.android.music") { musicapp = "Google Musik" } else if(package_name == "com.amazon.mp3") { musicapp = "Amazon Musik" } else if(package_name == "com.google.android.videos") { musicapp = "Google Video" } else if(package_name == "com.spotify.music") { musicapp = "Spotify Musik" } else if(package_name == "com.google.android.youtube") { musicapp = "YouTube" } else if(package_name == "com.google.android.apps.youtube.kids") { musicapp = "YouTube Kids" } else if(package_name == "tunein.player") { musicapp = "TuneIn Player" } else if(package_name == "com.rhapsody.alditalk") { musicapp = "Aldi Life Musik" } else if(package_name == "org.videolan.vlc") { musicapp = "VLC Player" } else if(package_name == "com.sec.android.app.music") { musicapp = "Samsung Music Player" } else if(package_name == "deezer.android.app") { musicapp = "Deezer" } else if(package_name == "com.maxmpz.audioplayer") { musicapp = "Poweramp" } else if(package_name == "com.mxtech.videoplayer.pro") { musicapp = "MXPlayerPro" }</name>
    <script>if(package_name == "com.google.android.music") {
    musicapp = "Google Musik"
}

else if(package_name == "com.amazon.mp3") {
    musicapp = "Amazon Musik"
}

else if(package_name == "com.google.android.videos") {
    musicapp = "Google Video"
}

else if(package_name == "com.spotify.music") {
    musicapp = "Spotify Musik"
}

else if(package_name == "com.google.android.youtube") {
    musicapp = "YouTube"
}

else if(package_name == "com.google.android.apps.youtube.kids") {
    musicapp = "YouTube Kids"
}

else if(package_name == "tunein.player") {
    musicapp = "TuneIn Player"
}

else if(package_name == "com.rhapsody.alditalk") {
    musicapp = "Aldi Life Musik"
}

else if(package_name == "org.videolan.vlc") {
    musicapp = "VLC Player"
}

else if(package_name == "com.sec.android.app.music") {
    musicapp = "Samsung Music Player"
}

else if(package_name == "deezer.android.app") {
    musicapp = "Deezer"
}

else if(package_name == "com.maxmpz.audioplayer") {
    musicapp = "Poweramp"
}

else if(package_name == "com.mxtech.videoplayer.pro") {
    musicapp = "MXPlayerPro"
}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if(playback_state == 0) { playback_state = "none" } else if(playback_state == 1) { playback_state = "stopped" } else if(playback_state == 2) { playback_state = "pause" } else if(playback_state == 3) { playback_state = "play" } else if(playback_state == 4) { playback_state = "fast forward" } else if(playback_state == 5) { playback_state = "fast backward" } else if(playback_state == 6) { playback_state = "buffert" } else if(playback_state == 7) { playback_state = "error" } else if(playback_state == 8) { playback_state = "connect" } else if(playback_state == 9) { playback_state = "skip forward" } else if(playback_state == 10) { playback_state = "skip backward" } else if(playback_state == 11) { playback_state = "jump to position in playlist" }</name>
    <script>if(playback_state == 0) {
playback_state = "none"
}

else if(playback_state == 1) {
playback_state = "stopped"
}

else if(playback_state == 2) {
playback_state = "pause"
}

else if(playback_state == 3) {
playback_state = "play"
}

else if(playback_state == 4) {
playback_state = "fast forward"
}

else if(playback_state == 5) {
playback_state = "fast backward"
}

else if(playback_state == 6) {
playback_state = "buffert"
}

else if(playback_state == 7) {
playback_state = "error"
}

else if(playback_state == 8) {
playback_state = "connect"
}

else if(playback_state == 9) {
playback_state = "skip forward"
}

else if(playback_state == 10) {
playback_state = "skip backward"
}

else if(playback_state == 11) {
playback_state = "jump to position in playlist"
}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if(screenBrightnessMode == 1) { screenBrightnessMode = "on"; } else { screenBrightnessMode = "off"; }</name>
    <script>if(screenBrightnessMode == 1) {
    screenBrightnessMode = "on";
} else {
    screenBrightnessMode = "off";
}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if(togocount &gt; 0) { togocount = togocount + 1; } else { togocount = 0; togocount = togocount + 1; }</name>
    <script>if(togocount &gt; 0)
{
  togocount = togocount + 1;
}
else
{
 togocount = 0; togocount = togocount + 1;
}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT") { nextalarmstate = "alert" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS") { nextalarmstate = "dismiss" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE") { nextalarmstate = "done" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE") { nextalarmstate = "snooze" }</name>
    <script>if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT") {
nextalarmstate = "alert"
}

if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS") {
nextalarmstate = "dismiss"
}

if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE") {
nextalarmstate = "done"
}

if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE") {
nextalarmstate = "snooze"
}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: incomingCaller = "\"incomingCallerName\":" + " \"" + {contact_name} + "\"" + "," + "\"incomingCallerNumber\":" + " \"" + {incoming_number} + "\""; fhemcmd = "setreading";</name>
    <script>incomingCaller = "\"incomingCallerName\":" + " \"" + {contact_name} + "\""
 + "," + "\"incomingCallerNumber\":" + " \"" + {incoming_number} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: incomingSmsMessage = "\"incomingSmsMessage\":" + " \"" + {sms_sender} + " - " + replaceAll({sms_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</name>
    <script>incomingSmsMessage = "\"incomingSmsMessage\":" + " \"" + {sms_sender} + " - " + replaceAll({sms_text}, "\\n", " ") + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: incomingTelegramMessage = "\"incomingTelegramMessage\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</name>
    <script>incomingTelegramMessage = "\"incomingTelegramMessage\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: incomingWhatsAppMessage = "\"incomingWhatsAppMessage\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</name>
    <script>incomingWhatsAppMessage = "\"incomingWhatsAppMessage\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: informationFlow_state = "aktiv"</name>
    <script>informationFlow_state = "aktiv"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: informationFlow_state = "inaktiv"</name>
    <script>informationFlow_state = "inaktiv"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: intentRadioState = "\"intentRadioState\":" + " \"" + {irstate} + "\"" + "," + "\"intentRadioName\":" + " \"" + {irname} + "\""; fhemcmd = "setreading";</name>
    <script>intentRadioState = "\"intentRadioState\":" + " \"" + {irstate} + "\""
 + "," + "\"intentRadioName\":" + " \"" + {irname} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: keyguard = "locked"</name>
    <script>keyguard = "locked"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: keyguard = "unlocked"</name>
    <script>keyguard = "unlocked"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: keyguardset = "0"</name>
    <script>keyguardset = "0"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: keyguardset = "1"</name>
    <script>keyguardset = "1"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: keyguardSet = "\"keyguardSet\":" + " \"" + {keyguardset} + "\""; fhemcmd = "setreading";</name>
    <script>keyguardSet = "\"keyguardSet\":" + " \"" + {keyguardset} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: keyguardset = "not supported from your device"</name>
    <script>keyguardset = "not supported from your device"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: next_alarmday = "{next_alarm,dateformat,c}"</name>
    <script>next_alarmday = "{next_alarm,dateformat,c}"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}"</name>
    <script>next_alarmtime = "{next_alarm,dateformat,HH:mm}"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: nextAlarm = "\"nextAlarmTime\":" + " \"" + {next_alarmtime} + "\"" + "," + "\"nextAlarmDay\":" + " \"" + {next_alarmday} + "\""; fhemcmd = "setreading";</name>
    <script>nextAlarm = "\"nextAlarmTime\":" + " \"" + {next_alarmtime} + "\""
 + "," + "\"nextAlarmDay\":" + " \"" + {next_alarmday} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: nextAlarmState = "\"nextAlarmState\":" + " \"" + {nextalarmstate} + "\""; fhemcmd = "setreading";</name>
    <script>nextAlarmState = "\"nextAlarmState\":" + " \"" + {nextalarmstate} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "Aktiviere Automagic unter Einstellungen -&gt; Benachrichtigungen -&gt; Benachrichtigungszugriff"</name>
    <script>notification_text = "Aktiviere Automagic unter Einstellungen -&gt; Benachrichtigungen -&gt; Benachrichtigungszugriff"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "Flow '{param_flowname}' has been set {param_flowstate}"</name>
    <script>notification_text = "Flow '{param_flowname}' has been set {param_flowstate}"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "Flow install: path for download not exist"</name>
    <script>notification_text = "Flow install: path for download not exist"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "Flowset Update: path for download not exist"</name>
    <script>notification_text = "Flowset Update: path for download not exist"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "not supported from your device"</name>
    <script>notification_text = "not supported from your device"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "Take Picture: can not save camerapicture, path does not exist"</name>
    <script>notification_text = "Take Picture: can not save camerapicture, path does not exist"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: notification_text = "Take Screenshot: can not save screenshot, path does not exist"</name>
    <script>notification_text = "Take Screenshot: can not save screenshot, path does not exist"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: powerinfo = "\"batteryPercent\":" + " \"" + "{battery_percentage,numberformat,0}" + "\"" + "," + "\"powerPlugged\":" + " \"" + {battery_plugged} + "\"" + "," + "\"batteryTemperature\":" + " \"" + "{battery_temperature/10.0,numberformat.0.0}" + "\"" + "," + "\"batteryHealth\":" + " \"" + {battery_health} + "\""; fhemcmd = "setreading";</name>
    <script>powerinfo = "\"batteryPercent\":" + " \"" + "{battery_percentage,numberformat,0}" + "\""
 + "," + "\"powerPlugged\":" + " \"" + {battery_plugged} + "\""
 + "," + "\"batteryTemperature\":" + " \"" + "{battery_temperature/10.0,numberformat.0.0}" + "\""
 + "," + "\"batteryHealth\":" + " \"" + {battery_health} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: readingsvalcmd = "{global_fhemdevice} deviceState kaputt"; fhemcmd = "readingsval"; respfirstrun = "none";</name>
    <script>readingsvalcmd = "{global_fhemdevice} deviceState kaputt";
fhemcmd = "readingsval";
respfirstrun = "none";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: runTask = "0"</name>
    <script>runTask = "0"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: runTask = "1"</name>
    <script>runTask = "1"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: runTask = "not supported android version"</name>
    <script>runTask = "not supported android version"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: runTask = "null"</name>
    <script>runTask = "null"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: scrcount = 0</name>
    <script>scrcount = 0</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: scrcount = scrcount + 1</name>
    <script>scrcount = scrcount + 1</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen = "\"screen\":" + " \"" + {screen_state} + "\""; fhemcmd = "setreading";</name>
    <script>screen = "\"screen\":" + " \"" + {screen_state} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_orientation = "landscape"</name>
    <script>screen_orientation = "landscape"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_orientation = "portrait"</name>
    <script>screen_orientation = "portrait"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_orientation_mode = "auto"</name>
    <script>screen_orientation_mode = "auto"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_orientation_mode = "manual"</name>
    <script>screen_orientation_mode = "manual"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_state = "off {keyguard}"</name>
    <script>screen_state = "off {keyguard}"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_state = "off"</name>
    <script>screen_state = "off"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_state = "on {keyguard}"</name>
    <script>screen_state = "on {keyguard}"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screen_state = "on"</name>
    <script>screen_state = "on"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screenBrightness = "\"screenBrightness\":" + " \"" + {screenBrightness} + "\""; fhemcmd = "setreading";</name>
    <script>screenBrightness = "\"screenBrightness\":" + " \"" + {screenBrightness} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screenBrightnessMode = "\"screenBrightnessMode\":" + " \"" + {screenBrightnessMode} + "\""; fhemcmd = "setreading";</name>
    <script>screenBrightnessMode = "\"screenBrightnessMode\":" + " \"" + {screenBrightnessMode} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: screenOrientation = "\"screenOrientation\":" + " \"" + {screen_orientation} + "\"" + "," + "\"screenOrientationMode\":" + " \"" + {screen_orientation_mode} + "\""; fhemcmd = "setreading";</name>
    <script>screenOrientation = "\"screenOrientation\":" + " \"" + {screen_orientation} + "\""
 + "," + "\"screenOrientationMode\":" + " \"" + {screen_orientation_mode} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Set FHEMCALLSUB JSON</name>
    <script>fhemfunc = "\{\"amad\": \{\"amad_id\": \"" + {global_amadid} + "\",\"fhemcmd\": \"fhemfunc\"\},\"payload\": \{\"fhemsub\": \"" + {fhemsub} + "\"\}\}"</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Set FHEMDATA JSON</name>
    <script>fhemdata = "\"flowsetVersionAtDevice\": \"4.2.3\",";



if ( userReading != null ) {
  fhemdata = fhemdata + "{userReading}" + "," }


if ( doNotDisturb != null ) {
  fhemdata = fhemdata + "{doNotDisturb}" + "," }

if ( nextAlarmState != null ) {
  fhemdata = fhemdata + "{nextAlarmState}" + "," }

if ( screen != null ) {
  fhemdata = fhemdata + "{screen}" + "," }

if ( nfc != null ) {
  fhemdata = fhemdata + "{nfc}" + "," }

if ( nfcLastTagID != null ) {
  fhemdata = fhemdata + "{nfcLastTagID}" + "," }

if ( airplanemode != null ) {
  fhemdata = fhemdata + "{airplanemode}" + "," }

if ( currentMusic != null ) {
  fhemdata = fhemdata + "{currentMusic}" + "," }

if ( bluetooth != null ) {
  fhemdata = fhemdata + "{bluetooth}" + "," }

if ( btdeviceinfo != null ) {
  fhemdata = fhemdata + "{btdeviceinfo}" + "," }

if ( volumeNotification != null ) {
  fhemdata = fhemdata + "{volumeNotification}" + "," }

if ( volumevalue != null ) {
  fhemdata = fhemdata + "{volumevalue}" + ","}

if ( nextAlarm != null ) {
  fhemdata = fhemdata + "{nextAlarm}" + "," }

if ( powerinfo != null ) {
  fhemdata = fhemdata + "{powerinfo}" + "," }

if ( daydream != null ) {
  fhemdata = fhemdata + "{daydream}" + "," }

if ( screenBrightness != null ) {
  fhemdata = fhemdata + "{screenBrightness}" + "," }

if ( screenBrightnessMode != null ) {
  fhemdata = fhemdata + "{screenBrightnessMode}" + "," }

if ( screenOrientation != null ) {
  fhemdata = fhemdata + "{screenOrientation}" + "," }

if ( automagicState != null ) {
  fhemdata = fhemdata + "{automagicState}" + "," }

if ( dockingState != null ) {
  fhemdata = fhemdata + "{dockingState}" + "," }

if ( keyguardSet != null ) {
  fhemdata = fhemdata + "{keyguardSet}" + ","}

if ( incomingCaller != null ) {
  fhemdata = fhemdata + "{incomingCaller}" + "," }

if ( incomingTelegramMessage != null ) {
  fhemdata = fhemdata + "{incomingTelegramMessage}" + "," }

if ( wiredHeadsetPlugged != null ) {
  fhemdata = fhemdata + "{wiredHeadsetPlugged}" + "," }

if ( incomingWhatsAppMessage != null ) {
  fhemdata = fhemdata + "{incomingWhatsAppMessage}" + "," }

if ( intentRadioState != null ) {
  fhemdata = fhemdata + "{intentRadioState}" + "," }

if ( checkActiveTask != null ) {
  fhemdata = fhemdata + "{checkActiveTask}" + "," }

if ( deviceState != null ) {
  fhemdata = fhemdata + "{deviceState}" + "," }

if ( androidVersion != null ) {
  fhemdata = fhemdata + "{androidVersion}" + "," }

if ( flow_SetCommands != null ) {
  fhemdata = fhemdata + "{flow_SetCommands}" + ","}

if ( flow_informations != null ) {
  fhemdata = fhemdata + "{flow_informations}" + "," }

if ( incomingSmsMessage != null ) {
  fhemdata = fhemdata + "{incomingSmsMessage}" + "," }



fhemdata = substring(fhemdata, 0, length(fhemdata) - 1);


fhemdata = "\{\"amad\": \{\"amad_id\": \"" + {global_amadid} + "\",\"fhemcmd\": \"setreading\"\},\"payload\": \{ " + {fhemdata} + "\}\}"</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Set FHEMDATA JSON First Run Assistant</name>
    <script>firstrundata = "\{\"amad\": \{\"amad_id\": \"" + {global_amadid} + "\",\"fhemcmd\": \"setreading\"\},\"firstrun\": \{\"fhemdevice\": \"" + {global_fhemdevice} + "\",\"fhemserverip\": \"" + {global_fhemip} + "\",\"amaddevice_ip\": \"" + {amaddevice_ip} + "\",\"remoteserver\": \"Automagic\"\}\}"</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Set FHEMREADINGSVALCMD JSON</name>
    <script>readingsvalcmd = "\{\"amad\": \{\"amad_id\": \"" + {global_amadid} + "\",\"fhemcmd\": \"readingsval\"\},\"payload\": \{\"readingsvalcmd\": \"" + {readingsvalcmd} + "\"\}\}"</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Set FHEMSETCMD JSON</name>
    <script>setcmd = "\{\"amad\": \{\"amad_id\": \"" + {global_amadid} + "\",\"fhemcmd\": \"set\"\},\"payload\": \{\"setcmd\": \"" + {setcmd} + "\"\}\}"</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Set FHEMVOICEINPUTDATA JSON</name>
    <script>voiceinputdata = "\{\"amad\": \{\"amad_id\": \"" + {global_amadid} + "\",\"fhemcmd\": \"voiceinputvalue\"\},\"payload\": \{\"voiceinputdata\": \"" + {voiceinputdata} + "\"\}\}"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: setCommandFlow_state = "aktiv"</name>
    <script>setCommandFlow_state = "aktiv"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: setCommandFlow_state = "inaktiv"</name>
    <script>setCommandFlow_state = "inaktiv"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: subtitle = "no player active"; title = "no player active"; description = "no player active"; musicapp = "no player active"; icon = "no player active"</name>
    <script>subtitle = "no player active";
title = "no player active";
description = "no player active";
musicapp = "no player active";
icon = "no player active"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: udef_trigger = "setLockPin"</name>
    <script>udef_trigger = "setLockPin"</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: voiceinputdata = value; fhemcmd = "voiceinputvalue";</name>
    <script>voiceinputdata = value;
fhemcmd = "voiceinputvalue";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: voiceinputdata = {left(value, (indexOf(value, " und ")))}; fhemcmd = "voiceinputvalue";</name>
    <script>voiceinputdata = {left(value, (indexOf(value, " und ")))};
fhemcmd = "voiceinputvalue";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: volume = {volumeBT}</name>
    <script>volume = {volumeBT}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: volume = {volumeSP}</name>
    <script>volume = {volumeSP}</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: volumeNotification = "\"volumeNotification\":" + " \"" + {volumeNotification} + "\""; fhemcmd = "setreading";</name>
    <script>volumeNotification = "\"volumeNotification\":" + " \"" + {volumeNotification} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: volumeRingSound = "\"volumeRingSound\":" + " \"" + {volumeRingSound} + "\""; fhemcmd = "setreading";</name>
    <script>volumeRingSound = "\"volumeRingSound\":" + " \"" + {volumeRingSound} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: volumevalue = "\"volume\":" + " \"" + {volume} + "\""; fhemcmd = "setreading";</name>
    <script>volumevalue = "\"volume\":" + " \"" + {volume} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>true</useDefaultName>
    <name>Script: wiredHeadsetPlugged = "\"wiredHeadsetPlugged\":" + " \"" + {headsetValue} + "\""; fhemcmd = "setreading";</name>
    <script>wiredHeadsetPlugged = "\"wiredHeadsetPlugged\":" + " \"" + {headsetValue} + "\"";
fhemcmd = "setreading";</script>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Script: Zuordnung Mediaplayer</name>
    <script>if(param_mplayer == "GoogleMusic")
{
    pname = "com.google.android.music";
    kname = "com.google.android.music.playback.MediaButtonIntentReceiver";
}

else if(param_mplayer == "VlcPlayer")
{
    pname = "org.videolan.vlc";
    kname = "org.videolan.vlc.RemoteControlClientReceiver";
}

else if(param_mplayer == "AmazonMusic")
{
    pname = "com.amazon.mp3";
    kname = "com.amazon.mp3.playback.service.HeadsetControlsReceiver";
}

else if(param_mplayer == "SpotifyMusic")
{
    pname = "com.spotify.music";
    kname = "com.spotify.music.internal.receiver.MediaButtonReceiver";
}

else if(param_mplayer == "TuneinRadio")
{
    pname = "tunein.player";
    kname = "tunein.ui.helpers.MediaButtonIntentReceiver";
}

else if(param_mplayer == "AldiMusic")
{
    pname = "com.rhapsody.alditalk";
    kname = "com.napster.player.MediaButtonReceiver";
}

else if(param_mplayer == "YouTube")
{
    pname = "com.google.android.youtube";
    kname = "com.google.android.libraries.youtube.player.PlayerUiModule$LegacyMediaButtonIntentReceiver";
}

else if(param_mplayer == "YouTubeKids")
{
    pname = "com.google.android.apps.youtube.kids";
    kname = "com.google.android.libraries.youtube.player.PlayerUiModule$LegacyMediaButtonIntentReceiver";
}

else if(param_mplayer == "Audible")
{
    pname = "com.audible.application";
    kname = "com.audible.application.AudibleMediaButtonProcessingReceiver";
}

else if(param_mplayer == "SamsungMusic")
{
    pname = "com.sec.android.app.music";
    kname = "com.samsung.android.app.music.service.receiver.MediaButtonReceiver";
}

else if(param_mplayer == "Deezer")
{
    pname = "deezer.android.com";
    kname = "com.deezer.core.jukebox.receivers.JukeboxMediaButtonReceiver";
}

else if(param_mplayer == "Poweramp")
{
    pname = "com.maxmpz.audioplayer";
    kname = "com.maxmpz.audioplayer.player.PlayerMediaButtonReceiver";
}

else if(param_mplayer == "MXPlayerPro")
{
    pname = "com.mxtech.videoplayer.pro";
    kname = "com.mxtech.videoplayer.MediaButtonReceiver";
}</script>
  </action>
  <action type="set_alarm">
    <useDefaultName>true</useDefaultName>
    <name>Setze Alarm:  um {param_hour}:{param_minute}</name>
    <label></label>
    <hour>{param_hour}</hour>
    <minutes>{param_minute}</minutes>
    <alarmName></alarmName>
    <alarmUri></alarmUri>
    <vibrate>false</vibrate>
    <skipUI>true</skipUI>
  </action>
  <action type="set_screen_brightness">
    <useDefaultName>true</useDefaultName>
    <name>Setze Display Helligkeit: {param_brightness}</name>
    <automatic>false</automatic>
    <brightness>{param_brightness}</brightness>
    <changeAdaptive>false</changeAdaptive>
    <adaptiveValue>50</adaptiveValue>
    <forceUpdate>true</forceUpdate>
  </action>
  <action type="set_screen_orientation">
    <useDefaultName>true</useDefaultName>
    <name>Setze Display Orientierung: Auf Default zurücksetzen</name>
    <screenOrientation>UNSPECIFIED</screenOrientation>
    <showResetNotification>false</showResetNotification>
  </action>
  <action type="set_screen_orientation">
    <useDefaultName>true</useDefaultName>
    <name>Setze Display Orientierung: Landscape</name>
    <screenOrientation>LANDSCAPE</screenOrientation>
    <showResetNotification>false</showResetNotification>
  </action>
  <action type="set_screen_orientation">
    <useDefaultName>true</useDefaultName>
    <name>Setze Display Orientierung: Portrait</name>
    <screenOrientation>PORTRAIT</screenOrientation>
    <showResetNotification>false</showResetNotification>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren Informations</name>
    <enable>true</enable>
    <includeFlowNamePatternList>Informations</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren Informations,SetCommands</name>
    <enable>true</enable>
    <includeFlowNamePatternList>Informations,SetCommands</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren Send Data to AMADCommBridge</name>
    <enable>true</enable>
    <includeFlowNamePatternList>Send Data to AMADCommBridge</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren SetCommands</name>
    <enable>true</enable>
    <includeFlowNamePatternList>SetCommands</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren SetCommands,Update AMAD Flowset,VoiceControl</name>
    <enable>true</enable>
    <includeFlowNamePatternList>SetCommands,Update AMAD Flowset,VoiceControl</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</name>
    <enable>true</enable>
    <includeFlowNamePatternList>{imported_flow_names,listformat,comma}</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Aktivieren {param_flowname}</name>
    <enable>true</enable>
    <includeFlowNamePatternList>{param_flowname}</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Deaktivieren First Run Assistant</name>
    <enable>false</enable>
    <includeFlowNamePatternList>First Run Assistant</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Deaktivieren Informations,SetCommands</name>
    <enable>false</enable>
    <includeFlowNamePatternList>Informations,SetCommands</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_flow_state">
    <useDefaultName>true</useDefaultName>
    <name>Setze Flow Status: Deaktivieren {param_flowname}</name>
    <enable>false</enable>
    <includeFlowNamePatternList>{param_flowname}</includeFlowNamePatternList>
    <excludeFlowNamePatternList></excludeFlowNamePatternList>
  </action>
  <action type="set_lock_password">
    <useDefaultName>true</useDefaultName>
    <name>Setze Lock PIN/Passwort: PIN/Passwort zurücksetzen</name>
    <reset>true</reset>
    <lockType>PIN</lockType>
    <manual>false</manual>
    <variableName>param_lockPIN</variableName>
  </action>
  <action type="set_lock_password">
    <useDefaultName>true</useDefaultName>
    <name>Setze Lock PIN/Passwort: Setze PIN von Variable param_lockpin</name>
    <reset>false</reset>
    <lockType>PIN</lockType>
    <manual>false</manual>
    <variableName>param_lockpin</variableName>
  </action>
  <action type="set_system_setting">
    <useDefaultName>true</useDefaultName>
    <name>Setze Systemeinstellung: System screen_brightness_mode auf {param_brightnessmode}</name>
    <settingCategory>SYSTEM</settingCategory>
    <settingName>screen_brightness_mode</settingName>
    <value>{param_brightnessmode}</value>
    <verified>false</verified>
  </action>
  <action type="set_timer">
    <useDefaultName>false</useDefaultName>
    <name>Setze Timer</name>
    <label></label>
    <duration>{param_minute}m</duration>
    <skipUI>true</skipUI>
  </action>
  <action type="set_interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Setze Unterbrechnungen-Modus: Alle / Immer unterbrechen</name>
    <method>NOTIFICATION_LISTENER</method>
    <interruptionsMode>OFF</interruptionsMode>
  </action>
  <action type="set_interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Setze Unterbrechnungen-Modus: Keine / Nicht unterbrechen</name>
    <method>NOTIFICATION_LISTENER</method>
    <interruptionsMode>NO_INTERRUPTIONS</interruptionsMode>
  </action>
  <action type="set_interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Setze Unterbrechnungen-Modus: Nur Wecker (Android 6+)</name>
    <method>NOTIFICATION_LISTENER</method>
    <interruptionsMode>ALARMS_ONLY</interruptionsMode>
  </action>
  <action type="set_interruptions_mode">
    <useDefaultName>true</useDefaultName>
    <name>Setze Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen</name>
    <method>NOTIFICATION_LISTENER</method>
    <interruptionsMode>IMPORTANT_INTERRUPTIONS</interruptionsMode>
  </action>
  <action type="script">
    <useDefaultName>false</useDefaultName>
    <name>Setze voice Variablen</name>
    <script>value = {right(value, (length(value)-indexOf(value, " und "))-5)}</script>
  </action>
  <action type="set_immersive_mode">
    <useDefaultName>true</useDefaultName>
    <name>Setze Vollbild Modus: Auf Default zurücksetzen</name>
    <immersiveMode>UNSPECIFIED</immersiveMode>
    <showResetNotification>false</showResetNotification>
  </action>
  <action type="set_immersive_mode">
    <useDefaultName>true</useDefaultName>
    <name>Setze Vollbild Modus: Navigation nicht anzeigen</name>
    <immersiveMode>HIDE_NAVIGATION</immersiveMode>
    <showResetNotification>false</showResetNotification>
  </action>
  <action type="send_sms">
    <useDefaultName>true</useDefaultName>
    <name>SMS senden an: an {param_smsnumber} '{param_smsmessage}' (10 in 12h)</name>
    <sim></sim>
    <receiver>{param_smsnumber}</receiver>
    <message>{param_smsmessage}</message>
    <truncate>true</truncate>
    <limited>true</limited>
    <maxCount>10</maxCount>
    <duration>43200000</duration>
    <storeSMS>false</storeSMS>
    <requestDeliveryReports>false</requestDeliveryReports>
    <synchronousDeliveryReports>true</synchronousDeliveryReports>
    <deliveryReportTimeout>600000</deliveryReportTimeout>
  </action>
  <action type="sound">
    <useDefaultName>true</useDefaultName>
    <name>Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung</name>
    <soundSourceType>FILE</soundSourceType>
    <alarmName>Lautlos</alarmName>
    <path>{param_notifypath}{param_notifyfile}</path>
    <audioStreamType>NOTIFICATION</audioStreamType>
    <startPosition></startPosition>
    <showStopSoundNotification>false</showStopSoundNotification>
    <waitForSoundToFinish>true</waitForSoundToFinish>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung.</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>false</useDefaultName>
    <name>Sprachausgabe: Deutsch</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>{param_message}</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>{param_msgspeed}</speechRate>
    <embeddedSynthesis>true</embeddedSynthesis>
    <networkSynthesis>false</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device online.
Soll der Assistent gelöscht werden?</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Die Einrichtung ist nun abgeschlossen und das Amaad Device online.
Soll der Assistent gelöscht werden?</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind.
Soll der Assistent gelöscht werden?</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind.
Soll der Assistent gelöscht werden?</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Du möchtest also nicht fortfahren. Das ist schade. Bitte bedenke das dieses Android Gerät somit nicht als Amaad Device in Fhem angelegt ist. Du kannst jeder Zeit den Assistenten Flow neu aktivieren und von vorn beginnen.
Auf Wiedersehen.</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Du möchtest also nicht fortfahren. Das ist schade. Bitte bedenke das dieses Android Gerät somit nicht als Amaad Device in Fhem angelegt ist. Du kannst jeder Zeit den Assistenten Flow neu aktivieren und von vorn beginnen.
Auf Wiedersehen.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>false</useDefaultName>
    <name>Sprachausgabe: Englisch</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>{param_message}</text>
    <locale>en_US</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>{param_msgspeed}</speechRate>
    <embeddedSynthesis>true</embeddedSynthesis>
    <networkSynthesis>false</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen.</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen.</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Leider scheint es ein Problem beim einrichten des Fhem Devices gegeben zu haben. Hast Du die Amaad Comm Bridge definiert? Und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an Cooltux alias Leon, im Fhem Forum.
Soll der Assistent gelöscht werden?</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Leider scheint es ein Problem beim einrichten des Fhem Devices gegeben zu haben. Hast Du die Amaad Comm Bridge definiert? Und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an Cooltux alias Leon, im Fhem Forum.
Soll der Assistent gelöscht werden?</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal.</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>true</useDefaultName>
    <name>Sprachausgabe: Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen.</name>
    <audioStreamType>MUSIC</audioStreamType>
    <text>Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen.</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>false</embeddedSynthesis>
    <networkSynthesis>true</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="speech_output">
    <useDefaultName>false</useDefaultName>
    <name>Spracheingabe wurde nicht erkannt</name>
    <audioStreamType>NOTIFICATION</audioStreamType>
    <text>Ihre Eingabe wurde nicht verstanden</text>
    <locale>de_DE</locale>
    <usePitch>true</usePitch>
    <pitch>1.0</pitch>
    <useSpeechRate>true</useSpeechRate>
    <speechRate>1.0</speechRate>
    <embeddedSynthesis>true</embeddedSynthesis>
    <networkSynthesis>false</networkSynthesis>
    <showStopSpeechNotification>false</showStopSpeechNotification>
    <requestAudioFocus>true</requestAudioFocus>
    <audioFocusType>TRANSIENT</audioFocusType>
  </action>
  <action type="start_daydream">
    <useDefaultName>true</useDefaultName>
    <name>Starte Daydream</name>
  </action>
  <action type="open_browser_url">
    <useDefaultName>true</useDefaultName>
    <name>URL in Browser öffnen: {param_url} (mit {param_browserapp}/{param_browserappclass})</name>
    <url>{param_url}</url>
    <explicitComponent>true</explicitComponent>
    <packageName>{param_browserapp}</packageName>
    <className>{param_browserappclass}</className>
    <appName></appName>
  </action>
  <action type="create_directories">
    <useDefaultName>true</useDefaultName>
    <name>Verzeichnisse erstellen: /sdcard/AMADNG_FlowsetUpdate</name>
    <pathList>/sdcard/AMADNG_FlowsetUpdate</pathList>
  </action>
  <action type="create_directories">
    <useDefaultName>true</useDefaultName>
    <name>Verzeichnisse erstellen: /storage/emulated/0/AMADNG_FlowsetUpdate</name>
    <pathList>/storage/emulated/0/AMADNG_FlowsetUpdate</pathList>
  </action>
  <action type="create_directories">
    <useDefaultName>true</useDefaultName>
    <name>Verzeichnisse erstellen: /storage/sdcard0/AMADNG_FlowsetUpdate</name>
    <pathList>/storage/sdcard0/AMADNG_FlowsetUpdate</pathList>
  </action>
  <action type="vibrate">
    <useDefaultName>true</useDefaultName>
    <name>Vibrieren: Pattern 2 (-- --)</name>
    <custom>false</custom>
    <vibratePattern>vibrate_pattern_2</vibratePattern>
    <customPattern>0,500</customPattern>
  </action>
  <action type="wifi_reassociate">
    <useDefaultName>true</useDefaultName>
    <name>WLAN Reassoziieren</name>
  </action>
  <action type="show_home_screen">
    <useDefaultName>true</useDefaultName>
    <name>Zeige Home Screen</name>
    <pageEnabled>false</pageEnabled>
    <page>1</page>
  </action>
  <flow type="flow">
    <name>First Run Assistant</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>false</enabled>
    <executionPolicy>PARALLEL</executionPolicy>
    <triggercontainer id="t1" x="35.0" y="-2292.5">
      <trigger>App Task Beendet: ch.gridvision.ppam.androidautomagic</trigger>
    </triggercontainer>
    <actioncontainer id="t2" x="-490.0" y="5687.5">AMAD Voice Control</actioncontainer>
    <actioncontainer id="t3" x="-1435.0" y="5687.5">AMAD Voice Control</actioncontainer>
    <actioncontainer id="t4" x="280.0" y="5687.5">AMAD Voice Control</actioncontainer>
    <actioncontainer id="t5" x="420.0" y="6597.5">Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen.</actioncontainer>
    <actioncontainer id="t6" x="70.0" y="4427.5">Abfrage</actioncontainer>
    <actioncontainer id="t7" x="70.0" y="2817.5">Script: amadcmd = "firstrun"</actioncontainer>
    <actioncontainer id="t8" x="70.0" y="2502.5">Script: amaddevice_ip = {value}</actioncontainer>
    <actioncontainer id="t9" x="70.0" y="2362.5">Eingabedialog: Android Device IP Adresse Einzeiliger Text Bitte gebe die IP Adresse Deines Androidgerätes an. NUR IP kein FQDN!!!</actioncontainer>
    <actioncontainer id="t10" x="70.0" y="2117.5">Script: global_fhemip = {value}</actioncontainer>
    <actioncontainer id="t11" x="70.0" y="1942.5">Eingabedialog: FHEM Server IP Einzeiliger Text Bitte gebe die IP Adresse oder den FQDN Deines FHEM Servers an.</actioncontainer>
    <actioncontainer id="t12" x="70.0" y="1662.5">Script: global_fhemdevice = {value}</actioncontainer>
    <actioncontainer id="t13" x="70.0" y="1522.5">Eingabedialog: FHEM Devicename Einzeiliger Text Wie soll das Device in FHEM heißen?</actioncontainer>
    <actioncontainer id="t14" x="70.0" y="1242.5">Script: global_bridgeport = {value}</actioncontainer>
    <actioncontainer id="t15" x="70.0" y="1102.5">Eingabedialog: AMADCommBridge Port Einzeiliger Text Bitte gebe den Port der AMADCommBridge vom FHEM Server an.</actioncontainer>
    <actioncontainer id="t16" x="-350.0" y="332.5">Sprachausgabe: Du möchtest also nicht fortfahren. Das ist schade. Bitte bedenke das dieses Android Gerät somit nicht als Amaad Device in Fhem angelegt ist. Du kannst jeder Zeit den Assistenten Flow neu aktivieren und von vorn beginnen.
Auf Wiedersehen.</actioncontainer>
    <actioncontainer id="t17" x="70.0" y="-542.5">AMAD Voice Control</actioncontainer>
    <actioncontainer id="t18" x="-105.0" y="-1032.5">Lautstärke einstellen: Medien auf Level 8</actioncontainer>
    <actioncontainer id="t19" x="-105.0" y="-1172.5">Medianlautstärken Speichern</actioncontainer>
    <actioncontainer id="t20" x="315.0" y="3307.5">Setze Flow Status: Aktivieren Informations</actioncontainer>
    <actioncontainer id="t21" x="-875.0" y="7682.5">Setze Flow Status: Aktivieren SetCommands,Update AMAD Flowset,VoiceControl</actioncontainer>
    <actioncontainer id="t22" x="315.0" y="3167.5">Pause: 2s (Gerät wach halten)</actioncontainer>
    <actioncontainer id="t23" x="70.0" y="4287.5">Script: readingsvalcmd = "{global_fhemdevice} deviceState kaputt"; fhemcmd = "readingsval"; respfirstrun = "none";</actioncontainer>
    <conditioncontainer id="t24" x="70.0" y="-367.5">Expression: value != ""</conditioncontainer>
    <actioncontainer id="t25" x="315.0" y="-52.5">Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal.</actioncontainer>
    <conditioncontainer id="t26" x="-70.0" y="-52.5">Expression: value == "nein"</conditioncontainer>
    <conditioncontainer id="t27" x="280.0" y="6037.5">Expression: value == "ja"</conditioncontainer>
    <actioncontainer id="t28" x="280.0" y="6597.5">Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen.</actioncontainer>
    <actioncontainer id="t29" x="735.0" y="6387.5">Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal.</actioncontainer>
    <conditioncontainer id="t30" x="280.0" y="5862.5">Expression: value != ""</conditioncontainer>
    <conditioncontainer id="t31" x="350.0" y="6107.5">Expression: value == "nein"</conditioncontainer>
    <conditioncontainer id="t32" x="-490.0" y="5862.5">Expression: value != ""</conditioncontainer>
    <actioncontainer id="t33" x="-35.0" y="6387.5">Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal.</actioncontainer>
    <conditioncontainer id="t34" x="-420.0" y="6107.5">Expression: value == "nein"</conditioncontainer>
    <conditioncontainer id="t35" x="-490.0" y="6037.5">Expression: value == "ja"</conditioncontainer>
    <actioncontainer id="t36" x="-490.0" y="6912.5">Flows löschen: First Run Assistant</actioncontainer>
    <actioncontainer id="t37" x="-490.0" y="6597.5">Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen.</actioncontainer>
    <actioncontainer id="t38" x="-350.0" y="6597.5">Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen.</actioncontainer>
    <conditioncontainer id="t39" x="-1435.0" y="5862.5">Expression: value != ""</conditioncontainer>
    <actioncontainer id="t40" x="-980.0" y="6387.5">Sprachausgabe: Oh das tut mir leid, da scheine ich Dich nicht verstanden zu haben. Bitte versuche es mit etwas Ruhe im Hintergrund noch einmal.</actioncontainer>
    <actioncontainer id="t41" x="-1435.0" y="6597.5">Sprachausgabe: In Ordnung. Der Einrichtungs Assistent wird gelöscht. Auf Wiedersehen.</actioncontainer>
    <actioncontainer id="t42" x="-1295.0" y="6597.5">Sprachausgabe: In Ordnung. Der Einrichtungs Assistent bleibt erhalten. Auf Wiedersehen.</actioncontainer>
    <conditioncontainer id="t43" x="-1435.0" y="6037.5">Expression: value == "ja"</conditioncontainer>
    <conditioncontainer id="t44" x="-1365.0" y="6107.5">Expression: value == "nein"</conditioncontainer>
    <actioncontainer id="t45" x="70.0" y="717.5">Sprachausgabe: Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen.</actioncontainer>
    <actioncontainer id="t46" x="70.0" y="2957.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t47" x="70.0" y="3657.5">Sprachausgabe: Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung.</actioncontainer>
    <conditioncontainer id="t48" x="-140.0" y="3307.5">Expression: sprachassi == "ja"</conditioncontainer>
    <actioncontainer id="t49" x="-175.0" y="3657.5">Meldungsdialog:  Alle Informationen wurden nun erfasst und zur Amaad Comm Bridge gesendet. Ich werde gleich einmal prüfen ob die Einrichtung des Devices in Fhem gelungen ist. Gib mir bitte bis zu einer Minute Zeit für die Prüfung.</actioncontainer>
    <conditioncontainer id="t50" x="70.0" y="4672.5">Expression: respreadingsval != "kaputt" and respreadingsval != "none"</conditioncontainer>
    <conditioncontainer id="t51" x="280.0" y="5127.5">Expression: sprachassi == "ja"</conditioncontainer>
    <actioncontainer id="t52" x="280.0" y="5302.5">Sprachausgabe: Leider scheint es ein Problem beim einrichten des Fhem Devices gegeben zu haben. Hast Du die Amaad Comm Bridge definiert? Und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an Cooltux alias Leon, im Fhem Forum.
Soll der Assistent gelöscht werden?</actioncontainer>
    <actioncontainer id="t53" x="525.0" y="5302.5">Meldungsdialog:  Leider scheint es ein Problem beim Einrichten des FHEM Devices gegeben zu haben. Hast Du die AMADCommBridge definiert, und ist sie auch aktiv? Sollte es weiterhin Probleme geben, wende Dich bitte an CoolTux alias Leon, im FHEM Forum.</actioncontainer>
    <conditioncontainer id="t54" x="-490.0" y="5302.5">Expression: sprachassi == "ja"</conditioncontainer>
    <actioncontainer id="t55" x="-490.0" y="5477.5">Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Amaad, Flows aktiv sind.
Soll der Assistent gelöscht werden?</actioncontainer>
    <actioncontainer id="t56" x="-210.0" y="5477.5">Meldungsdialog:  Die Einrichtung ist nun abgeschlossen und das Amaad Device wurde angelegt. Es scheint aber noch keine Verbindung zwischen Fhem und Deinem Amaad Device zu bestehen. Mache am besten einmal ein Status Request in Fhem für das Amaad Device. Ist der Status in Fhem weiterhin offline schaue bitte ob alle Am</actioncontainer>
    <conditioncontainer id="t57" x="105.0" y="4777.5">Expression: respreadingsval == "online"</conditioncontainer>
    <conditioncontainer id="t58" x="-1435.0" y="5302.5">Expression: sprachassi == "ja"</conditioncontainer>
    <actioncontainer id="t59" x="-1435.0" y="5512.5">Sprachausgabe: Die Einrichtung ist nun abgeschlossen und das Amaad Device online.
Soll der Assistent gelöscht werden?</actioncontainer>
    <actioncontainer id="t60" x="-105.0" y="-892.5">AMAD First Run Assistent Begrüßung</actioncontainer>
    <conditioncontainer id="t61" x="-140.0" y="-122.5">Expression: value == "ja"</conditioncontainer>
    <actioncontainer id="t62" x="-105.0" y="-1872.5">Eingabedialog: Wünschst Du einen sprachgestützten oder dialoggestützten Installationsassistanten? Einfachauswahl Menü Sprache,Dialog (15s)</actioncontainer>
    <conditioncontainer id="t63" x="-105.0" y="-1417.5">Expression: sprachassi == "ja"</conditioncontainer>
    <conditioncontainer id="t64" x="-175.0" y="-1347.5">Expression: sprachassi == "nein"</conditioncontainer>
    <actioncontainer id="t65" x="-105.0" y="-1627.5">Script: if(index == 0) { sprachassi = "ja"; } else if(index == 1) { sprachassi = "nein"; }</actioncontainer>
    <actioncontainer id="t66" x="-595.0" y="-87.5">Script: global_activetask = "none"; global_apssid = "none"; global_userflowstate = "none";</actioncontainer>
    <actioncontainer id="t67" x="-595.0" y="-227.5">Script: global_amadid = getDate();</actioncontainer>
    <actioncontainer id="t68" x="-595.0" y="-367.5">Setze Flow Status: Aktivieren Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t69" x="175.0" y="-1872.5">Setze Flow Status: Deaktivieren First Run Assistant</actioncontainer>
    <actioncontainer id="t70" x="-945.0" y="157.5">Meldungsdialog:  Wunderbar. Bitte nimm Dir Zeit und lese Dir die Hilfe Dialoge genau durch. Wenn Du Dir unsicher bist, kannst Du die Standardeinstellung, sofern vorhanden, belassen. Lass uns nun mit der Einrichtung beginnen.</actioncontainer>
    <actioncontainer id="t71" x="-1435.0" y="7227.5">Flows löschen: First Run Assistant</actioncontainer>
    <actioncontainer id="t72" x="280.0" y="7227.5">Flows löschen: First Run Assistant</actioncontainer>
    <actioncontainer id="t73" x="-1155.0" y="5512.5">Meldungsdialog:  Die Einrichtung ist nun abgeschlossen und das AMAD Device online.</actioncontainer>
    <connection from="t1" to="t62" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t1" to="t69" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t2" to="t32" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t39" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t30" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t6" to="t50" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t7" to="t46" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t8" to="t7" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t9" to="t8" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t9" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t11" to="t10" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t12" to="t11" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t12" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t13" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t15" to="t14" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t17" to="t24" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t60" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t18" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t22" to="t20" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t23" to="t6" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t61" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t25" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t25" to="t17" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t26" to="t25" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t26" to="t16" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t27" to="t31" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t27" to="t28" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t28" to="t72" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t29" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t30" to="t27" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t30" to="t29" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t31" to="t5" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t31" to="t29" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t32" to="t35" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t32" to="t33" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t33" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t34" to="t33" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t34" to="t38" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t35" to="t34" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t35" to="t37" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t37" to="t36" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t37" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t38" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t39" to="t43" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t39" to="t40" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t40" to="t3" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t41" to="t71" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t41" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t42" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t43" to="t44" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t43" to="t41" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t44" to="t40" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t44" to="t42" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t45" to="t15" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t46" to="t22" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t46" to="t48" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t47" to="t23" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t48" to="t47" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t48" to="t49" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t49" to="t23" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t50" to="t57" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t50" to="t51" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t51" to="t52" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t51" to="t53" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t52" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t54" to="t55" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t54" to="t56" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t55" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t56" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t57" to="t54" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t57" to="t58" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t58" to="t59" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t58" to="t73" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t59" to="t3" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t60" to="t17" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t61" to="t26" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t61" to="t45" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t61" to="t68" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t62" to="t65" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t19" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t64" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t64" to="t70" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t65" to="t63" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t67" to="t66" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t68" to="t67" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t70" to="t15" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t70" to="t68" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t73" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
  <flow type="flow">
    <name>Informations</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>true</enabled>
    <executionPolicy>QUEUE</executionPolicy>
    <emergencyStopCount>900</emergencyStopCount>
    <actioncontainer id="t1" x="1085.0" y="-3482.5">Script: daydream_state = "on"</actioncontainer>
    <actioncontainer id="t2" x="1225.0" y="-3482.5">Script: daydream_state = "off"</actioncontainer>
    <conditioncontainer id="t3" x="1855.0" y="-3027.5">Display Orientierung: Portrait</conditioncontainer>
    <actioncontainer id="t4" x="1785.0" y="-3272.5">Script: screen_orientation = "portrait"</actioncontainer>
    <actioncontainer id="t5" x="1925.0" y="-3272.5">Script: screen_orientation = "landscape"</actioncontainer>
    <actioncontainer id="t6" x="2730.0" y="-3482.5">Script: dock_state = "docked"</actioncontainer>
    <actioncontainer id="t7" x="2870.0" y="-3482.5">Script: dock_state = "undocked"</actioncontainer>
    <actioncontainer id="t8" x="1925.0" y="-3657.5">Script: screen_orientation_mode = "manual"</actioncontainer>
    <conditioncontainer id="t9" x="-1855.0" y="-3832.5">Expression: scrcount &lt; 5</conditioncontainer>
    <actioncontainer id="t10" x="-1855.0" y="-3657.5">Script: scrcount = scrcount + 1</actioncontainer>
    <actioncontainer id="t11" x="-1855.0" y="-3517.5">Pause: 2s (Gerät wach halten)</actioncontainer>
    <conditioncontainer id="t12" x="2800.0" y="-3132.5">Dock Status: Docked</conditioncontainer>
    <conditioncontainer id="t13" x="1855.0" y="-3482.5">Display automatisch drehen eingeschaltet</conditioncontainer>
    <conditioncontainer id="t14" x="1155.0" y="-3132.5">Expression: trigger == "Daydream Status: Gestartet"</conditioncontainer>
    <conditioncontainer id="t15" x="-455.0" y="-3097.5">Bluetooth eingeschaltet</conditioncontainer>
    <conditioncontainer id="t16" x="-1610.0" y="-3342.5">Keyguard gesperrt</conditioncontainer>
    <conditioncontainer id="t17" x="-1855.0" y="-3342.5">Expression: keyguard == "locked"</conditioncontainer>
    <conditioncontainer id="t18" x="3150.0" y="-3132.5">Expression: getAndroidSDKVersion() &gt;= "16"</conditioncontainer>
    <conditioncontainer id="t19" x="-1610.0" y="-3657.5">Display eingeschaltet</conditioncontainer>
    <conditioncontainer id="t20" x="-2100.0" y="-3657.5">Display eingeschaltet</conditioncontainer>
    <conditioncontainer id="t21" x="-2100.0" y="-3097.5">Expression: getAndroidSDKVersion() &gt;= "16"</conditioncontainer>
    <conditioncontainer id="t22" x="-2730.0" y="-3342.5">Unterbrechnungen-Modus: Nur Wecker (Android 6+)</conditioncontainer>
    <conditioncontainer id="t23" x="-2870.0" y="-3342.5">Unterbrechnungen-Modus: Keine / Nicht unterbrechen</conditioncontainer>
    <conditioncontainer id="t24" x="-3010.0" y="-3342.5">Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen</conditioncontainer>
    <conditioncontainer id="t25" x="-3150.0" y="-3342.5">Unterbrechnungen-Modus: Alle / Immer unterbrechen</conditioncontainer>
    <actioncontainer id="t26" x="-3150.0" y="-3552.5">Script: dndValue = "always"</actioncontainer>
    <actioncontainer id="t27" x="-3010.0" y="-3552.5">Script: dndValue = "onlyImportant"</actioncontainer>
    <actioncontainer id="t28" x="-2870.0" y="-3552.5">Script: dndValue = "never"</actioncontainer>
    <actioncontainer id="t29" x="-2730.0" y="-3552.5">Script: dndValue = "alarmClockOnly"</actioncontainer>
    <actioncontainer id="t30" x="-2030.0" y="-3832.5">Script: screen_state = "off"</actioncontainer>
    <actioncontainer id="t31" x="-1680.0" y="-3832.5">Script: screen_state = "on {keyguard}"</actioncontainer>
    <actioncontainer id="t32" x="-1540.0" y="-3832.5">Script: screen_state = "off {keyguard}"</actioncontainer>
    <actioncontainer id="t33" x="-1225.0" y="-3657.5">Script: airplanemode = "off"</actioncontainer>
    <actioncontainer id="t34" x="-455.0" y="-3342.5">Script: bluetooth_state = "on"</actioncontainer>
    <actioncontainer id="t35" x="1260.0" y="1207.5">Script: androidVersion = "not supported funktion"</actioncontainer>
    <conditioncontainer id="t36" x="3395.0" y="-2047.5">App Task läuft: {global_activetask} (neuster)</conditioncontainer>
    <actioncontainer id="t37" x="3465.0" y="-2257.5">Script: runTask = "1"</actioncontainer>
    <actioncontainer id="t38" x="3325.0" y="-2257.5">Script: runTask = "0"</actioncontainer>
    <conditioncontainer id="t39" x="3115.0" y="-2047.5">Expression: getAndroidSDKVersion() &gt;= "19"</conditioncontainer>
    <actioncontainer id="t40" x="3115.0" y="-2257.5">Script: runTask = "not supported android version"</actioncontainer>
    <actioncontainer id="t41" x="2905.0" y="-2292.5">Script: runTask = "null"</actioncontainer>
    <conditioncontainer id="t42" x="3185.0" y="-1872.5">Expression: global_activetask != null</conditioncontainer>
    <conditioncontainer id="t43" x="-1855.0" y="-2782.5">Expression: trigger == "Display Status: Aus" or trigger == "Display Status: Ein" or udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t44" x="1155.0" y="-2782.5">Expression: trigger == "Daydream Status: Gestartet" or trigger == "Daydream Status: Gestoppt"</conditioncontainer>
    <conditioncontainer id="t45" x="1855.0" y="-2782.5">Expression: trigger == "Display Orientierung: Landscape" or trigger == "Display Orientierung: Portrait" or trigger == "Display Status: Ein" or trigger == "Display Status: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t46" x="840.0" y="-2782.5">Expression: trigger == "Akku Ladestand: grösser als 0%"</conditioncontainer>
    <conditioncontainer id="t47" x="-245.0" y="997.5">Stromversorgung: Angeschlossen</conditioncontainer>
    <actioncontainer id="t48" x="1785.0" y="-3657.5">Script: screen_orientation_mode = "auto"</actioncontainer>
    <actioncontainer id="t49" x="-455.0" y="-3552.5">Script: bluetooth_state = "off"</actioncontainer>
    <conditioncontainer id="t50" x="3220.0" y="-3307.5">Keyguard mit Sicherheit</conditioncontainer>
    <conditioncontainer id="t51" x="3535.0" y="-2782.5">Expression: trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle"</conditioncontainer>
    <conditioncontainer id="t52" x="-1120.0" y="-2782.5">Expression: trigger == "Flugmodus: Aus" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t53" x="105.0" y="1102.5">Bluetooth Gerät verbunden: Beliebiges Geräte (Advanced Audio Distribution)</conditioncontainer>
    <actioncontainer id="t54" x="35.0" y="1207.5">Script: volume = {volumeBT}</actioncontainer>
    <actioncontainer id="t55" x="-770.0" y="-3342.5">Pause: 2s (Gerät wach halten)</actioncontainer>
    <conditioncontainer id="t56" x="-770.0" y="-3167.5">Musik Aktiv</conditioncontainer>
    <actioncontainer id="t57" x="735.0" y="1417.5">Benachrichtigung auf Bildschirm: [AMAD2] Nicht mehr benötigte AMAD Flows wurden entfernt! (lange)</actioncontainer>
    <conditioncontainer id="t58" x="210.0" y="-2782.5">Expression: trigger == "Systemeinstellung verändert: System volume_music_bt_a2dp" or trigger == "Systemeinstellung verändert: System volume_music_speaker" or trigger == "Systemeinstellung verändert: System volume_music_headphone" or trigger == "Systemeinstellung verändert: System volume_music_headset"</conditioncontainer>
    <actioncontainer id="t59" x="35.0" y="997.5">Initialisiere Variable Systemeinstellung: volumeMusikBluetooth.2</actioncontainer>
    <actioncontainer id="t60" x="175.0" y="1207.5">Script: volume = {volumeSP}</actioncontainer>
    <actioncontainer id="t61" x="175.0" y="997.5">Initialisiere Variable Systemeinstellung: volumeMusikSpeaker.2</actioncontainer>
    <conditioncontainer id="t62" x="-2940.0" y="-2782.5">Expression: trigger == "Unterbrechnungen-Modus: Alle / Immer unterbrechen" or trigger == "Unterbrechnungen-Modus: Keine / Nicht unterbrechen" or trigger == "Unterbrechnungen-Modus: Nur Wecker (Android 6+)" or trigger == "Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t63" x="-2940.0" y="-3097.5">Expression: getAndroidSDKVersion() &gt;= "21"</conditioncontainer>
    <actioncontainer id="t64" x="-1120.0" y="-3097.5">Script: airpcount = 0</actioncontainer>
    <conditioncontainer id="t65" x="-1225.0" y="-3342.5">Host erreichbar: {global_fhemip}:{global_bridgeport}</conditioncontainer>
    <actioncontainer id="t66" x="3885.0" y="-997.5">WLAN Reassoziieren</actioncontainer>
    <conditioncontainer id="t67" x="1015.0" y="157.5">Expression: global_fhemip != null or global_bridgeport != null</conditioncontainer>
    <conditioncontainer id="t68" x="3885.0" y="-3132.5">Expression: getAndroidSDKVersion() &gt;= "19"</conditioncontainer>
    <actioncontainer id="t69" x="3745.0" y="-3482.5">Script: notification_text = "Aktiviere Automagic unter Einstellungen -&gt; Benachrichtigungen -&gt; Benachrichtigungszugriff"</actioncontainer>
    <actioncontainer id="t70" x="4025.0" y="-3482.5">Script: notification_text = "not supported from your device"</actioncontainer>
    <conditioncontainer id="t71" x="3885.0" y="-2782.5">Expression: trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp"</conditioncontainer>
    <actioncontainer id="t72" x="-875.0" y="997.5">Initialisiere Variable Systemeinstellung: screenBrightness</actioncontainer>
    <actioncontainer id="t73" x="-455.0" y="997.5">Initialisiere Variable Systemeinstellung: volumeNotification</actioncontainer>
    <conditioncontainer id="t74" x="-770.0" y="-2782.5">Expression: trigger == "Medien Session verändert" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t75" x="3885.0" y="-1592.5">WLAN verfügbar: {global_apssid}</conditioncontainer>
    <actioncontainer id="t76" x="4795.0" y="-3832.5">Script: intentRadioState = "\"intentRadioState\":" + " \"" + {irstate} + "\"" + "," + "\"intentRadioName\":" + " \"" + {irname} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t77" x="2800.0" y="-3832.5">Script: dockingState = "\"dockingState\":" + " \"" + {dock_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t78" x="1855.0" y="-3832.5">Script: screenOrientation = "\"screenOrientation\":" + " \"" + {screen_orientation} + "\"" + "," + "\"screenOrientationMode\":" + " \"" + {screen_orientation_mode} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t79" x="0.0" y="-3832.5">Script: volumeNotification = "\"volumeNotification\":" + " \"" + {volumeNotification} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t80" x="-1120.0" y="-3832.5">Script: airplanemode = "\"airplanemode\":" + " \"" + {airplanemode} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t81" x="3220.0" y="-2467.5">Script: checkActiveTask = "\"checkActiveTask\":" + " \"" + {runTask} + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t82" x="595.0" y="1417.5">Expression: Leon == "Gaultier"</conditioncontainer>
    <actioncontainer id="t83" x="665.0" y="1207.5">Flows löschen: MultimediaControl</actioncontainer>
    <conditioncontainer id="t84" x="2310.0" y="-2782.5">Expression: trigger == "Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic" or trigger == "Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t85" x="2310.0" y="-3027.5">Expression: getAndroidSDKVersion() &gt;= "19"</conditioncontainer>
    <actioncontainer id="t86" x="2170.0" y="-3482.5">Script: notification_text = "Aktiviere Automagic unter Einstellungen -&gt; Benachrichtigungen -&gt; Benachrichtigungszugriff"</actioncontainer>
    <conditioncontainer id="t87" x="2310.0" y="-3482.5">Benachrichtigung in Statusbar angezeigt: Automagic</conditioncontainer>
    <actioncontainer id="t88" x="4270.0" y="-892.5">Script: deviceState = "\"deviceState\": \"online\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t89" x="2800.0" y="-2782.5">Expression: trigger == "Dock Event: Docked" or trigger == "Dock Event: Undocked" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <actioncontainer id="t90" x="1015.0" y="-4602.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t91" x="-455.0" y="-3832.5">Script: bluetooth = "\"bluetooth\":" + " \"" + {bluetooth_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t92" x="-315.0" y="-3552.5">Script: connected_devices_names = "none"; connected_devices_addresses = "none"</actioncontainer>
    <actioncontainer id="t93" x="-315.0" y="-3832.5">Script: btdeviceinfo = "\"connectedBTdevices\":" + " \"" + {connected_devices_names} + "\"" + "," + "\"connectedBTdevicesMAC\":" + " \"" + {connected_devices_addresses} + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t94" x="-315.0" y="-3097.5">Bluetooth Gerät verbunden: Beliebiges Geräte</conditioncontainer>
    <conditioncontainer id="t95" x="-420.0" y="-2782.5">Expression: trigger == "Bluetooth Status: Schaltet aus, Aus" or trigger == "Bluetooth Gerät verbunden: Alle Geräte" or trigger == "Bluetooth Gerät getrennt: Alle Geräte" or trigger == "Bluetooth Status: Schaltet ein, Ein" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <actioncontainer id="t96" x="-1120.0" y="-2327.5">Script: flow_SetCommands = "\"flow_SetCommands\":" + " \"" + {setCommandFlow_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t97" x="-1120.0" y="-2152.5">Setze Flow Status: Aktivieren SetCommands</actioncontainer>
    <actioncontainer id="t98" x="-1015.0" y="-1977.5">Script: setCommandFlow_state = "aktiv"</actioncontainer>
    <actioncontainer id="t99" x="-1225.0" y="-1977.5">Script: setCommandFlow_state = "inaktiv"</actioncontainer>
    <conditioncontainer id="t100" x="-1120.0" y="-1802.5">Flow Aktiv: SetCommands</conditioncontainer>
    <conditioncontainer id="t101" x="-1120.0" y="-1557.5">Expression: trigger == "Periodischer Timer: alle 120s"</conditioncontainer>
    <conditioncontainer id="t102" x="-1855.0" y="-1802.5">Expression: global_userflowstate != "none"</conditioncontainer>
    <conditioncontainer id="t103" x="-1855.0" y="-1977.5">Flow Aktiv: {global_userflowstate}</conditioncontainer>
    <actioncontainer id="t104" x="-1925.0" y="-2152.5">Script: flowState = "inactive"</actioncontainer>
    <actioncontainer id="t105" x="-1785.0" y="-2152.5">Script: flowState = "active"</actioncontainer>
    <actioncontainer id="t106" x="-1855.0" y="-2327.5">Script: flow_informations = "\"userFlowState\":" + " \"" + {flowState} + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t107" x="-1855.0" y="-1557.5">Expression: trigger == "Periodischer Timer: alle 120s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t108" x="-2485.0" y="-1802.5">Flow Aktiv: Send Data to AMADCommBridge</conditioncontainer>
    <actioncontainer id="t109" x="-2450.0" y="-2292.5">Setze Flow Status: Aktivieren Send Data to AMADCommBridge</actioncontainer>
    <conditioncontainer id="t110" x="-2485.0" y="-1557.5">Expression: trigger == "Periodischer Timer: alle 120s"</conditioncontainer>
    <actioncontainer id="t111" x="2310.0" y="-3832.5">Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t112" x="-1050.0" y="-3342.5">Pause: 2s (Gerät wach halten)</actioncontainer>
    <actioncontainer id="t113" x="-1050.0" y="-3517.5">Script: airpcount = airpcount + 1</actioncontainer>
    <conditioncontainer id="t114" x="-1050.0" y="-3657.5">Expression: airpcount &lt; 11</conditioncontainer>
    <actioncontainer id="t115" x="2450.0" y="-3482.5">Script: notification_text = "not supported from your device"</actioncontainer>
    <actioncontainer id="t116" x="-770.0" y="-3832.5">Script: currentMusic = "\"currentMusicTrack\":" + " \"" + {title} + "\"" + "," + "\"currentMusicAlbum\":" + " \"" + {description} + "\"" + "," + "\"currentMusicArtist\":" + " \"" + {subtitle} + "\"" + "," + "\"currentMusicApp\":" + " \"" + {musicapp} + "\"" + "," + "\"currentMusicIcon\":" + " \"" + {icon} + "\"" + "," + "\"currentMusicState\":" + " \"" + {playback_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t117" x="210.0" y="-3832.5">Script: volumevalue = "\"volume\":" + " \"" + {volume} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t118" x="525.0" y="-3832.5">Script: nextAlarm = "\"nextAlarmTime\":" + " \"" + {next_alarmtime} + "\"" + "," + "\"nextAlarmDay\":" + " \"" + {next_alarmday} + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t119" x="0.0" y="-2782.5">Expression: trigger == "Systemeinstellung verändert: System volume_ring_speaker"</conditioncontainer>
    <conditioncontainer id="t120" x="3255.0" y="-1802.5">Expression: package_name == {global_activetask}</conditioncontainer>
    <conditioncontainer id="t121" x="4270.0" y="-1592.5">Expression: trigger == "Periodischer Timer: alle 120s" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <conditioncontainer id="t122" x="1015.0" y="-227.5">Expression: trigger == "App Task Beendet" or trigger == "App Task Gestartet"</conditioncontainer>
    <conditioncontainer id="t123" x="3255.0" y="-1592.5">Expression: trigger == "App Task Gestartet" or trigger == "Periodischer Timer: alle 120s"</conditioncontainer>
    <conditioncontainer id="t124" x="-2450.0" y="-2782.5">Expression: trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE" or trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <actioncontainer id="t125" x="-2450.0" y="-3552.5">Script: if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT") { nextalarmstate = "alert" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS") { nextalarmstate = "dismiss" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE") { nextalarmstate = "done" } if(trigger == "Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE") { nextalarmstate = "snooze" }</actioncontainer>
    <conditioncontainer id="t126" x="525.0" y="-2782.5">Expression: trigger == "Systemeinstellung verändert: System next_alarm" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <actioncontainer id="t127" x="525.0" y="-3097.5">Initialisiere Variable Nächster Alarm: next_alarm</actioncontainer>
    <actioncontainer id="t128" x="630.0" y="-3587.5">Script: next_alarmtime = "{next_alarm,dateformat,HH:mm}"</actioncontainer>
    <actioncontainer id="t129" x="420.0" y="-3587.5">Script: next_alarmday = "{next_alarm,dateformat,c}"</actioncontainer>
    <actioncontainer id="t130" x="5040.0" y="-3832.5">Script: volumeRingSound = "\"volumeRingSound\":" + " \"" + {volumeRingSound} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t131" x="5320.0" y="-3832.5">Script: wiredHeadsetPlugged = "\"wiredHeadsetPlugged\":" + " \"" + {headsetValue} + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t132" x="5320.0" y="-2782.5">Expression: trigger == "Kabelgebundenes Headset Verbunden" or trigger == "Kabelgebundenes Headset Getrennt"</conditioncontainer>
    <conditioncontainer id="t133" x="5040.0" y="-2782.5">Expression: trigger == "Systemeinstellung verändert: System volume_ring"</conditioncontainer>
    <conditioncontainer id="t134" x="4795.0" y="-2782.5">Expression: trigger == "Genereller Broadcast: wenn org.smblott.intentradio.STATE"</conditioncontainer>
    <conditioncontainer id="t135" x="5320.0" y="-3132.5">Kabelgebundenes Headset verbunden</conditioncontainer>
    <actioncontainer id="t136" x="5250.0" y="-3482.5">Script: headsetValue = 1</actioncontainer>
    <actioncontainer id="t137" x="-665.0" y="997.5">Initialisiere Variable Systemeinstellung: volumeRingSound</actioncontainer>
    <actioncontainer id="t138" x="4270.0" y="-3482.5">Script: notification_text = "Aktiviere Automagic unter Einstellungen -&gt; Benachrichtigungen -&gt; Benachrichtigungszugriff"</actioncontainer>
    <conditioncontainer id="t139" x="4410.0" y="-3482.5">Benachrichtigung in Statusbar angezeigt: Telegram Messenger</conditioncontainer>
    <actioncontainer id="t140" x="4550.0" y="-3482.5">Script: notification_text = "not supported from your device"</actioncontainer>
    <conditioncontainer id="t141" x="4410.0" y="-3132.5">Expression: getAndroidSDKVersion() &gt;= "19"</conditioncontainer>
    <conditioncontainer id="t142" x="4410.0" y="-2782.5">Expression: trigger == "Benachrichtigung in Statusbar angezeigt: org.telegram.messenger"</conditioncontainer>
    <conditioncontainer id="t143" x="-3430.0" y="-2782.5">Expression: trigger == "SMS Empfangen: Alle"</conditioncontainer>
    <actioncontainer id="t144" x="-2450.0" y="-3867.5">Script: nextAlarmState = "\"nextAlarmState\":" + " \"" + {nextalarmstate} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t145" x="-2975.0" y="-3867.5">Script: doNotDisturb = "\"doNotDisturb\":" + " \"" + {dndValue} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t146" x="-2170.0" y="-3832.5">Script: screen_state = "on"</actioncontainer>
    <actioncontainer id="t147" x="-1680.0" y="-3517.5">Script: keyguard = "locked"</actioncontainer>
    <actioncontainer id="t148" x="-1540.0" y="-3517.5">Script: keyguard = "unlocked"</actioncontainer>
    <actioncontainer id="t149" x="-1610.0" y="-3097.5">Script: scrcount = 0</actioncontainer>
    <actioncontainer id="t150" x="-1855.0" y="-4007.5">Script: screen = "\"screen\":" + " \"" + {screen_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t151" x="3150.0" y="-3482.5">Script: keyguardset = "1"</actioncontainer>
    <actioncontainer id="t152" x="3290.0" y="-3482.5">Script: keyguardset = "0"</actioncontainer>
    <conditioncontainer id="t153" x="3220.0" y="-2782.5">Expression: udef_trigger == "setLockPin" or trigger == "HTTP Request: /fhem-amad/deviceInfo/"</conditioncontainer>
    <actioncontainer id="t154" x="3290.0" y="-3132.5">Script: keyguardset = "not supported from your device"</actioncontainer>
    <actioncontainer id="t155" x="3220.0" y="-3832.5">Script: keyguardSet = "\"keyguardSet\":" + " \"" + {keyguardset} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t156" x="1330.0" y="1417.5">Script: androidVersion = "\"androidVersion\":" + " \"" + {androidVersion} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t157" x="1295.0" y="997.5">Get Android Version</actioncontainer>
    <actioncontainer id="t158" x="1155.0" y="-3832.5">Script: daydream = "\"daydream\":" + " \"" + {daydream_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t159" x="1015.0" y="1417.5">Prüfe und setze globale Variable</actioncontainer>
    <conditioncontainer id="t160" x="1015.0" y="682.5">Expression: trigger == "HTTP Request: /fhem-amad/deviceInfo/" and header_amadid == {global_amadid}</conditioncontainer>
    <conditioncontainer id="t161" x="3885.0" y="-3482.5">Benachrichtigung in Statusbar angezeigt: WhatsApp</conditioncontainer>
    <actioncontainer id="t162" x="3535.0" y="-3832.5">Script: incomingCaller = "\"incomingCallerName\":" + " \"" + {contact_name} + "\"" + "," + "\"incomingCallerNumber\":" + " \"" + {incoming_number} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t163" x="4410.0" y="-3832.5">Script: incomingTelegramMessage = "\"incomingTelegramMessage\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t164" x="3885.0" y="-3832.5">Script: incomingWhatsAppMessage = "\"incomingWhatsAppMessage\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t165" x="-3430.0" y="-3867.5">Script: incomingSmsMessage = "\"incomingSmsMessage\":" + " \"" + {sms_sender} + " - " + replaceAll({sms_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t166" x="-770.0" y="-2992.5">Script: if(package_name == "com.google.android.music") { musicapp = "Google Musik" } else if(package_name == "com.amazon.mp3") { musicapp = "Amazon Musik" } else if(package_name == "com.google.android.videos") { musicapp = "Google Video" } else if(package_name == "com.spotify.music") { musicapp = "Spotify Musik" } else if(package_name == "com.google.android.youtube") { musicapp = "YouTube" } else if(package_name == "com.google.android.apps.youtube.kids") { musicapp = "YouTube Kids" } else if(package_name == "tunein.player") { musicapp = "TuneIn Player" } else if(package_name == "com.rhapsody.alditalk") { musicapp = "Aldi Life Musik" } else if(package_name == "org.videolan.vlc") { musicapp = "VLC Player" } else if(package_name == "com.sec.android.app.music") { musicapp = "Samsung Music Player" } else if(package_name == "deezer.android.app") { musicapp = "Deezer" } else if(package_name == "com.maxmpz.audioplayer") { musicapp = "Poweramp" } else if(package_name == "com.mxtech.videoplayer.pro") { musicapp = "MXPlayerPro" }</actioncontainer>
    <actioncontainer id="t167" x="-770.0" y="-3517.5">Script: subtitle = "no player active"; title = "no player active"; description = "no player active"; musicapp = "no player active"; icon = "no player active"</actioncontainer>
    <actioncontainer id="t168" x="-770.0" y="-3657.5">Script: if(playback_state == 0) { playback_state = "none" } else if(playback_state == 1) { playback_state = "stopped" } else if(playback_state == 2) { playback_state = "pause" } else if(playback_state == 3) { playback_state = "play" } else if(playback_state == 4) { playback_state = "fast forward" } else if(playback_state == 5) { playback_state = "fast backward" } else if(playback_state == 6) { playback_state = "buffert" } else if(playback_state == 7) { playback_state = "error" } else if(playback_state == 8) { playback_state = "connect" } else if(playback_state == 9) { playback_state = "skip forward" } else if(playback_state == 10) { playback_state = "skip backward" } else if(playback_state == 11) { playback_state = "jump to position in playlist" }</actioncontainer>
    <conditioncontainer id="t169" x="1505.0" y="-2782.5">Expression: trigger == "Systemeinstellung verändert: System screen_brightness"</conditioncontainer>
    <actioncontainer id="t170" x="1505.0" y="-3832.5">Script: screenBrightness = "\"screenBrightness\":" + " \"" + {screenBrightness} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t171" x="5670.0" y="-3832.5">Script: screenBrightnessMode = "\"screenBrightnessMode\":" + " \"" + {screenBrightnessMode} + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t172" x="1015.0" y="-1242.5">Host erreichbar: {global_fhemip}:{global_bridgeport}</conditioncontainer>
    <actioncontainer id="t173" x="5390.0" y="-3482.5">Script: headsetValue = 0</actioncontainer>
    <conditioncontainer id="t174" x="5670.0" y="-2782.5">Expression: trigger == "Systemeinstellung verändert: System screen_brightness_mode"</conditioncontainer>
    <actioncontainer id="t175" x="5670.0" y="-3482.5">Script: if(screenBrightnessMode == 1) { screenBrightnessMode = "on"; } else { screenBrightnessMode = "off"; }</actioncontainer>
    <triggercontainer id="t176" x="1015.0" y="-927.5">
      <trigger>Genereller Broadcast: wenn com.android.deskclock.ALARM_DONE</trigger>
      <trigger>Kabelgebundenes Headset Verbunden</trigger>
      <trigger>Genereller Broadcast: wenn org.smblott.intentradio.STATE</trigger>
      <trigger>Systemeinstellung verändert: System volume_music_headphone</trigger>
      <trigger>Kabelgebundenes Headset Getrennt</trigger>
      <trigger>SMS Empfangen: Alle</trigger>
      <trigger>Systemeinstellung verändert: System volume_music_headset</trigger>
      <trigger>Stromversorgung: Angeschlossen</trigger>
      <trigger>Bluetooth Status: Schaltet ein, Ein</trigger>
      <trigger>Display Status: Aus</trigger>
      <trigger>Display Orientierung: Portrait</trigger>
      <trigger>Genereller Broadcast: wenn com.android.deskclock.ALARM_SNOOZE</trigger>
      <trigger>Genereller Broadcast: wenn com.android.deskclock.ALARM_DISMISS</trigger>
      <trigger>Bluetooth Status: Schaltet aus, Aus</trigger>
      <trigger>Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen</trigger>
      <trigger>Benachrichtigung in Statusbar angezeigt: com.whatsapp</trigger>
      <trigger>Daydream Status: Gestoppt</trigger>
      <trigger>Benachrichtigung in Statusbar angezeigt: ch.gridvision.ppam.androidautomagic</trigger>
      <trigger>Eingehender Anruf. Status: Klingelt, Nummern: Alle</trigger>
      <trigger>Display Status: Ein</trigger>
      <trigger>Systemeinstellung verändert: System volume_music_speaker</trigger>
      <trigger>Systemeinstellung verändert: System screen_brightness</trigger>
      <trigger>Daydream Status: Gestartet</trigger>
      <trigger>Bluetooth Gerät verbunden: Alle Geräte</trigger>
      <trigger>Bluetooth Gerät getrennt: Alle Geräte</trigger>
      <trigger>Periodischer Timer: alle 120s</trigger>
      <trigger>Dock Event: Docked</trigger>
      <trigger>Systemeinstellung verändert: System volume_music_bt_a2dp</trigger>
      <trigger>Akku Ladestand: grösser als 0%</trigger>
      <trigger>App Task Beendet</trigger>
      <trigger>Unterbrechnungen-Modus: Alle / Immer unterbrechen</trigger>
      <trigger>HTTP Request: /fhem-amad/deviceInfo/</trigger>
      <trigger>Genereller Broadcast: wenn com.android.deskclock.ALARM_ALERT</trigger>
      <trigger>Benachrichtigung in Statusbar angezeigt: org.telegram.messenger</trigger>
      <trigger>Stromversorgung: Entfernt</trigger>
      <trigger>Systemeinstellung verändert: System next_alarm</trigger>
      <trigger>Benachrichtigung in Statusbar entfernt: ch.gridvision.ppam.androidautomagic</trigger>
      <trigger>App Task Gestartet</trigger>
      <trigger>Unterbrechnungen-Modus: Keine / Nicht unterbrechen</trigger>
      <trigger>Dock Event: Undocked</trigger>
      <trigger>Display Orientierung: Landscape</trigger>
      <trigger>Unterbrechnungen-Modus: Nur Wecker (Android 6+)</trigger>
      <trigger>Systemeinstellung verändert: System volume_ring</trigger>
      <trigger>Flugmodus: Aus</trigger>
      <trigger>Systemeinstellung verändert: System volume_ring_speaker</trigger>
      <trigger>Systemeinstellung verändert: System screen_brightness_mode</trigger>
      <trigger>Medien Session verändert</trigger>
    </triggercontainer>
    <actioncontainer id="t177" x="840.0" y="-3832.5">Script: powerinfo = "\"batteryPercent\":" + " \"" + "{battery_percentage,numberformat,0}" + "\"" + "," + "\"powerPlugged\":" + " \"" + {battery_plugged} + "\"" + "," + "\"batteryTemperature\":" + " \"" + "{battery_temperature/10.0,numberformat.0.0}" + "\"" + "," + "\"batteryHealth\":" + " \"" + {battery_health} + "\""; fhemcmd = "setreading";</actioncontainer>
    <connection from="t1" to="t158" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t2" to="t158" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t4" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t5" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t13" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t5" to="t13" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t6" to="t77" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t7" to="t77" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t8" to="t78" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t9" to="t10" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t11" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t11" to="t17" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t12" to="t6" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t12" to="t7" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t48" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t8" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t1" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t2" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t15" to="t34" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t15" to="t49" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t16" to="t148" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t16" to="t147" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t17" to="t16" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t50" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t154" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t31" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t32" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t9" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t20" to="t146" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t20" to="t30" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t149" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t20" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t22" to="t29" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t23" to="t28" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t27" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t25" to="t26" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t26" to="t145" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t27" to="t145" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t28" to="t145" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t29" to="t145" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t30" to="t150" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t31" to="t150" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t32" to="t150" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t33" to="t80" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t34" to="t91" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t35" to="t156" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t36" to="t37" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t36" to="t38" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t37" to="t81" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t38" to="t81" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t39" to="t36" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t39" to="t40" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t39" to="t40" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t40" to="t81" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t41" to="t81" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t42" to="t41" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t42" to="t39" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t43" to="t21" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t44" to="t14" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t45" to="t3" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t46" to="t177" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t47" to="t177" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t47" to="t177" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t48" to="t78" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t49" to="t91" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t50" to="t151" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t50" to="t152" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t51" to="t162" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t52" to="t64" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t53" to="t54" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t53" to="t60" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t54" to="t117" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t55" to="t167" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t56" to="t55" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t56" to="t168" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t58" to="t117" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t59" to="t53" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t60" to="t117" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t61" to="t53" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t62" to="t63" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t25" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t24" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t23" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t22" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t64" to="t65" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t65" to="t33" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t65" to="t114" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t67" to="t160" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t67" to="t172" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t67" to="t160" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t68" to="t70" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t68" to="t161" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t69" to="t164" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t70" to="t164" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t71" to="t68" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t72" to="t170" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t73" to="t79" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t74" to="t166" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t75" to="t66" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t76" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t77" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t78" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t79" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t80" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t81" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t83" to="t57" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t83" to="t82" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t84" to="t85" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t85" to="t87" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t85" to="t115" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t85" to="t115" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t86" to="t111" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t87" to="t86" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t87" to="t111" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t88" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t89" to="t12" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t91" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t92" to="t93" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t93" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t94" to="t93" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t94" to="t92" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t95" to="t15" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t95" to="t94" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t96" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t98" to="t96" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t99" to="t97" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t99" to="t96" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t100" to="t98" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t100" to="t99" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t101" to="t100" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t102" to="t103" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t103" to="t104" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t103" to="t105" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t104" to="t106" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t105" to="t106" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t106" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t107" to="t102" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t108" to="t109" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t110" to="t108" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t111" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t112" to="t65" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t113" to="t112" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t114" to="t113" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t115" to="t111" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t116" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t117" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t118" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t119" to="t79" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t120" to="t42" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t121" to="t88" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t122" to="t67" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t122" to="t52" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t122" to="t123" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t123" to="t42" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t123" to="t120" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t124" to="t125" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t125" to="t144" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t126" to="t127" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t127" to="t129" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t127" to="t128" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t128" to="t118" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t129" to="t118" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t130" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t131" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t132" to="t135" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t133" to="t130" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t134" to="t76" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t135" to="t136" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t135" to="t173" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t136" to="t131" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t137" to="t130" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t138" to="t163" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t139" to="t138" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t139" to="t163" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t140" to="t163" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t141" to="t140" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t141" to="t139" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t142" to="t141" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t143" to="t165" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t144" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t145" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t146" to="t150" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t147" to="t19" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t148" to="t19" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t149" to="t16" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t150" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t151" to="t155" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t152" to="t155" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t153" to="t18" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t154" to="t155" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t155" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t156" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t157" to="t35" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t157" to="t156" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t158" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t61" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t59" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t73" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t47" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t72" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t157" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t83" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t159" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t137" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t160" to="t135" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t161" to="t69" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t161" to="t164" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t162" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t163" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t164" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t165" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t166" to="t56" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t167" to="t168" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t168" to="t116" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t169" to="t170" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t170" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t171" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t126" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t58" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t169" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t119" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t43" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t95" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t84" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t46" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t45" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t44" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t89" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t74" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t153" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t51" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t71" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t124" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t134" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t121" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t62" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t75" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t101" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t107" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t107" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t133" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t142" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t101" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t110" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t110" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t123" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t132" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t143" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t174" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t173" to="t131" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t174" to="t175" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t175" to="t171" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t176" to="t122" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t177" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
  <flow type="flow">
    <name>NFC Tag Support</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>true</enabled>
    <executionPolicy>PARALLEL</executionPolicy>
    <triggercontainer id="t1" x="70.0" y="52.5">
      <trigger>NFC State</trigger>
      <trigger>NFC TagIDs</trigger>
    </triggercontainer>
    <actioncontainer id="t2" x="70.0" y="752.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t3" x="70.0" y="507.5">Script: if (trigger == "NFC TagIDs" ) { nfcLastTagID = "\"nfcLastTagID\":" + " \"" + {nfc_tag_ids} + "\""} if (trigger == "NFC State" ) { nfc = "\"nfc\":" + " \"" + {nfc_state} + "\""} fhemcmd = "setreading";</actioncontainer>
    <connection from="t1" to="t3" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
  <flow type="flow">
    <name>Send Data to AMADCommBridge</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>true</enabled>
    <executionPolicy>PARALLEL</executionPolicy>
    <emergencyStopCount>900</emergencyStopCount>
    <triggercontainer id="t1" x="-245.0" y="-717.5">
      <trigger>WLAN Getrennt: toGo</trigger>
      <trigger>WLAN Verbunden: toGo</trigger>
    </triggercontainer>
    <conditioncontainer id="t2" x="-245.0" y="192.5">Expression: fhemcmd == "set"</conditioncontainer>
    <conditioncontainer id="t3" x="245.0" y="192.5">Expression: fhemcmd == "voiceinputvalue"</conditioncontainer>
    <actioncontainer id="t4" x="245.0" y="402.5">Script: Set FHEMVOICEINPUTDATA JSON</actioncontainer>
    <actioncontainer id="t5" x="700.0" y="1067.5">In Datei Schreiben: Deaktiviere Flows in /storage/emulated/0/file.txt (anhängen)</actioncontainer>
    <actioncontainer id="t6" x="700.0" y="682.5">Setze Flow Status: Deaktivieren Informations,SetCommands</actioncontainer>
    <conditioncontainer id="t7" x="665.0" y="367.5">Flow Aktiv: Informations</conditioncontainer>
    <conditioncontainer id="t8" x="735.0" y="437.5">Flow Aktiv: SetCommands</conditioncontainer>
    <conditioncontainer id="t9" x="665.0" y="-402.5">Expression: trigger == "WLAN Getrennt: toGo"</conditioncontainer>
    <conditioncontainer id="t10" x="735.0" y="-192.5">Expression: togocount &lt; 6</conditioncontainer>
    <actioncontainer id="t11" x="735.0" y="87.5">Pause: 1s (Gerät wach halten)</actioncontainer>
    <actioncontainer id="t12" x="1225.0" y="682.5">Setze Flow Status: Aktivieren Informations,SetCommands</actioncontainer>
    <conditioncontainer id="t13" x="1120.0" y="367.5">Flow Aktiv: Informations</conditioncontainer>
    <conditioncontainer id="t14" x="1190.0" y="437.5">Flow Aktiv: SetCommands</conditioncontainer>
    <conditioncontainer id="t15" x="1155.0" y="-402.5">Expression: trigger == "WLAN Verbunden: toGo"</conditioncontainer>
    <actioncontainer id="t16" x="1225.0" y="1067.5">In Datei Schreiben: Aktiviere Flows in /storage/emulated/0/file.txt (anhängen)</actioncontainer>
    <actioncontainer id="t17" x="735.0" y="-52.5">Script: if(togocount &gt; 0) { togocount = togocount + 1; } else { togocount = 0; togocount = togocount + 1; }</actioncontainer>
    <conditioncontainer id="t18" x="-735.0" y="192.5">Expression: amadcmd == "firstrun"</conditioncontainer>
    <conditioncontainer id="t19" x="0.0" y="192.5">Expression: fhemcmd == "readingsval"</conditioncontainer>
    <actioncontainer id="t20" x="0.0" y="402.5">Script: Set FHEMREADINGSVALCMD JSON</actioncontainer>
    <conditioncontainer id="t21" x="-245.0" y="-402.5">Host erreichbar: {global_fhemip}:{global_bridgeport}</conditioncontainer>
    <conditioncontainer id="t22" x="-980.0" y="192.5">Expression: fhemcmd == "fhemfunc"</conditioncontainer>
    <actioncontainer id="t23" x="-980.0" y="402.5">Script: Set FHEMCALLSUB JSON</actioncontainer>
    <actioncontainer id="t24" x="-980.0" y="682.5">HTTP Request: send FHEMFUNC data to AMADCommBridge JSON</actioncontainer>
    <actioncontainer id="t25" x="-735.0" y="682.5">HTTP Request: send FIRSTRUN data to AMADCommBridge JSON</actioncontainer>
    <actioncontainer id="t26" x="-490.0" y="682.5">HTTP Request: send READINGS data to AMADCommBridge JSON</actioncontainer>
    <actioncontainer id="t27" x="-245.0" y="682.5">HTTP Request: send SET data to AMADCommBridge JSON</actioncontainer>
    <actioncontainer id="t28" x="0.0" y="682.5">HTTP Request: send READINGSVAL data to AMADCommBridge JSON</actioncontainer>
    <actioncontainer id="t29" x="245.0" y="682.5">HTTP Request: send VOICEINPUTVALUE data to AMADCommBridge</actioncontainer>
    <conditioncontainer id="t30" x="-490.0" y="192.5">Expression: fhemcmd == "setreading"</conditioncontainer>
    <actioncontainer id="t31" x="-245.0" y="402.5">Script: Set FHEMSETCMD JSON</actioncontainer>
    <actioncontainer id="t32" x="-735.0" y="402.5">Script: Set FHEMDATA JSON First Run Assistant</actioncontainer>
    <actioncontainer id="t33" x="-490.0" y="402.5">Script: Set FHEMDATA JSON</actioncontainer>
    <connection from="t1" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t2" to="t31" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t4" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t29" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t7" to="t8" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t8" to="t6" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t9" to="t7" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t9" to="t10" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t17" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t11" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t14" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t12" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t15" to="t13" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t17" to="t11" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t32" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t20" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t20" to="t28" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t30" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t2" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t19" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t3" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t18" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t9" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t15" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t22" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t22" to="t23" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t23" to="t24" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t30" to="t33" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t31" to="t27" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t32" to="t25" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t33" to="t26" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
  <flow type="flow">
    <name>SetCommands</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>true</enabled>
    <executionPolicy>QUEUE</executionPolicy>
    <emergencyStopCount>900</emergencyStopCount>
    <triggercontainer id="t1" x="-805.0" y="-3062.5">
      <trigger>HTTP Request: /fhem-amad/deviceInfo/</trigger>
      <trigger>Sprachbefehl angefordert</trigger>
      <trigger>HTTP Request: /fhem-amad/setCommands/*</trigger>
      <trigger>Periodischer Timer: alle 120s</trigger>
    </triggercontainer>
    <conditioncontainer id="t2" x="-1015.0" y="-122.5">Expression: setBrightness"</conditioncontainer>
    <conditioncontainer id="t3" x="770.0" y="-122.5">Expression: setScreenFullscreen"</conditioncontainer>
    <conditioncontainer id="t4" x="1505.0" y="577.5">Expression: param_orientation == "auto"</conditioncontainer>
    <actioncontainer id="t5" x="1295.0" y="892.5">Setze Display Orientierung: Portrait</actioncontainer>
    <actioncontainer id="t6" x="1085.0" y="892.5">Setze Display Orientierung: Landscape</actioncontainer>
    <conditioncontainer id="t7" x="1085.0" y="577.5">Expression: param_orientation == "landscape"</conditioncontainer>
    <actioncontainer id="t8" x="665.0" y="892.5">Setze Vollbild Modus: Navigation nicht anzeigen</actioncontainer>
    <actioncontainer id="t9" x="875.0" y="892.5">Setze Vollbild Modus: Auf Default zurücksetzen</actioncontainer>
    <actioncontainer id="t10" x="1505.0" y="892.5">Setze Display Orientierung: Auf Default zurücksetzen</actioncontainer>
    <actioncontainer id="t11" x="1190.0" y="1032.5">Display automatisch drehen ein-/ausschalten: Aus</actioncontainer>
    <actioncontainer id="t12" x="1505.0" y="1032.5">Display automatisch drehen ein-/ausschalten: Ein</actioncontainer>
    <conditioncontainer id="t13" x="1295.0" y="-122.5">Expression: setScreenOrientation"</conditioncontainer>
    <conditioncontainer id="t14" x="875.0" y="577.5">Expression: param_fullscreen == "off"</conditioncontainer>
    <conditioncontainer id="t15" x="1715.0" y="577.5">Expression: param_bluetooth == "off"</conditioncontainer>
    <conditioncontainer id="t16" x="1925.0" y="577.5">Expression: param_bluetooth == "on"</conditioncontainer>
    <actioncontainer id="t17" x="1925.0" y="892.5">Bluetooth ein-/ausschalten: Ein</actioncontainer>
    <conditioncontainer id="t18" x="2135.0" y="52.5">Bluetooth eingeschaltet</conditioncontainer>
    <actioncontainer id="t19" x="2345.0" y="332.5">Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdeviceone}</actioncontainer>
    <actioncontainer id="t20" x="2345.0" y="472.5">Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdeviceone}</actioncontainer>
    <actioncontainer id="t21" x="2345.0" y="612.5">Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdeviceone}</actioncontainer>
    <actioncontainer id="t22" x="2345.0" y="962.5">Bluetooth Gerät verbinden/trennen: Trennen Advanced Audio Distribution {param_btdevicetwo}</actioncontainer>
    <actioncontainer id="t23" x="2345.0" y="1102.5">Bluetooth Gerät verbinden/trennen: Trennen Eingabegerät {param_btdevicetwo}</actioncontainer>
    <actioncontainer id="t24" x="2345.0" y="192.5">Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdeviceone}</actioncontainer>
    <actioncontainer id="t25" x="2345.0" y="822.5">Bluetooth Gerät verbinden/trennen: Trennen Headset {param_btdevicetwo}</actioncontainer>
    <actioncontainer id="t26" x="2345.0" y="1242.5">Bluetooth Gerät verbinden/trennen: Trennen Personal Area Network {param_btdevicetwo}</actioncontainer>
    <actioncontainer id="t27" x="2135.0" y="1032.5">Pause: 3s (Gerät wach halten)</actioncontainer>
    <actioncontainer id="t28" x="2135.0" y="857.5">Bluetooth Gerät verbinden/trennen: Verbinden Advanced Audio Distribution {param_swtobtdevicemac}</actioncontainer>
    <actioncontainer id="t29" x="2135.0" y="682.5">Pause: 2s (Gerät wach halten)</actioncontainer>
    <conditioncontainer id="t30" x="2135.0" y="-122.5">Expression: setBTDevice"</conditioncontainer>
    <actioncontainer id="t31" x="1715.0" y="892.5">Bluetooth ein-/ausschalten: Aus</actioncontainer>
    <conditioncontainer id="t32" x="1295.0" y="577.5">Expression: param_orientation == "portrait"</conditioncontainer>
    <conditioncontainer id="t33" x="2555.0" y="-122.5">Expression: setVoiceCommand"</conditioncontainer>
    <conditioncontainer id="t34" x="2870.0" y="-122.5">Expression: setScreenlock"</conditioncontainer>
    <conditioncontainer id="t35" x="3185.0" y="-122.5">Expression: sendIntent"</conditioncontainer>
    <actioncontainer id="t36" x="2765.0" y="577.5">Setze Lock PIN/Passwort: Setze PIN von Variable param_lockpin</actioncontainer>
    <conditioncontainer id="t37" x="-805.0" y="-122.5">Expression: setAlarm"</conditioncontainer>
    <conditioncontainer id="t38" x="-595.0" y="-122.5">Expression: screenMsg"</conditioncontainer>
    <actioncontainer id="t39" x="-595.0" y="892.5">Benachrichtigung auf Bildschirm: {param_message} (lange)</actioncontainer>
    <actioncontainer id="t40" x="2870.0" y="752.5">Script: udef_trigger = "setLockPin"</actioncontainer>
    <conditioncontainer id="t41" x="2870.0" y="1032.5">Display eingeschaltet</conditioncontainer>
    <actioncontainer id="t42" x="2800.0" y="1242.5">Gerät sperren</actioncontainer>
    <actioncontainer id="t43" x="2940.0" y="1242.5">Schalte Display ein</actioncontainer>
    <actioncontainer id="t44" x="2940.0" y="1382.5">Gerät sperren</actioncontainer>
    <conditioncontainer id="t45" x="3395.0" y="-122.5">Expression: setTimer"</conditioncontainer>
    <conditioncontainer id="t46" x="3605.0" y="577.5">Expression: param_option</conditioncontainer>
    <actioncontainer id="t47" x="3605.0" y="752.5">Pause: {param_hanguptime}s (Gerät wach halten)</actioncontainer>
    <actioncontainer id="t48" x="3605.0" y="892.5">Anruf beenden</actioncontainer>
    <actioncontainer id="t49" x="3185.0" y="892.5">Broadcast senden: {param_action} </actioncontainer>
    <actioncontainer id="t50" x="-385.0" y="892.5">URL in Browser öffnen: {param_url} (mit {param_browserapp}/{param_browserappclass})</actioncontainer>
    <actioncontainer id="t51" x="-175.0" y="892.5">Setze Unterbrechnungen-Modus: Alle / Immer unterbrechen</actioncontainer>
    <actioncontainer id="t52" x="35.0" y="892.5">Setze Unterbrechnungen-Modus: Wichtig / Nur wichtige Unterbrechnungen zulassen</actioncontainer>
    <actioncontainer id="t53" x="245.0" y="892.5">Setze Unterbrechnungen-Modus: Keine / Nicht unterbrechen</actioncontainer>
    <actioncontainer id="t54" x="455.0" y="892.5">Setze Unterbrechnungen-Modus: Nur Wecker (Android 6+)</actioncontainer>
    <conditioncontainer id="t55" x="-385.0" y="-122.5">Expression: openURL"</conditioncontainer>
    <conditioncontainer id="t56" x="665.0" y="577.5">Expression: param_fullscreen == "on"</conditioncontainer>
    <conditioncontainer id="t57" x="140.0" y="-122.5">Expression: do not Disturb"</conditioncontainer>
    <conditioncontainer id="t58" x="-175.0" y="577.5">Expression: param_disturbmod == "always"</conditioncontainer>
    <conditioncontainer id="t59" x="35.0" y="577.5">Expression: param_disturbmod == "onlyImportant"</conditioncontainer>
    <conditioncontainer id="t60" x="245.0" y="577.5">Expression: param_disturbmod == "never"</conditioncontainer>
    <conditioncontainer id="t61" x="455.0" y="577.5">Expression: param_disturbmod == "alarmClockOnly"</conditioncontainer>
    <conditioncontainer id="t62" x="1820.0" y="-122.5">Expression: setBluetooth"</conditioncontainer>
    <conditioncontainer id="t63" x="-1645.0" y="367.5">Expression: param_screen=="on"</conditioncontainer>
    <conditioncontainer id="t64" x="-1750.0" y="-122.5">Expression: setScreenOnOff"</conditioncontainer>
    <actioncontainer id="t65" x="-1855.0" y="892.5">Gerät sperren</actioncontainer>
    <conditioncontainer id="t66" x="-1855.0" y="367.5">Expression: param_screen=="off"</conditioncontainer>
    <conditioncontainer id="t67" x="-2275.0" y="-122.5">Expression: openApp"</conditioncontainer>
    <conditioncontainer id="t68" x="-2275.0" y="367.5">App Task läuft:  App (neuster)</conditioncontainer>
    <conditioncontainer id="t69" x="-2065.0" y="-122.5">Expression: setVolume"</conditioncontainer>
    <actioncontainer id="t70" x="-2275.0" y="892.5">App Starten: App</actioncontainer>
    <actioncontainer id="t71" x="-2485.0" y="892.5">Dateien löschen: /storage/emulated/0/Download/installFlow_{param_flowname}</actioncontainer>
    <actioncontainer id="t72" x="-2695.0" y="892.5">Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}</actioncontainer>
    <actioncontainer id="t73" x="-2905.0" y="892.5">Dateien löschen: /storage/sdcard0/Download/installFlow_{param_flowname}</actioncontainer>
    <actioncontainer id="t74" x="-3115.0" y="542.5">Script: notification_text = "Flow install: path for download not exist"</actioncontainer>
    <actioncontainer id="t75" x="-2905.0" y="542.5">Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname}</actioncontainer>
    <actioncontainer id="t76" x="-2905.0" y="717.5">Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</actioncontainer>
    <actioncontainer id="t77" x="-2905.0" y="367.5">Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/sdcard0/Download</actioncontainer>
    <actioncontainer id="t78" x="-2695.0" y="367.5">Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/sdcard0/Download</actioncontainer>
    <actioncontainer id="t79" x="-2485.0" y="542.5">Flows/Widgets importieren: /storage/emulated/0/Download/installFlow_{param_flowname}</actioncontainer>
    <actioncontainer id="t80" x="-2695.0" y="542.5">Flows/Widgets importieren: /storage/sdcard0/Download/installFlow_{param_flowname}</actioncontainer>
    <actioncontainer id="t81" x="-2695.0" y="717.5">Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</actioncontainer>
    <conditioncontainer id="t82" x="-2695.0" y="87.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/sdcard0)</conditioncontainer>
    <conditioncontainer id="t83" x="-2905.0" y="87.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/sdcard)</conditioncontainer>
    <conditioncontainer id="t84" x="-2695.0" y="-122.5">Expression: installFlow"</conditioncontainer>
    <actioncontainer id="t85" x="-3325.0" y="892.5">Neustart </actioncontainer>
    <conditioncontainer id="t86" x="-3325.0" y="367.5">Expression: Reboot</conditioncontainer>
    <conditioncontainer id="t87" x="-3535.0" y="-122.5">Expression: System Command"</conditioncontainer>
    <conditioncontainer id="t88" x="-3535.0" y="367.5">Expression: Shutdown</conditioncontainer>
    <actioncontainer id="t89" x="-3745.0" y="542.5">Script: airplanemode = "airplanemode@@on"; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t90" x="-3745.0" y="717.5">Flows ausführen: Send Data to AMADCommBridge mit warten</actioncontainer>
    <actioncontainer id="t91" x="-3745.0" y="892.5">Flugmodus ein-/ausschalten: Ein</actioncontainer>
    <actioncontainer id="t92" x="-3535.0" y="892.5">Herunterfahren</actioncontainer>
    <actioncontainer id="t93" x="-3955.0" y="1242.5">Notification Lautstärke Wiederherstellen</actioncontainer>
    <conditioncontainer id="t94" x="-3955.0" y="1067.5">Expression: param_notifyfile == "RedAlert.mp3"</conditioncontainer>
    <actioncontainer id="t95" x="-4165.0" y="892.5">Benachrichtigung aus Statusbar entfernen: Alle</actioncontainer>
    <actioncontainer id="t96" x="-4375.0" y="892.5">Benachrichtigung aus Statusbar entfernen: Alle (Automagic)</actioncontainer>
    <conditioncontainer id="t97" x="-4375.0" y="367.5">Expression: Automagic</conditioncontainer>
    <conditioncontainer id="t98" x="-4165.0" y="367.5">Expression: All</conditioncontainer>
    <conditioncontainer id="t99" x="-3955.0" y="-122.5">Expression: notifysnd"</conditioncontainer>
    <actioncontainer id="t100" x="-4095.0" y="-297.5">NotificationLautstärke auf Level 7</actioncontainer>
    <actioncontainer id="t101" x="-4095.0" y="-472.5">Notification Lautstärke Speichern</actioncontainer>
    <conditioncontainer id="t102" x="-4095.0" y="-647.5">Expression: param_notifyfile == "RedAlert.mp3"</conditioncontainer>
    <actioncontainer id="t103" x="-2485.0" y="717.5">Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</actioncontainer>
    <conditioncontainer id="t104" x="-4795.0" y="-122.5">Expression: Clear Automagic Meldungen"</conditioncontainer>
    <conditioncontainer id="t105" x="-5215.0" y="-122.5">Expression: setVibrate"</conditioncontainer>
    <actioncontainer id="t106" x="-5425.0" y="892.5">Audio Player steuern: Medienknopf Zurück ({pname}/{kname})</actioncontainer>
    <actioncontainer id="t107" x="-805.0" y="892.5">Setze Alarm:  um {param_hour}:{param_minute}</actioncontainer>
    <actioncontainer id="t108" x="-5565.0" y="892.5">Audio Player steuern: Medienknopf Weiter ({pname}/{kname})</actioncontainer>
    <conditioncontainer id="t109" x="3605.0" y="-122.5">Expression: openCall"</conditioncontainer>
    <actioncontainer id="t110" x="3605.0" y="367.5">Nummer anrufen: {param_callnumber}</actioncontainer>
    <conditioncontainer id="t111" x="4025.0" y="367.5">Expression: param_flowstate == "active" or param_flowstate == "inactive"</conditioncontainer>
    <conditioncontainer id="t112" x="4025.0" y="577.5">Expression: param_flowstate == "active"</conditioncontainer>
    <actioncontainer id="t113" x="4095.0" y="892.5">Setze Flow Status: Deaktivieren {param_flowname}</actioncontainer>
    <actioncontainer id="t114" x="4025.0" y="1242.5">Script: notification_text = "Flow '{param_flowname}' has been set {param_flowstate}"</actioncontainer>
    <conditioncontainer id="t115" x="-5635.0" y="-122.5">Expression: multimediaControl"</conditioncontainer>
    <actioncontainer id="t116" x="-6055.0" y="892.5">Starte Daydream</actioncontainer>
    <conditioncontainer id="t117" x="-6055.0" y="-122.5">Expression: startDaydream"</conditioncontainer>
    <actioncontainer id="t118" x="-2065.0" y="892.5">Lautstärken setzen param_volume</actioncontainer>
    <conditioncontainer id="t119" x="-5005.0" y="-122.5">Expression: setNotifiVolume"</conditioncontainer>
    <actioncontainer id="t120" x="-5005.0" y="892.5">Lautstärken setzen param_notifivolume</actioncontainer>
    <actioncontainer id="t121" x="-5705.0" y="892.5">Audio Player steuern: Medienknopf Play/Pause (/{kname})</actioncontainer>
    <actioncontainer id="t122" x="-3955.0" y="892.5">Sound: {param_notifypath}{param_notifyfile} als Benachrichtigung</actioncontainer>
    <conditioncontainer id="t123" x="-2485.0" y="87.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/emulated/0)</conditioncontainer>
    <actioncontainer id="t124" x="-2485.0" y="367.5">Download URL: http://{global_fhemip}:{global_bridgeport}/installFlow_{param_flowname} to /storage/emulated/0/Download</actioncontainer>
    <actioncontainer id="t125" x="-1225.0" y="-1417.5">Script: flow_informations = "\"flow_informations\":" + " \"" + {informationFlow_state} + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t126" x="4025.0" y="1382.5">Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t127" x="2870.0" y="892.5">Flows ausführen: udef_trigger setLockPin</actioncontainer>
    <conditioncontainer id="t128" x="-1225.0" y="-2012.5">Flow Aktiv: Informations</conditioncontainer>
    <actioncontainer id="t129" x="-1120.0" y="-1802.5">Script: informationFlow_state = "aktiv"</actioncontainer>
    <actioncontainer id="t130" x="-1330.0" y="-1802.5">Script: informationFlow_state = "inaktiv"</actioncontainer>
    <actioncontainer id="t131" x="-1470.0" y="-1557.5">Setze Flow Status: Aktivieren Informations</actioncontainer>
    <conditioncontainer id="t132" x="-1820.0" y="-2012.5">Flow Aktiv: Send Data to AMADCommBridge</conditioncontainer>
    <actioncontainer id="t133" x="-1820.0" y="-1557.5">Setze Flow Status: Aktivieren Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t134" x="4305.0" y="892.5">SMS senden an: an {param_smsnumber} '{param_smsmessage}' (10 in 12h)</actioncontainer>
    <conditioncontainer id="t135" x="2870.0" y="367.5">Expression: param_lockmod == "lock"</conditioncontainer>
    <conditioncontainer id="t136" x="-3745.0" y="367.5">Expression: Airplanemode</conditioncontainer>
    <conditioncontainer id="t137" x="4585.0" y="367.5">Expression: param_nfc == "on"</conditioncontainer>
    <conditioncontainer id="t138" x="4655.0" y="437.5">Expression: param_nfc == "off"</conditioncontainer>
    <actioncontainer id="t139" x="4655.0" y="892.5">NFC ein-/ausschalten: Aus</actioncontainer>
    <conditioncontainer id="t140" x="4305.0" y="-122.5">Expression: sendSms"</conditioncontainer>
    <conditioncontainer id="t141" x="3815.0" y="-122.5">Expression: closeCall"</conditioncontainer>
    <conditioncontainer id="t142" x="4585.0" y="-122.5">Expression: nfc"</conditioncontainer>
    <actioncontainer id="t143" x="4515.0" y="892.5">NFC ein-/ausschalten: Ein</actioncontainer>
    <conditioncontainer id="t144" x="-6265.0" y="-122.5">Expression: setRingSoundVolume"</conditioncontainer>
    <actioncontainer id="t145" x="-6265.0" y="892.5">Lautstärken setzen param_ringsoundvolume</actioncontainer>
    <actioncontainer id="t146" x="3395.0" y="892.5">Setze Timer</actioncontainer>
    <conditioncontainer id="t147" x="-1330.0" y="-122.5">Expression: ttsMsg"</conditioncontainer>
    <conditioncontainer id="t148" x="-1330.0" y="367.5">Expression: ttsMsgLang"</conditioncontainer>
    <actioncontainer id="t149" x="-1400.0" y="157.5">Medianlautstärken Speichern</actioncontainer>
    <actioncontainer id="t150" x="-1400.0" y="262.5">Lautstärke einstellen: Medien auf Level {param_msgvol}</actioncontainer>
    <conditioncontainer id="t151" x="-1330.0" y="52.5">Expression: param_msgvol == "none"</conditioncontainer>
    <actioncontainer id="t152" x="-1225.0" y="892.5">Sprachausgabe: Deutsch</actioncontainer>
    <conditioncontainer id="t153" x="-1330.0" y="1032.5">Expression: param_msgvol == "none"</conditioncontainer>
    <actioncontainer id="t154" x="-1330.0" y="1172.5">Medienlautstärke Wiederherstellen</actioncontainer>
    <conditioncontainer id="t155" x="4025.0" y="-122.5">Expression: flowState"</conditioncontainer>
    <actioncontainer id="t156" x="3955.0" y="892.5">Setze Flow Status: Aktivieren {param_flowname}</actioncontainer>
    <actioncontainer id="t157" x="2555.0" y="892.5">Flows ausführen: VoiceControl</actioncontainer>
    <actioncontainer id="t158" x="2975.0" y="577.5">Setze Lock PIN/Passwort: PIN/Passwort zurücksetzen</actioncontainer>
    <conditioncontainer id="t159" x="-6475.0" y="-122.5">Expression: showhomescreen"</conditioncontainer>
    <actioncontainer id="t160" x="-6475.0" y="892.5">Zeige Home Screen</actioncontainer>
    <actioncontainer id="t161" x="-5215.0" y="892.5">Vibrieren: Pattern 2 (-- --)</actioncontainer>
    <actioncontainer id="t162" x="-3115.0" y="892.5">Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <conditioncontainer id="t163" x="4900.0" y="-122.5">Expression: flowRun"</conditioncontainer>
    <actioncontainer id="t164" x="4900.0" y="892.5">Flows ausführen: {param_flowname}</actioncontainer>
    <actioncontainer id="t165" x="5110.0" y="892.5">Flows ausführen: Update AMAD Flowset</actioncontainer>
    <actioncontainer id="t166" x="-5845.0" y="892.5">Audio Player steuern: Medienknopf Stopp ({pname}/{kname})</actioncontainer>
    <conditioncontainer id="t167" x="-5845.0" y="577.5">Expression: param_button == "mediaStop"</conditioncontainer>
    <conditioncontainer id="t168" x="-5705.0" y="577.5">Expression: param_button == "mediaPlay"</conditioncontainer>
    <conditioncontainer id="t169" x="-5565.0" y="577.5">Expression: param_button == "mediaNext"</conditioncontainer>
    <conditioncontainer id="t170" x="-5425.0" y="577.5">Expression: param_button == "mediaBack"</conditioncontainer>
    <conditioncontainer id="t171" x="-630.0" y="-2187.5">Expression: trigger == "Sprachbefehl angefordert"</conditioncontainer>
    <conditioncontainer id="t172" x="-805.0" y="-2817.5">Expression: global_fhemip != null or global_bridgeport != null</conditioncontainer>
    <conditioncontainer id="t173" x="-630.0" y="-2362.5">Expression: header_amadid == {global_amadid}</conditioncontainer>
    <conditioncontainer id="t174" x="-805.0" y="-2572.5">Host erreichbar: {global_fhemip}:{global_bridgeport}</conditioncontainer>
    <actioncontainer id="t175" x="-5635.0" y="122.5">Script: Zuordnung Mediaplayer</actioncontainer>
    <conditioncontainer id="t176" x="5110.0" y="-122.5">Expression: currentFlowsetUpdate"</conditioncontainer>
    <conditioncontainer id="t177" x="-7385.0" y="-122.5">Expression: takepicture</conditioncontainer>
    <conditioncontainer id="t178" x="-7385.0" y="87.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/emulated/0)</conditioncontainer>
    <conditioncontainer id="t179" x="-7665.0" y="367.5">Expression: param_pictureresolution == "800x600"</conditioncontainer>
    <conditioncontainer id="t180" x="-7665.0" y="577.5">Expression: param_picturecamera == "Back"</conditioncontainer>
    <conditioncontainer id="t181" x="-7525.0" y="367.5">Expression: param_pictureresolution == "1024x768"</conditioncontainer>
    <conditioncontainer id="t182" x="-7525.0" y="577.5">Expression: param_picturecamera == "Back"</conditioncontainer>
    <conditioncontainer id="t183" x="-7385.0" y="367.5">Expression: param_pictureresolution == "1280x720"</conditioncontainer>
    <conditioncontainer id="t184" x="-7385.0" y="577.5">Expression: param_picturecamera == "Back"</conditioncontainer>
    <conditioncontainer id="t185" x="-7245.0" y="367.5">Expression: param_pictureresolution == "1600x1200"</conditioncontainer>
    <conditioncontainer id="t186" x="-7245.0" y="577.5">Expression: param_picturecamera == "Back"</conditioncontainer>
    <conditioncontainer id="t187" x="-7105.0" y="367.5">Expression: param_pictureresolution == "1920x1080"</conditioncontainer>
    <conditioncontainer id="t188" x="-7105.0" y="577.5">Expression: param_picturecamera == "Back"</conditioncontainer>
    <actioncontainer id="t189" x="-6860.0" y="367.5">Script: notification_text = "Take Picture: can not save camerapicture, path does not exist"</actioncontainer>
    <actioncontainer id="t190" x="-6860.0" y="577.5">Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t191" x="-8015.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 800x600 Front</actioncontainer>
    <actioncontainer id="t192" x="-7875.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1024x768 Front</actioncontainer>
    <actioncontainer id="t193" x="-7735.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1280x720 Front</actioncontainer>
    <actioncontainer id="t194" x="-7595.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1600x1200 Front</actioncontainer>
    <actioncontainer id="t195" x="-7455.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1920x1080 Front</actioncontainer>
    <actioncontainer id="t196" x="-7280.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 800x600</actioncontainer>
    <actioncontainer id="t197" x="-7140.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1024x768</actioncontainer>
    <actioncontainer id="t198" x="-7000.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1280x720</actioncontainer>
    <actioncontainer id="t199" x="-6860.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1600x1200</actioncontainer>
    <actioncontainer id="t200" x="-6720.0" y="892.5">Foto aufnehmen: /storage/emulated/0/AMADpicture.jpg (ohne Benutzeroberfläche) 1920x1080</actioncontainer>
    <conditioncontainer id="t201" x="5355.0" y="682.5">Expression: param_screenshotresolution == "1280x720"</conditioncontainer>
    <conditioncontainer id="t202" x="5530.0" y="682.5">Expression: param_screenshotresolution == "1920x1200"</conditioncontainer>
    <actioncontainer id="t203" x="5530.0" y="892.5">Bildschirmfoto aufnehmen: 1920x1200</actioncontainer>
    <actioncontainer id="t204" x="5355.0" y="892.5">Bildschirmfoto aufnehmen: 1280x720</actioncontainer>
    <actioncontainer id="t205" x="5705.0" y="892.5">Bildschirmfoto aufnehmen: 1920x1080</actioncontainer>
    <conditioncontainer id="t206" x="5705.0" y="682.5">Expression: param_screenshotresolution == "1920x1080"</conditioncontainer>
    <conditioncontainer id="t207" x="5635.0" y="367.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/emulated/0)</conditioncontainer>
    <actioncontainer id="t208" x="-1645.0" y="892.5">Schalte Display ein: Hell für {param_screenontime}s</actioncontainer>
    <actioncontainer id="t209" x="-1015.0" y="892.5">Setze Display Helligkeit: {param_brightness}</actioncontainer>
    <actioncontainer id="t210" x="-805.0" y="2152.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t211" x="5880.0" y="892.5">Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t212" x="5880.0" y="682.5">Script: notification_text = "Take Screenshot: can not save screenshot, path does not exist"</actioncontainer>
    <conditioncontainer id="t213" x="5635.0" y="-122.5">Expression: takescreenshot</conditioncontainer>
    <conditioncontainer id="t214" x="-805.0" y="-2047.5">Expression: trigger == "HTTP Request: /fhem-amad/setCommands/*"</conditioncontainer>
    <conditioncontainer id="t215" x="6125.0" y="-122.5">Expression: request_path == "/fhem-amad/setCommands/setBrightnessMode"</conditioncontainer>
    <actioncontainer id="t216" x="6125.0" y="892.5">Setze Systemeinstellung: System screen_brightness_mode auf {param_brightnessmode}</actioncontainer>
    <actioncontainer id="t217" x="-1435.0" y="892.5">Sprachausgabe: Englisch</actioncontainer>
    <connection from="t1" to="t172" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t2" to="t209" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t56" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t14" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t10" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t5" to="t11" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t6" to="t11" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t7" to="t6" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t12" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t32" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t7" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t4" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t9" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t15" to="t31" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t16" to="t17" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t17" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t24" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t20" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t20" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t25" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t22" to="t23" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t23" to="t26" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t19" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t25" to="t22" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t26" to="t29" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t28" to="t27" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t29" to="t28" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t30" to="t18" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t32" to="t5" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t33" to="t157" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t34" to="t135" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t35" to="t49" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t36" to="t40" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t37" to="t107" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t38" to="t39" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t40" to="t127" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t41" to="t43" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t41" to="t42" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t43" to="t44" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t45" to="t146" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t46" to="t47" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t47" to="t48" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t55" to="t50" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t56" to="t8" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t57" to="t58" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t57" to="t59" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t57" to="t60" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t57" to="t61" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t58" to="t51" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t59" to="t52" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t60" to="t53" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t61" to="t54" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t62" to="t16" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t62" to="t15" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t63" to="t208" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t64" to="t66" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t64" to="t63" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t66" to="t65" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t67" to="t68" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t68" to="t70" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t69" to="t118" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t74" to="t162" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t75" to="t76" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t76" to="t73" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t77" to="t75" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t78" to="t80" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t79" to="t103" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t80" to="t81" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t81" to="t72" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t82" to="t83" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t82" to="t78" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t82" to="t83" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t83" to="t77" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t83" to="t74" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t83" to="t74" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t84" to="t123" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t86" to="t85" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t87" to="t86" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t87" to="t88" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t87" to="t136" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t88" to="t92" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t89" to="t90" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t90" to="t91" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t94" to="t93" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t97" to="t96" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t98" to="t95" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t99" to="t102" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t100" to="t122" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t101" to="t100" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t102" to="t101" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t102" to="t122" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t103" to="t71" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t104" to="t98" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t104" to="t97" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t105" to="t161" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t109" to="t110" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t110" to="t46" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t111" to="t112" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t112" to="t156" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t112" to="t113" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t113" to="t114" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t114" to="t126" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t115" to="t175" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t117" to="t116" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t119" to="t120" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t122" to="t94" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t123" to="t124" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t123" to="t82" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t123" to="t82" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t124" to="t79" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t125" to="t210" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t126" to="t210" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t127" to="t41" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t128" to="t130" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t128" to="t129" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t129" to="t125" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t130" to="t131" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t131" to="t125" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t132" to="t133" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t135" to="t36" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t135" to="t158" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t136" to="t89" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t137" to="t143" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t137" to="t138" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t138" to="t139" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t140" to="t134" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t141" to="t48" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t142" to="t137" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t144" to="t145" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t147" to="t151" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t148" to="t217" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t148" to="t152" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t149" to="t150" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t150" to="t148" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t151" to="t148" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t151" to="t149" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t152" to="t153" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t153" to="t154" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t155" to="t111" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t156" to="t114" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t158" to="t40" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t159" to="t160" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t162" to="t210" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t163" to="t164" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t167" to="t166" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t168" to="t121" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t169" to="t108" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t170" to="t106" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t171" to="t214" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t171" to="t33" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t172" to="t174" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t173" to="t171" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t174" to="t128" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t174" to="t132" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t174" to="t132" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t174" to="t128" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t174" to="t173" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t175" to="t167" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t175" to="t168" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t175" to="t169" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t175" to="t170" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t176" to="t165" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t177" to="t178" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t178" to="t181" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t178" to="t183" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t178" to="t185" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t178" to="t187" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t178" to="t179" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t178" to="t189" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t179" to="t180" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t180" to="t191" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t180" to="t196" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t181" to="t182" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t182" to="t192" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t182" to="t197" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t183" to="t184" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t184" to="t193" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t184" to="t198" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t185" to="t186" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t186" to="t194" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t186" to="t199" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t187" to="t188" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t188" to="t195" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t188" to="t200" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t189" to="t190" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t190" to="t210" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t201" to="t204" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t202" to="t203" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t206" to="t205" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t207" to="t201" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t207" to="t202" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t207" to="t206" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t207" to="t212" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t211" to="t210" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t212" to="t211" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t213" to="t207" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t87" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t67" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t69" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t64" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t147" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t2" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t37" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t38" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t55" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t3" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t13" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t62" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t99" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t30" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t104" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t33" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t119" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t34" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t105" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t35" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t45" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t84" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t109" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t57" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t115" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t155" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t140" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t141" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t117" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t144" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t142" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t159" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t163" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t177" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t176" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t213" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t214" to="t215" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t215" to="t216" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t217" to="t153" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
  <flow type="flow">
    <name>Update AMAD Flowset</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>true</enabled>
    <executionPolicy>QUEUE</executionPolicy>
    <triggercontainer id="t1" x="420.0" y="-752.5" />
    <actioncontainer id="t2" x="630.0" y="787.5">Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</actioncontainer>
    <actioncontainer id="t3" x="875.0" y="787.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <conditioncontainer id="t4" x="420.0" y="1277.5">Flow Aktiv: First Run Assistant</conditioncontainer>
    <actioncontainer id="t5" x="420.0" y="1487.5">Setze Flow Status: Deaktivieren First Run Assistant</actioncontainer>
    <actioncontainer id="t6" x="420.0" y="-367.5">Prüfe und setze Bridgeport Variable</actioncontainer>
    <actioncontainer id="t7" x="420.0" y="157.5">Verzeichnisse erstellen: /storage/sdcard0/AMADNG_FlowsetUpdate</actioncontainer>
    <conditioncontainer id="t8" x="420.0" y="-52.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/sdcard0)</conditioncontainer>
    <actioncontainer id="t9" x="630.0" y="157.5">Verzeichnisse erstellen: /sdcard/AMADNG_FlowsetUpdate</actioncontainer>
    <conditioncontainer id="t10" x="630.0" y="-52.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/sdcard)</conditioncontainer>
    <actioncontainer id="t11" x="210.0" y="157.5">Verzeichnisse erstellen: /storage/emulated/0/AMADNG_FlowsetUpdate</actioncontainer>
    <actioncontainer id="t12" x="210.0" y="367.5">Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml nach /storage/emulated/0/AMADNG_FlowsetUpdate</actioncontainer>
    <actioncontainer id="t13" x="420.0" y="367.5">Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml nach /storage/sdcard0/AMADNG_FlowsetUpdate</actioncontainer>
    <actioncontainer id="t14" x="630.0" y="367.5">Download URL: http://{global_fhemip}:{global_bridgeport}/currentFlowsetUpdate.xml nach /sdcard/AMADNG_FlowsetUpdate</actioncontainer>
    <actioncontainer id="t15" x="210.0" y="577.5">Flows/Widgets importieren: /storage/emulated/0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</actioncontainer>
    <actioncontainer id="t16" x="420.0" y="577.5">Flows/Widgets importieren: /storage/sdcard0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</actioncontainer>
    <actioncontainer id="t17" x="630.0" y="577.5">Flows/Widgets importieren: /sdcard/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</actioncontainer>
    <actioncontainer id="t18" x="210.0" y="787.5">Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</actioncontainer>
    <actioncontainer id="t19" x="420.0" y="787.5">Setze Flow Status: Aktivieren {imported_flow_names,listformat,comma}</actioncontainer>
    <actioncontainer id="t20" x="210.0" y="997.5">Dateien löschen: /storage/emulated/0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</actioncontainer>
    <actioncontainer id="t21" x="630.0" y="997.5">Dateien löschen: /sdcard/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</actioncontainer>
    <actioncontainer id="t22" x="420.0" y="997.5">Dateien löschen: /storage/sdcard0/AMADNG_FlowsetUpdate/currentFlowsetUpdate.xml</actioncontainer>
    <conditioncontainer id="t23" x="420.0" y="-577.5">Expression: header_amadid == {global_amadid}</conditioncontainer>
    <conditioncontainer id="t24" x="210.0" y="-52.5">Gerätespeicherplatz: Freier Speicherplatz &gt; 1kb (/storage/emulated/0)</conditioncontainer>
    <actioncontainer id="t25" x="875.0" y="577.5">Script: automagicState = "\"automagicState\":" + " \"" + replaceAll({notification_text}, "\\n", " ") + "\""; fhemcmd = "setreading";</actioncontainer>
    <actioncontainer id="t26" x="875.0" y="367.5">Script: notification_text = "Flowset Update: path for download not exist"</actioncontainer>
    <connection from="t1" to="t23" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t2" to="t21" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t5" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t6" to="t24" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t7" to="t13" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t8" to="t10" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t8" to="t10" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t8" to="t7" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t9" to="t14" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t26" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t26" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t9" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t11" to="t12" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t12" to="t15" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t16" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t17" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t15" to="t18" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t16" to="t19" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t17" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t18" to="t20" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t19" to="t22" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t20" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t21" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t22" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t23" to="t6" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t8" type="EXCEPTION" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t8" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t24" to="t11" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t25" to="t3" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t26" to="t25" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
  <flow type="flow">
    <name>VoiceControl</name>
    <group>AMADNG Info/Control Flowset v4.2.3</group>
    <enabled>true</enabled>
    <executionPolicy>QUEUE</executionPolicy>
    <triggercontainer id="t1" x="70.0" y="-52.5" />
    <actioncontainer id="t2" x="70.0" y="437.5">AMAD Voice Control</actioncontainer>
    <conditioncontainer id="t3" x="70.0" y="682.5">Expression: value != ""</conditioncontainer>
    <conditioncontainer id="t4" x="-1050.0" y="1277.4998">Expression: contains(value, " und ")</conditioncontainer>
    <actioncontainer id="t5" x="-1225.0" y="1417.5">Script: voiceinputdata = {left(value, (indexOf(value, " und ")))}; fhemcmd = "voiceinputvalue";</actioncontainer>
    <actioncontainer id="t6" x="-1225.0" y="1627.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t7" x="-1225.0" y="1872.5">Setze voice Variablen</actioncontainer>
    <actioncontainer id="t8" x="384.99988" y="962.4999">Spracheingabe wurde nicht erkannt</actioncontainer>
    <actioncontainer id="t9" x="-910.0" y="1417.5">Script: voiceinputdata = value; fhemcmd = "voiceinputvalue";</actioncontainer>
    <actioncontainer id="t10" x="-910.0" y="1627.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t11" x="-910.0" y="1872.5">Benachrichtigung auf Bildschirm: {value} (lange)</actioncontainer>
    <conditioncontainer id="t12" x="-665.0" y="962.4999">Expression: global_fhemctlmode != "thirdPartControl"</conditioncontainer>
    <actioncontainer id="t13" x="-315.0" y="1277.5">Script: voiceinputdata = value; fhemcmd = "voiceinputvalue";</actioncontainer>
    <actioncontainer id="t14" x="-315.0" y="1627.5">Flows ausführen: Send Data to AMADCommBridge</actioncontainer>
    <actioncontainer id="t15" x="-315.00003" y="1872.5">Benachrichtigung auf Bildschirm: {value} (lange)</actioncontainer>
    <connection from="t1" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t2" to="t3" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t8" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t3" to="t12" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t5" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t4" to="t9" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t5" to="t6" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t6" to="t7" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t7" to="t4" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t9" to="t10" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t10" to="t11" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t12" to="t4" type="TRUE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t12" to="t13" type="FALSE" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t13" to="t14" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
    <connection from="t14" to="t15" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
  </flow>
</data>