$def with () $var title: $_(u'A list of sensors') $var page: users $code: def two_digits(n): return '%02d' % int(n) intervals = ( (_('weeks'), 604800), # 60 * 60 * 24 * 7 (_('days'), 86400), # 60 * 60 * 24 (_('hours'), 3600), # 60 * 60 (_('minutes'), 60), (_('seconds'), 1), ) def display_time(seconds, granularity=2): result = [] for name, count in intervals: name = name.encode('utf-8').decode('utf-8') value = seconds // count if value: seconds -= value * count result.append("{} {}".format(int(value), name)) return ', '.join(result[:granularity]) def version(s): if s != 0: res = [int(x) for x in str(s)] return u"{}.{}{}".format(res[0], res[1], res[2]) else: return u"?.??"
$_('On') $_('Off') ${sensor.index+1}. $_(u'Name'): ${sensor.name} $_(u'Type'): $type_list[sensor.sens_type] ${multi_list[sensor.multi_type] if sensor.sens_type == 6 else ''}
$if sensor.enabled: $if sensor.response == 1:
$_(u'Link OK') - $_(u'Last:') $display_time(now() - sensor.last_response) (${(sensor.last_response_datetime) if sensor.last_response_datetime != '' else _(u'Change not yet loaded')}) $else: $_(u'Link ERROR')! - $_(u'Last:') $display_time(now() - sensor.last_response) (${(sensor.last_response_datetime) if sensor.last_response_datetime != '' else _(u'Change not yet loaded')})$_(u'Show in Footer on Home'): ${_(u'Yes') if sensor.show_in_footer else _(u'No')}
$if sensor.sens_type != 7:$_(u'Sample Rate'): ${two_digits(sensor.sample_rate/60) + ":" + two_digits(sensor.sample_rate%60)} ($_(u'mm:ss'))
$_(u'Log Samples'): ${_(u'Yes') if sensor.log_samples else _(u'No')}
$_(u'Log Events'): ${_(u'Yes') if sensor.log_event else _(u'No')}
$_(u'Text/Email Events'): ${_(u'Yes') if sensor.send_email else _(u'No')}
$_(u'E-mail plug-ins'): ${_(u'E-mail notifications V1') if sensor.eplug == 0 else _(u'E-mail notifications V2 SSL')}
$if sensor.sens_type == 1 and sensor.enabled: $if sensor.last_read_value[4] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[4])} $if sensor.last_read_value[4] == -127: $_(u'Probe Error') $else: (${sensor.dry_clos_msg if int(sensor.last_read_value[4])==1 else sensor.dry_open_msg})
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[4])} (${_(u'Change not yet loaded')})
$_(u'Open Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.used_stations_one: $_(u'None') $if "-1" not in sensor.used_stations_one: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.used_stations_one: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Closed Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.used_stations_two: $_(u'None') $if "-1" not in sensor.used_stations_two: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.used_stations_two: $station.name ($_('Output') ${str(station.index+1)})
$elif sensor.sens_type == 2 and sensor.enabled: $if sensor.last_read_value[5] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[5])} $if sensor.last_read_value[5] == -127: $_(u'Probe Error') $else: $_(u'Liter per second')
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[5])} (${_(u'Change not yet loaded')})
$_(u'Stabilization Time'): ${two_digits(sensor.stabilization_time/60)}:${two_digits(sensor.stabilization_time%60)} ($_(u'mm:ss'))
$_(u'Sensitivity'): ${sensor.sensitivity} $_(u'%')
$_(u'One pulse is'): ${sensor.liter_per_pulses} $_(u'Liters')
$_(u'Low Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'High Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.sens_type == 3 and sensor.enabled: $if sensor.last_read_value[6] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[6])} $if sensor.last_read_value[6] == -127: $_(u'Probe Error') $else: $_(u'%')
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[6])} (${_(u'Change not yet loaded')})
$_(u'Low Threshold'): ${sensor.trigger_low_threshold} $_(u'%')
$_(u'Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'High Threshold'): ${sensor.trigger_high_threshold} $_(u'%')
$_(u'Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.sens_type == 4 and sensor.enabled: $if sensor.last_read_value[7] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[7])} $if sensor.last_read_value[7] == -127: $_(u'Probe Error') $else: (${sensor.motion_msg if int(sensor.last_read_value[7])==1 else sensor.no_motion_msg})
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[7])} (${_(u'Change not yet loaded')})
$_(u'Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.sens_type == 5 and sensor.enabled: $if sensor.last_read_value[0] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[0])} $if sensor.last_read_value[0] == -127: $_(u'Probe Error') $else: $if options.temp_unit == 'F': °F $if options.temp_unit == 'C': °C
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[0])} (${_(u'Change not yet loaded')})
$_(u'Low Threshold'): ${sensor.trigger_low_threshold} $if options.temp_unit == 'F': °F $if options.temp_unit == 'C': °C
$_(u'Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'High Threshold'): ${sensor.trigger_high_threshold} $if options.temp_unit == 'F': °F $if options.temp_unit == 'C': °C
$_(u'Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.sens_type == 6 and sensor.enabled: $if sensor.multi_type >= 0 and sensor.multi_type <4: $if sensor.last_read_value[sensor.multi_type] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[sensor.multi_type])} $if sensor.last_read_value[sensor.multi_type] == -127: $_(u'Probe Error') $else: $if options.temp_unit == 'F': °F $if options.temp_unit == 'C': °C
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[sensor.multi_type])} (${_(u'Change not yet loaded')})
$_(u'Low Threshold'): ${sensor.trigger_low_threshold} $if options.temp_unit == 'F': °F $if options.temp_unit == 'C': °C
$_(u'Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'High Threshold'): ${sensor.trigger_high_threshold} $if options.temp_unit == 'F': °F $if options.temp_unit == 'C': °C
$_(u'Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.multi_type == 4: $if sensor.last_read_value[4] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[4])} $if sensor.last_read_value[4] == -127: $_(u'Probe Error') $else: (${sensor.dry_clos_msg if int(sensor.last_read_value[4])==1 else sensor.dry_open_msg})
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[4])} (${_(u'Change not yet loaded')})
$_(u'Open Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.used_stations_one: $_(u'None') $if "-1" not in sensor.used_stations_one: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.used_stations_one: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Closed Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.used_stations_two: $_(u'None') $if "-1" not in sensor.used_stations_two: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.used_stations_two: $station.name ($_('Output') ${str(station.index+1)})
$elif sensor.multi_type == 5: $if sensor.last_read_value[5] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[5])} $if sensor.last_read_value[5] == -127: $_(u'Probe Error') $else: $_(u'Liter per second')
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[5])} (${_(u'Change not yet loaded')})
$_(u'Stabilization Time'): ${two_digits(sensor.stabilization_time/60)}:${two_digits(sensor.stabilization_time%60)} ($_(u'mm:ss'))
$_(u'Sensitivity'): ${sensor.sensitivity} $_(u'%')
$_(u'One pulse is'): ${sensor.liter_per_pulses} $_(u'Liters')
$_(u'Low Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'High Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.multi_type == 6: $if sensor.last_read_value != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[6])} $if sensor.last_read_value[6] == -127: $_(u'Probe Error') $else: $_(u'%')
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[6])} (${_(u'Change not yet loaded')})
$_(u'Low Threshold'): ${sensor.trigger_low_threshold} $_(u'%')
$_(u'Program(s)'): $if "-1" in sensor.trigger_low_program: $_(u'None') $if "-1" not in sensor.trigger_low_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_low_program: $program.name
$_(u'High Threshold'): ${sensor.trigger_high_threshold} $_(u'%')
$_(u'Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.multi_type == 7: $if sensor.last_read_value[7] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[7])} $if sensor.last_read_value[7] == -127: $_(u'Probe Error') $else: (${sensor.motion_msg if int(sensor.last_read_value[7])==1 else sensor.no_motion_msg})
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[7])} (${_(u'Change not yet loaded')})
$_(u'Program(s)'): $if "-1" in sensor.trigger_high_program: $_(u'None') $if "-1" not in sensor.trigger_high_program: $for program in programs.get(): $if str(program.index+1) in sensor.trigger_high_program: $program.name
$elif sensor.multi_type == 8: $if sensor.last_read_value[8] != '':$_(u'Last Read Value'): ${str(sensor.last_read_value[8])} $if sensor.last_read_value[8] == -127: $_(u'Probe Error') $else: $_(u'cm')
$else:$_(u'Last Read Value'): ${str(sensor.last_read_value[8])} (${_(u'Change not yet loaded')})
$_(u'Distance sensor to minimum'): ${sensor.distance_bottom} $_(u'cm')
$_(u'Distance sensor to maximum'): ${sensor.distance_top} $_(u'cm')
$_(u'Minimum water level in tank'): ${sensor.water_minimum} $_(u'cm')
$_(u'Cylinder diameter'): ${sensor.diameter} $_(u'cm')
$_(u'Display in liters'): ${_(u'Yes') if sensor.check_liters else _(u'No')}
$_(u'Stop stations if minimum'): ${_(u'Yes') if sensor.use_stop else _(u'No')}
$_(u'Delay Duration'): ${sensor.delay_duration} $_(u'hours')
$_(u'Stop stations if fault'): ${_(u'Yes') if sensor.use_water_stop else _(u'No')}
$_(u'Stop this run stations'): $if "-1" in sensor.used_stations: $_(u'None') $if "-1" not in sensor.used_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.used_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Regulate the maximum water level'): ${_(u'Yes') if sensor.enable_reg else _(u'No')}
$_(u'Maximum maintained water level'): ${sensor.reg_max} $_(u'cm')
$_(u'Maximum run time in activate'): ${two_digits(sensor.reg_mm) + ":" + two_digits(sensor.reg_ss)} ($_(u'mm:ss'))
$_(u'Minimum maintained water level'): ${sensor.reg_min} $_(u'cm')
$_(u'Select Output for regulation'): $if "-1" in sensor.reg_output: $_(u'None') $if "-1" not in sensor.reg_output: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.reg_output: ${station.name} ($_('Output') ${str(station.index+1)})
$elif sensor.multi_type == 9: $if sensor.soil_last_read_value[0] != '':$_(u'Last Read Value') $for i in range(0, 16):
$_('Probe') ${str(i+1)} - ${sensor.soil_probe_label[i]}: $if sensor.soil_last_read_value[i] != -127: ${str(sensor.soil_last_read_value[i])}$_(u'V') $_(u'CAL0/100:') ${str(sensor.soil_calibration_min[i])}$_(u'V')/${str(sensor.soil_calibration_max[i])}$_(u'V') $else: $_(u'Probe Error')
$else:$_(u'Last Read Value'): ${_(u'Change not yet loaded')}
$for i in range(0, 16): $if sensor.soil_program[i] != "-1":$_(u'Probe') ${str(i+1)} - ${sensor.soil_probe_label[i]} - $_(u'Program'): $for program in programs.get(): $if str(program.index+1) == sensor.soil_program[i]: $program.name
$elif sensor.sens_type == 7 and sensor.enabled: $if sensor.last_read_value[0] != '': $for i in range(0, 7):$_(u'Last Read Value SW')${i+1}: ${str(sensor.last_read_value[i])} $if sensor.last_read_value[i] == 1: ($_(u'+3.3V open contact')) $elif sensor.last_read_value[i] == 0: ($_(u'0V closed contact')) $elif sensor.last_read_value[i] == -127: $_(u'Communication error')
$else: $for i in range(0, 7):$_(u'Last Read Value SW')${i+1}: ${str(sensor.last_read_value[i])} (${_(u'Change not yet loaded')})
$_(u'Switch') 1)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw0_closed_program: $_(u'None') $if "-1" not in sensor.sw0_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw0_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw0_closed_stations: $_(u'None') $if "-1" not in sensor.sw0_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw0_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw0_open_program: $_(u'None') $if "-1" not in sensor.sw0_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw0_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw0_open_stations: $_(u'None') $if "-1" not in sensor.sw0_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw0_open_stations: $station.name ($_('Output') ${str(station.index+1)})
----------------
$_(u'Switch') 2)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw1_closed_program: $_(u'None') $if "-1" not in sensor.sw1_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw1_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw1_closed_stations: $_(u'None') $if "-1" not in sensor.sw1_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw1_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw1_open_program: $_(u'None') $if "-1" not in sensor.sw1_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw1_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw1_open_stations: $_(u'None') $if "-1" not in sensor.sw1_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw1_open_stations: $station.name ($_('Output') ${str(station.index+1)})
----------------
$_(u'Switch') 3)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw2_closed_program: $_(u'None') $if "-1" not in sensor.sw2_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw2_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw2_closed_stations: $_(u'None') $if "-1" not in sensor.sw2_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw2_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw2_open_program: $_(u'None') $if "-1" not in sensor.sw2_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw2_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw2_open_stations: $_(u'None') $if "-1" not in sensor.sw2_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw2_open_stations: $station.name ($_('Output') ${str(station.index+1)})
----------------
$_(u'Switch') 4)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw3_closed_program: $_(u'None') $if "-1" not in sensor.sw3_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw3_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw3_closed_stations: $_(u'None') $if "-1" not in sensor.sw3_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw3_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw3_open_program: $_(u'None') $if "-1" not in sensor.sw3_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw3_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw3_open_stations: $_(u'None') $if "-1" not in sensor.sw3_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw3_open_stations: $station.name ($_('Output') ${str(station.index+1)})
----------------
$_(u'Switch') 5)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw4_closed_program: $_(u'None') $if "-1" not in sensor.sw4_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw4_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw4_closed_stations: $_(u'None') $if "-1" not in sensor.sw4_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw4_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw4_open_program: $_(u'None') $if "-1" not in sensor.sw4_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw4_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw4_open_stations: $_(u'None') $if "-1" not in sensor.sw4_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw4_open_stations: $station.name ($_('Output') ${str(station.index+1)})
----------------
$_(u'Switch') 6)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw5_closed_program: $_(u'None') $if "-1" not in sensor.sw5_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw5_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw5_closed_stations: $_(u'None') $if "-1" not in sensor.sw5_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw5_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw5_open_program: $_(u'None') $if "-1" not in sensor.sw5_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw5_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw5_open_stations: $_(u'None') $if "-1" not in sensor.sw5_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw5_open_stations: $station.name ($_('Output') ${str(station.index+1)})
----------------
$_(u'Switch') 7)
$_(u'Closed Program(s)'): $if "-1" in sensor.sw6_closed_program: $_(u'None') $if "-1" not in sensor.sw6_closed_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw6_closed_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw6_closed_stations: $_(u'None') $if "-1" not in sensor.sw6_closed_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw6_closed_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'Open Program(s)'): $if "-1" in sensor.sw6_open_program: $_(u'None') $if "-1" not in sensor.sw6_open_program: $for program in programs.get(): $if str(program.index+1) in sensor.sw6_open_program: $program.name
$_(u'Stop this run stations'): $if "-1" in sensor.sw6_open_stations: $_(u'None') $if "-1" not in sensor.sw6_open_stations: $for station in [station for station in stations if station.enabled]: $if str(station.index) in sensor.sw6_open_stations: $station.name ($_('Output') ${str(station.index+1)})
$_(u'IP Address'): ${sensor.ip_address[0]}.${sensor.ip_address[1]}.${sensor.ip_address[2]}.${sensor.ip_address[3]}
$if sensor.mac_address != '':$_(u'MAC Address'): ${sensor.mac_address}
$if sensor.rssi != '':$_(u'Last RSSI Level'): ${sensor.rssi} $_(u'%')
$if sensor.last_battery != '':$_(u'Last Power supply voltage'): ${sensor.last_battery} $_(u'V')
$if sensor.com_type == 1 and sensor.enabled:$_(u'Radio ID'): ${sensor.radio_id}
$if sensor.last_battery != '':$_(u'Last Battery voltage'): ${sensor.last_battery} $_(u'V')
$if sensor.enabled:$_(u'Firmware Version'): ${version(sensor.fw)}
$if sensor.notes:$_('Notes'):
$_(u'Edit Sensor') $if sensor.sens_type != 7: $_(u'View Logs') $_(u'View Graph') $_(u'Delete Sensor')