/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiss * @copyright 2012 - 2020 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ /** * Popup Widget for Gira Smoke detector with freebus/selfbus module * * @param {id=} unique id for this widget * @param {text=} the title for the popup * @param {item(bool)} the knx gad (groupaddress) for networking alarm * @param {item(bool)} the knx gad (groupaddress) for networking test alarm * @param {item(bool)} the knx gad (groupaddress) for alarm reset * @param {item(bool)} the knx gad (groupaddress) for alarm status * @param {item(bool)} the knx gad (groupaddress) for test alarm status * @param {item(num=)} the knx gad (groupaddress) for serialnumber (optional) * @param {item(num=)} the knx gad (groupaddress) for operating time (optional) * @param {item(num=)} the knx gad (groupaddress) for smoke box value (optional) * @param {item(num=)} the knx gad (groupaddress) for pollution degree (optional) * @param {item(num)} the knx gad (groupaddress) for battery voltage (optional) * @param {item(num=)} the knx gad (groupaddress) for temperature (optional) * @param {item(num=)} the knx gad (groupaddress) for errorcode (optional) * @param {item(bool=)} the knx gad (groupaddress) for battery empty (optional) * @param {item(bool=)} the knx gad (groupaddress) for error (optional) * @param {item(num)=} the knx gad (groupaddress) for count smoke alarm (optional) * @param {item(num)=} the knx gad (groupaddress) for count temperature alarm (optional) * @param {item(num)=} the knx gad (groupaddress) for count test alarm (optional) * @param {item(num)=} the knx gad (groupaddress) for count wire alarm (optional) * @param {item(num)=} the knx gad (groupaddress) for count bus alarm (optional) * @param {item(num)=} the knx gad (groupaddress) for count wire test alarm (optional) * @param {item(num)=} the knx gad (groupaddress) for count bus test alarm (optional) */ {% macro popup(id, title, gad_w_alarm, gad_w_testalarm, gad_reset, gad_status_alarm, gad_status_testalarm, gad_serial, gad_time, gad_smokebox, gad_pollution, gad_voltage, gad_temp, gad_errorcode, gad_battery, gad_error, gad_c_smoke, gad_c_temp, gad_c_test, gad_c_wire, gad_c_bus, gad_c_wiretest, gad_c_bustest ) %} {% import "basic.html" as basic %} {{ basic.symbol(id|_('rm1'), gad_status_alarm, '', 'secur_smoke_detector.svg', 1, '', 'icon1') }} {{ basic.symbol(id|_('rm2'), gad_status_alarm, '', 'secur_smoke_detector.svg', 0) }} {{ basic.symbol(id|_('rm3'), gad_error, '', 'message_service.svg', 1, '', 'icon1') }} {% endmacro %}