diff --git a/.gitignore b/.gitignore index ed907ab..5fa85ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +testresults + # ---> VirtualEnv # Virtualenv # http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ diff --git a/.gitmodules b/.gitmodules index ddea26d..3d40f83 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,12 @@ [submodule "task"] path = task url = https://git.mount-mockery.de/pylib/task.git +[submodule "fstools"] + path = fstools + url = https://git.mount-mockery.de/pylib/fstools.git +[submodule "reqif"] + path = reqif + url = https://git.mount-mockery.de/pylib/reqif.git +[submodule "unittest"] + path = unittest + url = https://git.mount-mockery.de/pylib/unittest.git diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0f01d6e --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +OUTDIR=testresults +TEXFILE=$(OUTDIR)/testrun.tex +PDFFILE=$(OUTDIR)/testrun.pdf +TEXFILE_FULL=$(OUTDIR)/testrun_full.tex +PDFFILE_FULL=$(OUTDIR)/testrun_full.pdf + +run: test_smoke pdf view pdf_full clean + @echo FINISHED... + +run_full: test_full pdf view pdf_full clean + @echo FINISHED... + +test_smoke: + venv/bin/python smart_brain_test.py test.all.smoke + +test_full: + venv/bin/python smart_brain_test.py test.all.full + +pdf: + @latexmk -pdf -quiet -pdflatex="pdflatex -interaction=nonstopmode" -output-directory=$(OUTDIR) -use-make $(TEXFILE) > /dev/null + +pdf_full: + @latexmk -pdf -quiet -pdflatex="pdflatex -interaction=nonstopmode" -output-directory=$(OUTDIR) -use-make $(TEXFILE_FULL) > /dev/null + +view: + @open $(PDFFILE) + +view_full: + @open $(PDFFILE_FULL) + +clean: + @latexmk -quiet -output-directory=$(OUTDIR) -c $(TEXFILE) > /dev/null + @latexmk -quiet -output-directory=$(OUTDIR) -c $(TEXFILE_FULL) > /dev/null + @find . -name *~ -type f | xargs rm -f + @find . -name __pycache__ -type d | xargs rm -rf + +%: + venv/bin/python smart_brain_test.py $@ + $(MAKE) pdf_full view_full pdf clean \ No newline at end of file diff --git a/fstools b/fstools new file mode 160000 index 0000000..c10e879 --- /dev/null +++ b/fstools @@ -0,0 +1 @@ +Subproject commit c10e8792abb05671dab6de51cdadda3bf8ead50f diff --git a/reqif b/reqif new file mode 160000 index 0000000..c0e8533 --- /dev/null +++ b/reqif @@ -0,0 +1 @@ +Subproject commit c0e8533af5eeb4dccb6cd8742c936eb456ce6466 diff --git a/simulation/devices.py b/simulation/devices.py index 9765cef..b5f04c5 100644 --- a/simulation/devices.py +++ b/simulation/devices.py @@ -15,6 +15,8 @@ COLOR_MOTION_SENSOR = colored.fg("dark_orange_3b") COLOR_HEATING_VALVE = colored.fg("red") COLOR_REMOTE = colored.fg("green") +OUTPUT_ACTIVE = True + class base(mqtt_base): AUTOSEND = True @@ -85,24 +87,27 @@ class base(mqtt_base): print("You need to give a numeric parameter not '%s'" % str(value)) def print_formatted_light(self, color, state, description, led=False): - if led is True: - if state is True: - icon = colored.fg('green') + "\u2b24" + color + if OUTPUT_ACTIVE: + if led is True: + if state is True: + icon = colored.fg('green') + "\u2b24" + color + else: + icon = colored.fg('light_gray') + "\u2b24" + color else: - icon = colored.fg('light_gray') + "\u2b24" + color - else: - icon = u'\u2b24' if state is True else u'\u25ef' - print(color + 10 * ' ' + icon + 9 * ' ' + self.__devicename__(), description + colored.attr("reset")) + icon = u'\u2b24' if state is True else u'\u25ef' + print(color + 10 * ' ' + icon + 9 * ' ' + self.__devicename__(), description + colored.attr("reset")) def print_formatted_videv(self, color, state, description): - icon = u'\u25a0' if state is True else u'\u25a1' - print(color + 10 * ' ' + icon + 9 * ' ' + self.__devicename__(), description + colored.attr("reset")) + if OUTPUT_ACTIVE: + icon = u'\u25a0' if state is True else u'\u25a1' + print(color + 10 * ' ' + icon + 9 * ' ' + self.__devicename__(), description + colored.attr("reset")) def print_formatted_percent(self, color, prefix, perc_value, value_str, description): - if len(prefix) > 1 or len(value_str) > 7: - raise ValueError("Length of prefix (%d) > 1 or length of value_str (%d) > 7" % (len(prefix), len(value_str))) - print(color + prefix + self.__percent_bar__(perc_value), value_str + (8 - len(value_str)) - * ' ' + self.__devicename__(), description + colored.attr("reset")) + if OUTPUT_ACTIVE: + if len(prefix) > 1 or len(value_str) > 7: + raise ValueError("Length of prefix (%d) > 1 or length of value_str (%d) > 7" % (len(prefix), len(value_str))) + print(color + prefix + self.__percent_bar__(perc_value), value_str + (8 - len(value_str)) + * ' ' + self.__devicename__(), description + colored.attr("reset")) class base_videv(base): @@ -365,9 +370,9 @@ class tradfri_light(base): def __ext_to_int__(self, key, data): if key == self.KEY_BRIGHTNESS: - return round((data - 1) / 2.53, 0) + return int(round((data - 1) / 2.53, 0)) elif key == self.KEY_COLOR_TEMP: - return round((data - 250) / 20.4, 0) + return int(round((data - 250) / 20.4, 0)) else: return super().__ext_to_int__(key, data) @@ -547,12 +552,17 @@ class videv_light(base_videv): self.add_callback(self.KEY_COLOR_TEMP, None, self.__send__, True) self.add_callback(self.KEY_TIMER, None, self.__send__, True) + def __ext_to_int__(self, key, data): + if key in [self.KEY_BRIGHTNESS, self.KEY_COLOR_TEMP]: + return int(data) + return super().__ext_to_int__(key, data) + def __rx__(self, client, userdata, message): value = self.__payload_filter__(message.payload) if message.topic.startswith(self.topic): targetkey = message.topic.split('/')[-1] if targetkey in self.keys(): - self.set(targetkey, value, block_callback=(self.__send__, )) + self.set(targetkey, self.__ext_to_int__(targetkey, value), block_callback=(self.__send__, )) elif targetkey != "__info__": print("Unknown key %s in %s::%s" % (targetkey, message.topic, self.__class__.__name__)) diff --git a/smart_brain_test.py b/smart_brain_test.py index ac41633..ff505c5 100644 --- a/smart_brain_test.py +++ b/smart_brain_test.py @@ -1,16 +1,20 @@ import config -import logging import mqtt import readline -import report from simulation.rooms import house -from tests import test_smarthome -import time +import sys +from tests.all import test_smarthome + +# TODO: Extend tests in simulation +# - Switching button functions (gfw_dirk, ffe.sleep) +# - Brightness button functions (gfw.dirk, ffe.sleep) +# - Synch functions of amplifier with spotify, mpd +# - Remote actions after amplifier on +# - Heating functionality (extended: mode switch off by other function, timer) +# - Circulation pump (Extend Timer) +# - Stairways (Extend Motion sensor and Timer) if __name__ == "__main__": - report.stdoutLoggingConfigure( - ((config.APP_NAME, logging.WARNING), ), report.SHORT_FMT) - # mc = mqtt.mqtt_client(host=config.MQTT_SERVER, port=config.MQTT_PORT, username=config.MQTT_USER, password=config.MQTT_PASSWORD, name=config.APP_NAME + '_simulation') # @@ -61,25 +65,30 @@ if __name__ == "__main__": else: state -= 1 - readline.parse_and_bind("tab: complete") - readline.set_completer(completer) - time.sleep(0.3) - print("\nEnter command: ") - - while True: - userfeedback = input('') - command = userfeedback.split(' ')[0] - if userfeedback == 'quit': - break - elif userfeedback == 'help': - print("Help is not yet implemented!") - elif userfeedback.startswith("test"): - ts.command(userfeedback) - elif userfeedback == 'test.smoke': - ts.smoke() - elif command in COMMANDS[2:]: - h.command(userfeedback) - elif userfeedback != "": - print("Unknown command!") + if len(sys.argv) == 1: + readline.parse_and_bind("tab: complete") + readline.set_completer(completer) + print("\nEnter command: ") + while True: + userfeedback = input('') + command = userfeedback.split(' ')[0] + if userfeedback == 'quit': + break + elif userfeedback == 'help': + print("Help is not yet implemented!") + elif userfeedback.startswith("test"): + ts.command(userfeedback) + elif command in COMMANDS[2:]: + h.command(userfeedback) + elif userfeedback != "": + print("Unknown command!") + else: + print() + else: + cmd = sys.argv[1] + if cmd.startswith('test'): + ts.command(cmd) else: - print() + h.command(cmd) + + del (ts) diff --git a/templates/macros.tex b/templates/macros.tex new file mode 100644 index 0000000..daf7a55 --- /dev/null +++ b/templates/macros.tex @@ -0,0 +1,11 @@ +{%- macro latex_filter(text) -%}{{ text.replace('\\', '/').replace('%', '\\%').replace('/xc2/xb0', '$^\circ$').replace('"', '\'').replace('/', '/\\allowbreak ').replace('&', '\\allowbreak \\&').replace('_', '\\_').replace('->', '$\\rightarrow$').replace('<-', '$\\leftarrow$').replace('=>', '$\\Rightarrow$').replace('<=', '$\\leq$').replace('>=', '$\\geq$').replace('<', '$<$').replace('>', '$>$').replace('{', '\{').replace('}', '\}').replace('#', '\\#')}} +{%- endmacro -%} + +{%- macro color_by_level(level) -%}{% if level <= 10 %}black{% else %}{% if level <= 20 %}green{% else %}{% if level <= 30 %}orange{% else %}red{% endif %}{% endif %}{% endif %} +{%- endmacro -%} + +{%- macro bg_by_levelno(level) -%}{% if level <= 10 %}0.8 0.8 0.8{% else %}{% if level <= 20 %}0.8 0.95 0.8{% else %}{% if level <= 30 %}1 0.75 0.45{% else %}0.95 0.8 0.8{% endif %}{% endif %}{% endif %} +{%- endmacro -%} + +{%- macro result(level) -%}{% if level <= 10 %}Info{% else %}{% if level <= 20 %}\textcolor{green}{Success}{% else %}{% if level <= 30 %}\textcolor{orange}{Warning}{% else %}\textcolor{red}{Failed}{% endif %}{% endif %}{% endif %} +{%- endmacro -%} diff --git a/templates/report_testcase.tex b/templates/report_testcase.tex new file mode 100644 index 0000000..4afb6e5 --- /dev/null +++ b/templates/report_testcase.tex @@ -0,0 +1,36 @@ +{%- import 'macros.tex' as macros %} +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf {{ macros.result(testcase.levelno) }}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & {{ macros.latex_filter(testcase.pathname) }} ({{ "%d" % testcase.lineno }})\\ +Start-Time: & {{ macros.latex_filter(testcase.time_start) }}\\ +Finished-Time: & {{ macros.latex_filter(testcase.time_finished) }}\\ +Time-Consumption & {{ '%.3fs' % (testcase.time_consumption) }}\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +{%- for tLogger in testcase.testcaseLogger %} +\bf{\,{{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\ +{%- endfor %} +\bottomrule +\end{longtabu} + +{% if details== true %} +\paragraph{Testdetails}\mbox{}\\ +{%- for tLogger in testcase.testcaseLogger %} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf {{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\ + \bottomrule + \end{tabu} + {%- for mLogger in tLogger.moduleLogger %} + \definecolor{shadecolor}{rgb}{ {{macros.bg_by_levelno(mLogger.levelno) }} }\begin{modulelog}[breaklines=true, breakanywhere=true] + {{ mLogger.message }} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + {%- endfor %} + + \vspace*{2.5ex} +{%- endfor %} +{% endif %} diff --git a/templates/run_statistic.tex b/templates/run_statistic.tex new file mode 100644 index 0000000..10928ff --- /dev/null +++ b/templates/run_statistic.tex @@ -0,0 +1,13 @@ +{%- import 'macros.tex' as macros %} +\begin{tabu} to \linewidth {lX} + \toprule + Number of tests & {{ "{\\bf %d}" % testrun.number_of_tests }}\\ + Number of successfull tests & {{ "{\\bf %d}" % testrun.number_of_successfull_tests }}\\ + Number of possibly failed tests & \textcolor{% if testrun.number_of_possibly_failed_tests > 0%}{orange}{% else %}{black}{% endif %}{{ "{\\bf %d}" % testrun.number_of_possibly_failed_tests }}\\ + Number of failed tests & \textcolor{% if testrun.number_of_failed_tests > 0%}{red}{% else %}{black}{% endif %}{{ "{\\bf %d}" % testrun.number_of_failed_tests }}\\ + \midrule + Executionlevel & {{ macros.latex_filter(testrun.testcase_names.get('%d' % testrun.testcase_execution_level, 'unknown')) }}\\ + Time consumption & {{ '%.3fs' % testrun.time_consumption }}\\ + \bottomrule +\end{tabu} + diff --git a/templates/system.tex b/templates/system.tex new file mode 100644 index 0000000..7fb975e --- /dev/null +++ b/templates/system.tex @@ -0,0 +1,12 @@ +{%- import 'macros.tex' as macros %} +\begin{tabu} to \linewidth {lX} +\toprule +{\bf System Information} & \\ +\midrule +{%- for key in system_information %} +{%- if key != "Description" %} +{{macros.latex_filter(key)}} & {{macros.latex_filter(data.system_information[key])}} \\ +{%- endif %} +{%- endfor %} +\bottomrule +\end{tabu} diff --git a/templates/unittest.tex b/templates/unittest.tex new file mode 100644 index 0000000..bf9188c --- /dev/null +++ b/templates/unittest.tex @@ -0,0 +1,49 @@ +{%- import 'macros.tex' as macros %} +{%- include 'unittest_head.tex' %} +{%- include 'unittest_titlepage.tex' %} + +\tableofcontents +\newpage + +\section{Test System Information} +{%- with system_information = data.system_information %} + {%- include 'system.tex' %} +{%- endwith %} + + +\section{Summary} +{%- with testrun = data %} + {%- include 'run_statistic.tex' %} +{%- endwith %} + +{% if data.number_of_failed_tests > 0 or data.number_of_possibly_failed_tests > 0%} + \section{\textcolor{red}{Testcases (Failed)}} + {%- for test_name in data.uid_list_sorted %} + {% with testcase = data.testcases[test_name] %} + {% if testcase.levelno > 20 %} + \subsection{ {{macros.latex_filter(testcase.message)}} } + {% with details = true %} + {% include 'report_testcase.tex' %} + {% endwith %} + {% endif %} + {% endwith %} + {% endfor %} +{% endif %} + + +{% if data.number_of_successfull_tests > 0 %} + \section{\textcolor{green}{Testcases (Success)}} + {%- for test_name in data.uid_list_sorted %} + {% with testcase = data.testcases[test_name] %} + {% if testcase.levelno <= 20 %} + \subsection{ {{macros.latex_filter(testcase.message)}} } + {% with details = details %} + {% include 'report_testcase.tex' %} + {% endwith %} + {% endif %} + {% endwith %} + {% endfor %} +{% endif %} + + +{% include 'unittest_foot.tex' %} diff --git a/templates/unittest_foot.tex b/templates/unittest_foot.tex new file mode 100644 index 0000000..737da30 --- /dev/null +++ b/templates/unittest_foot.tex @@ -0,0 +1 @@ +\end{document} diff --git a/templates/unittest_head.tex b/templates/unittest_head.tex new file mode 100644 index 0000000..c259129 --- /dev/null +++ b/templates/unittest_head.tex @@ -0,0 +1,89 @@ +{%- import 'macros.tex' as macros %} +\documentclass[a4paper]{article} +%\documentclass[a4paper,landscape]{article} + +\renewcommand{\familydefault}{\sfdefault} +\usepackage[table]{xcolor} +\definecolor{orange}{rgb}{1, 0.7, 0} +\definecolor{lightgrey}{rgb}{0.925, 0.925, 0.925} + +\setlength{\topmargin}{-3cm} +\setlength{\oddsidemargin}{-0.5cm} +\setlength{\evensidemargin}{0cm} +\setlength{\textwidth}{17.5cm} +\setlength{\textheight}{24.5cm} +%\setlength{\textwidth}{25cm} +%\setlength{\textheight}{15cm} +\setlength{\headheight}{84pt} + +\usepackage{fancyvrb} +\usepackage{fvextra} +%\usepackage{framed,color} +%\newenvironment{modulelog}{\snugshade\Verbatim}{\endVerbatim\endsnugshade} +\usepackage{adjustbox} +\newenvironment{modulelog}% +{\par\noindent\adjustbox{margin=0ex,bgcolor=shadecolor,margin=0ex}\bgroup\varwidth\linewidth\Verbatim}% +{\endVerbatim\endvarwidth\egroup} +%\usepackage{xcolor} + +\renewcommand{\baselinestretch}{1,2} +\setlength{\parindent}{0pt} +\setlength{\parskip}{9pt plus3pt minus3pt} + +\usepackage{listings} +\usepackage{color} +\definecolor{bg-partially-covered}{rgb}{1,1,0.6} % light-yellow +\definecolor{bg-uncovered}{rgb}{1,0.8,0.8} % light-red +\definecolor{bg-covered}{rgb}{0.95,1,0.95} % very light-green +\definecolor{bg-clean}{rgb}{1,1,1} % white +\definecolor{mygreen}{rgb}{0,0.6,0} +\definecolor{mygray}{rgb}{0.5,0.5,0.5} +\definecolor{mymauve}{rgb}{0.58,0,0.82} +\lstset{ % + backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument + basicstyle=\footnotesize, % the size of the fonts that are used for the code + breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace + breaklines=true, % sets automatic line breaking + captionpos=b, % sets the caption-position to bottom + commentstyle=\color{mygreen}, % comment style + deletekeywords={...}, % if you want to delete keywords from the given language + escapeinside={\%*}{*)}, % if you want to add LaTeX within your code + extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8 + frame=none, % adds a frame around the code + keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible) + keywordstyle=\color{blue}, % keyword style + language=Octave, % the language of the code + morekeywords={*,...}, % if you want to add more keywords to the set + numbers=left, % where to put the line-numbers; possible values are (none, left, right) + numbersep=5pt, % how far the line-numbers are from the code + numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers + rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here)) + showlines=true, + showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' + showstringspaces=false, % underline spaces within strings only + showtabs=false, % show tabs within strings adding particular underscores + stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered + stringstyle=\color{mymauve}, % string literal style + tabsize=2, % sets default tabsize to 2 spaces +} +\usepackage{hyperref} +\usepackage{longtable}[=v4.13] +\usepackage{tabu} +\usepackage{multicol} +\usepackage{booktabs} +\usepackage{graphicx} +\usepackage{lastpage} % for the number of the last page in the document +\usepackage{fancyhdr} + +\fancyhf{} +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} +\lhead{\textcolor{gray}{}} +\chead{\textcolor{gray}{ Unittest for {\tt smart\_brain }}} +\rhead{\textcolor{gray}{}} +\lfoot{\textcolor{gray}{}} +\cfoot{\textcolor{gray}{}} +\rfoot{\textcolor{gray}{\thepage\,/ \pageref{LastPage}}} + +\begin{document} + diff --git a/templates/unittest_titlepage.tex b/templates/unittest_titlepage.tex new file mode 100644 index 0000000..01b579a --- /dev/null +++ b/templates/unittest_titlepage.tex @@ -0,0 +1,14 @@ +{%- import 'macros.tex' as macros %} +\begin{titlepage} +\date{\today} +\title{ + Unittest for {\tt smart\_brain } +} +\date{\today} +\maketitle +\thispagestyle{empty} +\newpage +\end{titlepage} + +\setcounter{page}{1} +\pagestyle{fancy} diff --git a/testresults/testrun.json b/testresults/testrun.json new file mode 100644 index 0000000..ea6ef8e --- /dev/null +++ b/testresults/testrun.json @@ -0,0 +1,6409 @@ +{ + "time_consumption": 4.510141134262085, + "name": "Default Testsession name", + "number_of_successfull_tests": 5, + "number_of_possibly_failed_tests": 0, + "number_of_tests": 5, + "number_of_failed_tests": 0, + "testcase_execution_level": 90, + "testcase_names": { + "0": "Single Test", + "10": "Smoke Test (Minumum subset)", + "50": "Short Test (Subset)", + "90": "Full Test (all defined tests)" + }, + "testcases": { + "Away mode test: zigbee/gfw/dirk/heating_valve": { + "name": "__tLogger__", + "msg": "Away mode test: zigbee/gfw/dirk/heating_valve", + "args": null, + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 84, + "funcName": "test_away_mode", + "created": 1675925582.5665169, + "msecs": 566.5168762207031, + "relativeCreated": 225.42428970336914, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Away mode test: zigbee/gfw/dirk/heating_valve", + "asctime": "2023-02-09 07:53:02,566", + "moduleLogger": [], + "testcaseLogger": [ + { + "name": "__tLogger__", + "msg": "Setting preconditions (Default setpoint)", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 89, + "funcName": "__test_away_mode__", + "created": 1675925582.867079, + "msecs": 867.0790195465088, + "relativeCreated": 525.9864330291748, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Setting preconditions (Default setpoint)", + "asctime": "2023-02-09 07:53:02,867", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925582.5666273, + "msecs": 566.6272640228271, + "relativeCreated": 225.53467750549316, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true", + "asctime": "2023-02-09 07:53:02,566" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.5669632, + "msecs": 566.9631958007812, + "relativeCreated": 225.87060928344727, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true'", + "asctime": "2023-02-09 07:53:02,566" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6099102, + "msecs": 609.910249710083, + "relativeCreated": 268.817663192749, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:02,609" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.610063, + "msecs": 610.0630760192871, + "relativeCreated": 268.9704895019531, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:02,610" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6101818, + "msecs": 610.1818084716797, + "relativeCreated": 269.0892219543457, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:02,610" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925582.6102495, + "msecs": 610.2495193481445, + "relativeCreated": 269.15693283081055, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:02,610" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6103683, + "msecs": 610.3682518005371, + "relativeCreated": 269.2756652832031, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:02,610" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6105063, + "msecs": 610.5062961578369, + "relativeCreated": 269.41370964050293, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:02,610" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6106107, + "msecs": 610.6107234954834, + "relativeCreated": 269.5181369781494, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:02,610" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6538856, + "msecs": 653.8856029510498, + "relativeCreated": 312.7930164337158, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:02,653" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.6619573, + "msecs": 661.9572639465332, + "relativeCreated": 320.8646774291992, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:02,661" + } + ], + "time_consumption": 0.20512175559997559 + }, + { + "name": "__tLogger__", + "msg": "Away mode is correct (Content %s and Type is %s).", + "args": [ + "False", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925582.8671947, + "msecs": 867.194652557373, + "relativeCreated": 526.1020660400391, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Away mode is correct (Content False and Type is ).", + "asctime": "2023-02-09 07:53:02,867", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Away mode", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925582.8671472, + "msecs": 867.1472072601318, + "relativeCreated": 526.0546207427979, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Away mode): False ()", + "asctime": "2023-02-09 07:53:02,867" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Away mode", + "=", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925582.8671727, + "msecs": 867.1727180480957, + "relativeCreated": 526.0801315307617, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Away mode): result = False ()", + "asctime": "2023-02-09 07:53:02,867" + } + ], + "time_consumption": 2.193450927734375e-05 + }, + { + "name": "__tLogger__", + "msg": "Activating away mode", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 96, + "funcName": "__test_away_mode__", + "created": 1675925583.167663, + "msecs": 167.6630973815918, + "relativeCreated": 826.5705108642578, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Activating away mode", + "asctime": "2023-02-09 07:53:03,167", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.away_mode", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/away_mode", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925582.86725, + "msecs": 867.2499656677246, + "relativeCreated": 526.1573791503906, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/away_mode and payload true", + "asctime": "2023-02-09 07:53:02,867" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.away_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/away_mode", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8675106, + "msecs": 867.5105571746826, + "relativeCreated": 526.4179706573486, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'true'", + "asctime": "2023-02-09 07:53:02,867" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 20}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8755705, + "msecs": 875.57053565979, + "relativeCreated": 534.477949142456, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 20}'", + "asctime": "2023-02-09 07:53:02,875" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925582.8756511, + "msecs": 875.6511211395264, + "relativeCreated": 534.5585346221924, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:02,875" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8757725, + "msecs": 875.7724761962891, + "relativeCreated": 534.6798896789551, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:02,875" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8759103, + "msecs": 875.9102821350098, + "relativeCreated": 534.8176956176758, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:02,875" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.away_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/away_mode", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8760147, + "msecs": 876.0147094726562, + "relativeCreated": 534.9221229553223, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'true'", + "asctime": "2023-02-09 07:53:02,876" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8761184, + "msecs": 876.1184215545654, + "relativeCreated": 535.0258350372314, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:02,876" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.8762197, + "msecs": 876.2197494506836, + "relativeCreated": 535.1271629333496, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:02,876" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.9184706, + "msecs": 918.4706211090088, + "relativeCreated": 577.3780345916748, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:02,918" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925582.9621384, + "msecs": 962.1384143829346, + "relativeCreated": 621.0458278656006, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:02,962" + } + ], + "time_consumption": 0.20552468299865723 + }, + { + "name": "__tLogger__", + "msg": "Away mode is correct (Content %s and Type is %s).", + "args": [ + "True", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925583.167804, + "msecs": 167.80400276184082, + "relativeCreated": 826.7114162445068, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Away mode is correct (Content True and Type is ).", + "asctime": "2023-02-09 07:53:03,167", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Away mode", + "True", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925583.167752, + "msecs": 167.75202751159668, + "relativeCreated": 826.6594409942627, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Away mode): True ()", + "asctime": "2023-02-09 07:53:03,167" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Away mode", + "=", + "True", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925583.1677833, + "msecs": 167.78326034545898, + "relativeCreated": 826.690673828125, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Away mode): result = True ()", + "asctime": "2023-02-09 07:53:03,167" + } + ], + "time_consumption": 2.0742416381835938e-05 + }, + { + "name": "__tLogger__", + "msg": "Temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "20", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925583.1678667, + "msecs": 167.86670684814453, + "relativeCreated": 826.7741203308105, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Temperature setpoint is correct (Content 20 and Type is ).", + "asctime": "2023-02-09 07:53:03,167", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Temperature setpoint", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925583.1678333, + "msecs": 167.8333282470703, + "relativeCreated": 826.7407417297363, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Temperature setpoint): 20 ()", + "asctime": "2023-02-09 07:53:03,167" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Temperature setpoint", + "=", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925583.1678507, + "msecs": 167.85073280334473, + "relativeCreated": 826.7581462860107, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Temperature setpoint): result = 20 ()", + "asctime": "2023-02-09 07:53:03,167" + } + ], + "time_consumption": 1.5974044799804688e-05 + }, + { + "name": "__tLogger__", + "msg": "Deactivating away mode", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 102, + "funcName": "__test_away_mode__", + "created": 1675925583.4683464, + "msecs": 468.34635734558105, + "relativeCreated": 1127.253770828247, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Deactivating away mode", + "asctime": "2023-02-09 07:53:03,468", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.away_mode", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/away_mode", + "false" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925583.1679265, + "msecs": 167.92654991149902, + "relativeCreated": 826.833963394165, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/away_mode and payload false", + "asctime": "2023-02-09 07:53:03,167" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.away_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/away_mode", + "b'false'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.168239, + "msecs": 168.23911666870117, + "relativeCreated": 827.1465301513672, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'false'", + "asctime": "2023-02-09 07:53:03,168" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.1735659, + "msecs": 173.56586456298828, + "relativeCreated": 832.4732780456543, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:03,173" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925583.1736534, + "msecs": 173.65336418151855, + "relativeCreated": 832.5607776641846, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:03,173" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.1737728, + "msecs": 173.77281188964844, + "relativeCreated": 832.6802253723145, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:03,173" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.1739187, + "msecs": 173.9187240600586, + "relativeCreated": 832.8261375427246, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:03,173" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.away_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/away_mode", + "b'false'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.1740298, + "msecs": 174.02982711791992, + "relativeCreated": 832.9372406005859, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'false'", + "asctime": "2023-02-09 07:53:03,174" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.1741362, + "msecs": 174.13616180419922, + "relativeCreated": 833.0435752868652, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:03,174" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.1742375, + "msecs": 174.23748970031738, + "relativeCreated": 833.1449031829834, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:03,174" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.2178812, + "msecs": 217.8812026977539, + "relativeCreated": 876.7886161804199, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:03,217" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.257957, + "msecs": 257.95698165893555, + "relativeCreated": 916.8643951416016, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:03,257" + } + ], + "time_consumption": 0.2103893756866455 + }, + { + "name": "__tLogger__", + "msg": "Away mode is correct (Content %s and Type is %s).", + "args": [ + "False", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925583.4684498, + "msecs": 468.44983100891113, + "relativeCreated": 1127.3572444915771, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Away mode is correct (Content False and Type is ).", + "asctime": "2023-02-09 07:53:03,468", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Away mode", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925583.4684064, + "msecs": 468.40643882751465, + "relativeCreated": 1127.3138523101807, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Away mode): False ()", + "asctime": "2023-02-09 07:53:03,468" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Away mode", + "=", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925583.4684303, + "msecs": 468.4302806854248, + "relativeCreated": 1127.3376941680908, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Away mode): result = False ()", + "asctime": "2023-02-09 07:53:03,468" + } + ], + "time_consumption": 1.9550323486328125e-05 + }, + { + "name": "__tLogger__", + "msg": "Temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925583.4685166, + "msecs": 468.51658821105957, + "relativeCreated": 1127.4240016937256, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Temperature setpoint is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:03,468", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Temperature setpoint", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925583.4684794, + "msecs": 468.4793949127197, + "relativeCreated": 1127.3868083953857, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Temperature setpoint): 25 ()", + "asctime": "2023-02-09 07:53:03,468" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Temperature setpoint", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925583.4684963, + "msecs": 468.49632263183594, + "relativeCreated": 1127.403736114502, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Temperature setpoint): result = 25 ()", + "asctime": "2023-02-09 07:53:03,468" + } + ], + "time_consumption": 2.0265579223632812e-05 + } + ], + "time_consumption": 0.9019997119903564, + "time_start": "2023-02-09 07:53:02,566", + "time_finished": "2023-02-09 07:53:03,468" + }, + "Boost mode test: zigbee/gfw/dirk/heating_valve": { + "name": "__tLogger__", + "msg": "Boost mode test: zigbee/gfw/dirk/heating_valve", + "args": null, + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 107, + "funcName": "test_boost_mode", + "created": 1675925583.4686012, + "msecs": 468.6012268066406, + "relativeCreated": 1127.5086402893066, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Boost mode test: zigbee/gfw/dirk/heating_valve", + "asctime": "2023-02-09 07:53:03,468", + "moduleLogger": [], + "testcaseLogger": [ + { + "name": "__tLogger__", + "msg": "Setting preconditions (Default setpoint)", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 112, + "funcName": "__test_boost_mode__", + "created": 1675925583.7690794, + "msecs": 769.0794467926025, + "relativeCreated": 1427.9868602752686, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Setting preconditions (Default setpoint)", + "asctime": "2023-02-09 07:53:03,769", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925583.4686506, + "msecs": 468.65057945251465, + "relativeCreated": 1127.5579929351807, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true", + "asctime": "2023-02-09 07:53:03,468" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.4689183, + "msecs": 468.9183235168457, + "relativeCreated": 1127.8257369995117, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true'", + "asctime": "2023-02-09 07:53:03,468" + } + ], + "time_consumption": 0.30016112327575684 + }, + { + "name": "__tLogger__", + "msg": "Boost timer is correct (Content %s and Type is %s).", + "args": [ + "0", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925583.7692595, + "msecs": 769.2594528198242, + "relativeCreated": 1428.1668663024902, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Boost timer is correct (Content 0 and Type is ).", + "asctime": "2023-02-09 07:53:03,769", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Boost timer", + "0", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925583.7692025, + "msecs": 769.202470779419, + "relativeCreated": 1428.109884262085, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Boost timer): 0 ()", + "asctime": "2023-02-09 07:53:03,769" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Boost timer", + "=", + "0", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925583.7692382, + "msecs": 769.2382335662842, + "relativeCreated": 1428.1456470489502, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Boost timer): result = 0 ()", + "asctime": "2023-02-09 07:53:03,769" + } + ], + "time_consumption": 2.1219253540039062e-05 + }, + { + "name": "__tLogger__", + "msg": "Activating boost mode", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 119, + "funcName": "__test_boost_mode__", + "created": 1675925584.0697818, + "msecs": 69.78178024291992, + "relativeCreated": 1728.689193725586, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Activating boost mode", + "asctime": "2023-02-09 07:53:04,069", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.start_boost", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/start_boost", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925583.7693286, + "msecs": 769.3285942077637, + "relativeCreated": 1428.2360076904297, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/start_boost and payload true", + "asctime": "2023-02-09 07:53:03,769" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.start_boost", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/start_boost", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7696679, + "msecs": 769.6678638458252, + "relativeCreated": 1428.5752773284912, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/start_boost and payload b'true'", + "asctime": "2023-02-09 07:53:03,769" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.boost_timer", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/boost_timer", + "b'900'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7746215, + "msecs": 774.6214866638184, + "relativeCreated": 1433.5289001464844, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/boost_timer and payload b'900'", + "asctime": "2023-02-09 07:53:03,774" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7747583, + "msecs": 774.7583389282227, + "relativeCreated": 1433.6657524108887, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:03,774" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 30}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7748682, + "msecs": 774.8682498931885, + "relativeCreated": 1433.7756633758545, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 30}'", + "asctime": "2023-02-09 07:53:03,774" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 30, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925583.7749352, + "msecs": 774.935245513916, + "relativeCreated": 1433.842658996582, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 30, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:03,774" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'30'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7750514, + "msecs": 775.0513553619385, + "relativeCreated": 1433.9587688446045, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'30'", + "asctime": "2023-02-09 07:53:03,775" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7751899, + "msecs": 775.1898765563965, + "relativeCreated": 1434.0972900390625, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:03,775" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 30, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.7752998, + "msecs": 775.2997875213623, + "relativeCreated": 1434.2072010040283, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 30, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:03,775" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.8184676, + "msecs": 818.4676170349121, + "relativeCreated": 1477.3750305175781, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:03,818" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925583.8619397, + "msecs": 861.9396686553955, + "relativeCreated": 1520.8470821380615, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:03,861" + } + ], + "time_consumption": 0.20784211158752441 + }, + { + "name": "__tLogger__", + "msg": "Boost timer is greater expectation (Content %s and Type is %s).", + "args": [ + "900", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 233, + "funcName": "greater_chk", + "created": 1675925584.069899, + "msecs": 69.89908218383789, + "relativeCreated": 1728.806495666504, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Boost timer is greater expectation (Content 900 and Type is ).", + "asctime": "2023-02-09 07:53:04,069", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Boost timer", + "900", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925584.0698516, + "msecs": 69.85163688659668, + "relativeCreated": 1728.7590503692627, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Boost timer): 900 ()", + "asctime": "2023-02-09 07:53:04,069" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Boost timer", + ">", + "0", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925584.069877, + "msecs": 69.87690925598145, + "relativeCreated": 1728.7843227386475, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Boost timer): result > 0 ()", + "asctime": "2023-02-09 07:53:04,069" + } + ], + "time_consumption": 2.2172927856445312e-05 + }, + { + "name": "__tLogger__", + "msg": "Setting postconditions (Default setpoint)", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 124, + "funcName": "__test_boost_mode__", + "created": 1675925584.370348, + "msecs": 370.3479766845703, + "relativeCreated": 2029.2553901672363, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Setting postconditions (Default setpoint)", + "asctime": "2023-02-09 07:53:04,370", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925584.0699458, + "msecs": 69.9458122253418, + "relativeCreated": 1728.8532257080078, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true", + "asctime": "2023-02-09 07:53:04,069" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.0701907, + "msecs": 70.1906681060791, + "relativeCreated": 1729.0980815887451, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true'", + "asctime": "2023-02-09 07:53:04,070" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.boost_timer", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/boost_timer", + "b'0'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.0754447, + "msecs": 75.44469833374023, + "relativeCreated": 1734.3521118164062, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/boost_timer and payload b'0'", + "asctime": "2023-02-09 07:53:04,075" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.075583, + "msecs": 75.58298110961914, + "relativeCreated": 1734.4903945922852, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,075" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.075693, + "msecs": 75.69289207458496, + "relativeCreated": 1734.600305557251, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:04,075" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925584.0757575, + "msecs": 75.75750350952148, + "relativeCreated": 1734.6649169921875, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:04,075" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.0758739, + "msecs": 75.87385177612305, + "relativeCreated": 1734.781265258789, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:04,075" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.076011, + "msecs": 76.01094245910645, + "relativeCreated": 1734.9183559417725, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,076" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.0761154, + "msecs": 76.11536979675293, + "relativeCreated": 1735.022783279419, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:04,076" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.1191726, + "msecs": 119.17257308959961, + "relativeCreated": 1778.0799865722656, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:04,119" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.1620932, + "msecs": 162.0931625366211, + "relativeCreated": 1821.000576019287, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,162" + } + ], + "time_consumption": 0.20825481414794922 + }, + { + "name": "__tLogger__", + "msg": "Boost timer is correct (Content %s and Type is %s).", + "args": [ + "0", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925584.3704777, + "msecs": 370.47767639160156, + "relativeCreated": 2029.3850898742676, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Boost timer is correct (Content 0 and Type is ).", + "asctime": "2023-02-09 07:53:04,370", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Boost timer", + "0", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925584.370432, + "msecs": 370.43190002441406, + "relativeCreated": 2029.33931350708, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Boost timer): 0 ()", + "asctime": "2023-02-09 07:53:04,370" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Boost timer", + "=", + "0", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925584.3704572, + "msecs": 370.4571723937988, + "relativeCreated": 2029.3645858764648, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Boost timer): result = 0 ()", + "asctime": "2023-02-09 07:53:04,370" + } + ], + "time_consumption": 2.0503997802734375e-05 + } + ], + "time_consumption": 0.9018764495849609, + "time_start": "2023-02-09 07:53:03,468", + "time_finished": "2023-02-09 07:53:04,370" + }, + "Default temperature test for device and virtual device: zigbee/gfw/dirk/heating_valve": { + "name": "__tLogger__", + "msg": "Default temperature test for device and virtual device: zigbee/gfw/dirk/heating_valve", + "args": null, + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 41, + "funcName": "test_default_temperature", + "created": 1675925584.370561, + "msecs": 370.560884475708, + "relativeCreated": 2029.468297958374, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Default temperature test for device and virtual device: zigbee/gfw/dirk/heating_valve", + "asctime": "2023-02-09 07:53:04,370", + "moduleLogger": [], + "testcaseLogger": [ + { + "name": "__tLogger__", + "msg": "Setting preconditions (Valve setpoint to %.1f)", + "args": [ + 20 + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 51, + "funcName": "__test_default_temperature__", + "created": 1675925584.6710901, + "msecs": 671.0901260375977, + "relativeCreated": 2329.9975395202637, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Setting preconditions (Valve setpoint to 20.0)", + "asctime": "2023-02-09 07:53:04,671", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925584.370647, + "msecs": 370.6469535827637, + "relativeCreated": 2029.5543670654297, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:04,370" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.370929, + "msecs": 370.9290027618408, + "relativeCreated": 2029.8364162445068, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:04,370" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 20}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.3802192, + "msecs": 380.2192211151123, + "relativeCreated": 2039.1266345977783, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 20}'", + "asctime": "2023-02-09 07:53:04,380" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.3803585, + "msecs": 380.3584575653076, + "relativeCreated": 2039.2658710479736, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:04,380" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.3804786, + "msecs": 380.4786205291748, + "relativeCreated": 2039.3860340118408, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,380" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.380585, + "msecs": 380.5849552154541, + "relativeCreated": 2039.4923686981201, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:04,380" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.3806925, + "msecs": 380.6924819946289, + "relativeCreated": 2039.599895477295, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,380" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.380794, + "msecs": 380.7940483093262, + "relativeCreated": 2039.7014617919922, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:04,380" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.3808963, + "msecs": 380.89632987976074, + "relativeCreated": 2039.8037433624268, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,380" + } + ], + "time_consumption": 0.2901937961578369 + }, + { + "name": "__tLogger__", + "msg": "Valve temperature setpoint (is not default temperature) is correct (Content %s and Type is %s).", + "args": [ + "True", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925584.671298, + "msecs": 671.2980270385742, + "relativeCreated": 2330.2054405212402, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Valve temperature setpoint (is not default temperature) is correct (Content True and Type is ).", + "asctime": "2023-02-09 07:53:04,671", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Valve temperature setpoint (is not default temperature)", + "True", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925584.6712503, + "msecs": 671.2503433227539, + "relativeCreated": 2330.15775680542, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Valve temperature setpoint (is not default temperature)): True ()", + "asctime": "2023-02-09 07:53:04,671" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Valve temperature setpoint (is not default temperature)", + "=", + "True", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925584.671277, + "msecs": 671.2770462036133, + "relativeCreated": 2330.1844596862793, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Valve temperature setpoint (is not default temperature)): result = True ()", + "asctime": "2023-02-09 07:53:04,671" + } + ], + "time_consumption": 2.09808349609375e-05 + }, + { + "name": "__tLogger__", + "msg": "Triggering set to default temperature (%.1f)", + "args": [ + 25 + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 57, + "funcName": "__test_default_temperature__", + "created": 1675925584.971841, + "msecs": 971.8410968780518, + "relativeCreated": 2630.748510360718, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Triggering set to default temperature (25.0)", + "asctime": "2023-02-09 07:53:04,971", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925584.6713634, + "msecs": 671.363353729248, + "relativeCreated": 2330.270767211914, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true", + "asctime": "2023-02-09 07:53:04,671" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.671677, + "msecs": 671.6771125793457, + "relativeCreated": 2330.5845260620117, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true'", + "asctime": "2023-02-09 07:53:04,671" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.679565, + "msecs": 679.5649528503418, + "relativeCreated": 2338.472366333008, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:04,679" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.679705, + "msecs": 679.7049045562744, + "relativeCreated": 2338.6123180389404, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,679" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.6798174, + "msecs": 679.8174381256104, + "relativeCreated": 2338.7248516082764, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:04,679" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925584.679884, + "msecs": 679.8839569091797, + "relativeCreated": 2338.7913703918457, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:04,679" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.6800041, + "msecs": 680.0041198730469, + "relativeCreated": 2338.911533355713, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:04,680" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.6801374, + "msecs": 680.1373958587646, + "relativeCreated": 2339.0448093414307, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,680" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.6802452, + "msecs": 680.2451610565186, + "relativeCreated": 2339.1525745391846, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:04,680" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.721885, + "msecs": 721.8849658966064, + "relativeCreated": 2380.7923793792725, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:04,721" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.7220044, + "msecs": 722.0044136047363, + "relativeCreated": 2380.9118270874023, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:04,722" + } + ], + "time_consumption": 0.24983668327331543 + }, + { + "name": "__tLogger__", + "msg": "Valve temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925584.972043, + "msecs": 972.0430374145508, + "relativeCreated": 2630.950450897217, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Valve temperature setpoint is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:04,972", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Valve temperature setpoint", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925584.9719915, + "msecs": 971.9915390014648, + "relativeCreated": 2630.898952484131, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Valve temperature setpoint): 25 ()", + "asctime": "2023-02-09 07:53:04,971" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Valve temperature setpoint", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925584.9720218, + "msecs": 972.0218181610107, + "relativeCreated": 2630.9292316436768, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Valve temperature setpoint): result = 25 ()", + "asctime": "2023-02-09 07:53:04,972" + } + ], + "time_consumption": 2.1219253540039062e-05 + } + ], + "time_consumption": 0.6014821529388428, + "time_start": "2023-02-09 07:53:04,370", + "time_finished": "2023-02-09 07:53:04,972" + }, + "Summer mode test: zigbee/gfw/dirk/heating_valve": { + "name": "__tLogger__", + "msg": "Summer mode test: zigbee/gfw/dirk/heating_valve", + "args": null, + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 61, + "funcName": "test_summer_mode", + "created": 1675925584.9721286, + "msecs": 972.1286296844482, + "relativeCreated": 2631.0360431671143, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Summer mode test: zigbee/gfw/dirk/heating_valve", + "asctime": "2023-02-09 07:53:04,972", + "moduleLogger": [], + "testcaseLogger": [ + { + "name": "__tLogger__", + "msg": "Setting preconditions (Default setpoint)", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 66, + "funcName": "__test_summer_mode__", + "created": 1675925585.2726793, + "msecs": 272.67932891845703, + "relativeCreated": 2931.586742401123, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Setting preconditions (Default setpoint)", + "asctime": "2023-02-09 07:53:05,272", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925584.9722052, + "msecs": 972.2051620483398, + "relativeCreated": 2631.112575531006, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true", + "asctime": "2023-02-09 07:53:04,972" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.set_default_temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/set_default_temperature", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925584.9725227, + "msecs": 972.5227355957031, + "relativeCreated": 2631.430149078369, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true'", + "asctime": "2023-02-09 07:53:04,972" + } + ], + "time_consumption": 0.3001565933227539 + }, + { + "name": "__tLogger__", + "msg": "Summer mode is correct (Content %s and Type is %s).", + "args": [ + "False", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925585.27286, + "msecs": 272.860050201416, + "relativeCreated": 2931.767463684082, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Summer mode is correct (Content False and Type is ).", + "asctime": "2023-02-09 07:53:05,272", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Summer mode", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925585.2728128, + "msecs": 272.8128433227539, + "relativeCreated": 2931.72025680542, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Summer mode): False ()", + "asctime": "2023-02-09 07:53:05,272" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Summer mode", + "=", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925585.272839, + "msecs": 272.8390693664551, + "relativeCreated": 2931.746482849121, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Summer mode): result = False ()", + "asctime": "2023-02-09 07:53:05,272" + } + ], + "time_consumption": 2.09808349609375e-05 + }, + { + "name": "__tLogger__", + "msg": "Activating summer mode", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 73, + "funcName": "__test_summer_mode__", + "created": 1675925585.573399, + "msecs": 573.3990669250488, + "relativeCreated": 3232.306480407715, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Activating summer mode", + "asctime": "2023-02-09 07:53:05,573", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.summer_mode", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/summer_mode", + "true" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925585.2729404, + "msecs": 272.94039726257324, + "relativeCreated": 2931.8478107452393, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/summer_mode and payload true", + "asctime": "2023-02-09 07:53:05,272" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.summer_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/summer_mode", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.273286, + "msecs": 273.2861042022705, + "relativeCreated": 2932.1935176849365, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'true'", + "asctime": "2023-02-09 07:53:05,273" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 5}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.2825596, + "msecs": 282.5596332550049, + "relativeCreated": 2941.467046737671, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 5}'", + "asctime": "2023-02-09 07:53:05,282" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 5, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925585.2826548, + "msecs": 282.6547622680664, + "relativeCreated": 2941.5621757507324, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 5, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:05,282" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'5'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.282786, + "msecs": 282.78589248657227, + "relativeCreated": 2941.6933059692383, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'5'", + "asctime": "2023-02-09 07:53:05,282" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.282926, + "msecs": 282.926082611084, + "relativeCreated": 2941.83349609375, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,282" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.summer_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/summer_mode", + "b'true'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.2830346, + "msecs": 283.0345630645752, + "relativeCreated": 2941.941976547241, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'true'", + "asctime": "2023-02-09 07:53:05,283" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.2831364, + "msecs": 283.13636779785156, + "relativeCreated": 2942.0437812805176, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,283" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 5, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.2832384, + "msecs": 283.23841094970703, + "relativeCreated": 2942.145824432373, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 5, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:05,283" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.3267515, + "msecs": 326.7514705657959, + "relativeCreated": 2985.658884048462, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:05,326" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.370112, + "msecs": 370.11194229125977, + "relativeCreated": 3029.019355773926, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,370" + } + ], + "time_consumption": 0.20328712463378906 + }, + { + "name": "__tLogger__", + "msg": "Summer mode is correct (Content %s and Type is %s).", + "args": [ + "True", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925585.5735488, + "msecs": 573.5487937927246, + "relativeCreated": 3232.4562072753906, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Summer mode is correct (Content True and Type is ).", + "asctime": "2023-02-09 07:53:05,573", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Summer mode", + "True", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925585.5735009, + "msecs": 573.5008716583252, + "relativeCreated": 3232.408285140991, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Summer mode): True ()", + "asctime": "2023-02-09 07:53:05,573" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Summer mode", + "=", + "True", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925585.5735278, + "msecs": 573.5278129577637, + "relativeCreated": 3232.4352264404297, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Summer mode): result = True ()", + "asctime": "2023-02-09 07:53:05,573" + } + ], + "time_consumption": 2.09808349609375e-05 + }, + { + "name": "__tLogger__", + "msg": "Temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "5", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925585.5736187, + "msecs": 573.6186504364014, + "relativeCreated": 3232.5260639190674, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Temperature setpoint is correct (Content 5 and Type is ).", + "asctime": "2023-02-09 07:53:05,573", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Temperature setpoint", + "5", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925585.5735857, + "msecs": 573.5857486724854, + "relativeCreated": 3232.4931621551514, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Temperature setpoint): 5 ()", + "asctime": "2023-02-09 07:53:05,573" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Temperature setpoint", + "=", + "5", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925585.5736032, + "msecs": 573.6031532287598, + "relativeCreated": 3232.510566711426, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Temperature setpoint): result = 5 ()", + "asctime": "2023-02-09 07:53:05,573" + } + ], + "time_consumption": 1.5497207641601562e-05 + }, + { + "name": "__tLogger__", + "msg": "Deactivating summer mode", + "args": [], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 79, + "funcName": "__test_summer_mode__", + "created": 1675925585.8738317, + "msecs": 873.8317489624023, + "relativeCreated": 3532.7391624450684, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Deactivating summer mode", + "asctime": "2023-02-09 07:53:05,873", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.summer_mode", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/summer_mode", + "false" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925585.5736837, + "msecs": 573.6837387084961, + "relativeCreated": 3232.591152191162, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/summer_mode and payload false", + "asctime": "2023-02-09 07:53:05,573" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.summer_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/summer_mode", + "b'false'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.5740187, + "msecs": 574.0187168121338, + "relativeCreated": 3232.9261302948, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'false'", + "asctime": "2023-02-09 07:53:05,574" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.578195, + "msecs": 578.1950950622559, + "relativeCreated": 3237.102508544922, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925585.5784128, + "msecs": 578.4127712249756, + "relativeCreated": 3237.3201847076416, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.5785358, + "msecs": 578.535795211792, + "relativeCreated": 3237.443208694458, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.5786755, + "msecs": 578.6755084991455, + "relativeCreated": 3237.5829219818115, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.summer_mode", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/summer_mode", + "b'false'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.5787823, + "msecs": 578.782320022583, + "relativeCreated": 3237.689733505249, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'false'", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.578885, + "msecs": 578.8850784301758, + "relativeCreated": 3237.792491912842, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.5789874, + "msecs": 578.9873600006104, + "relativeCreated": 3237.8947734832764, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:05,578" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.6233873, + "msecs": 623.387336730957, + "relativeCreated": 3282.294750213623, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:05,623" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.6661093, + "msecs": 666.1093235015869, + "relativeCreated": 3325.016736984253, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,666" + } + ], + "time_consumption": 0.20772242546081543 + }, + { + "name": "__tLogger__", + "msg": "Summer mode is correct (Content %s and Type is %s).", + "args": [ + "False", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925585.8739414, + "msecs": 873.9414215087891, + "relativeCreated": 3532.848834991455, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Summer mode is correct (Content False and Type is ).", + "asctime": "2023-02-09 07:53:05,873", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Summer mode", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925585.873897, + "msecs": 873.8970756530762, + "relativeCreated": 3532.804489135742, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Summer mode): False ()", + "asctime": "2023-02-09 07:53:05,873" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Summer mode", + "=", + "False", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925585.8739216, + "msecs": 873.9216327667236, + "relativeCreated": 3532.8290462493896, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Summer mode): result = False ()", + "asctime": "2023-02-09 07:53:05,873" + } + ], + "time_consumption": 1.9788742065429688e-05 + }, + { + "name": "__tLogger__", + "msg": "Temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925585.874005, + "msecs": 874.0050792694092, + "relativeCreated": 3532.912492752075, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Temperature setpoint is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:05,874", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Temperature setpoint", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925585.8739712, + "msecs": 873.9712238311768, + "relativeCreated": 3532.878637313843, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Temperature setpoint): 25 ()", + "asctime": "2023-02-09 07:53:05,873" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Temperature setpoint", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925585.8739889, + "msecs": 873.9888668060303, + "relativeCreated": 3532.8962802886963, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Temperature setpoint): result = 25 ()", + "asctime": "2023-02-09 07:53:05,873" + } + ], + "time_consumption": 1.621246337890625e-05 + } + ], + "time_consumption": 0.9018764495849609, + "time_start": "2023-02-09 07:53:04,972", + "time_finished": "2023-02-09 07:53:05,874" + }, + "User temperature setpoint test for device and virtual device: zigbee/gfw/dirk/heating_valve": { + "name": "__tLogger__", + "msg": "User temperature setpoint test for device and virtual device: zigbee/gfw/dirk/heating_valve", + "args": null, + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 17, + "funcName": "test_user_temperature_setpoint", + "created": 1675925585.8740854, + "msecs": 874.0854263305664, + "relativeCreated": 3532.9928398132324, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "User temperature setpoint test for device and virtual device: zigbee/gfw/dirk/heating_valve", + "asctime": "2023-02-09 07:53:05,874", + "moduleLogger": [], + "testcaseLogger": [ + { + "name": "__tLogger__", + "msg": "Changing valve temperature setpoint to '%.1f'", + "args": [ + 20 + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 28, + "funcName": "__test_user_temperature_setpoint__", + "created": 1675925586.1745794, + "msecs": 174.57938194274902, + "relativeCreated": 3833.486795425415, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Changing valve temperature setpoint to '20.0'", + "asctime": "2023-02-09 07:53:06,174", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925585.8741488, + "msecs": 874.1488456726074, + "relativeCreated": 3533.0562591552734, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:05,874" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8744133, + "msecs": 874.413251876831, + "relativeCreated": 3533.320665359497, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:05,874" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 20}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8834255, + "msecs": 883.4254741668701, + "relativeCreated": 3542.332887649536, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 20}'", + "asctime": "2023-02-09 07:53:05,883" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8835523, + "msecs": 883.5523128509521, + "relativeCreated": 3542.459726333618, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:05,883" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8836708, + "msecs": 883.6708068847656, + "relativeCreated": 3542.5782203674316, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,883" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8837757, + "msecs": 883.7757110595703, + "relativeCreated": 3542.6831245422363, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:05,883" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.883883, + "msecs": 883.882999420166, + "relativeCreated": 3542.790412902832, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,883" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8839839, + "msecs": 883.983850479126, + "relativeCreated": 3542.891263961792, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:05,883" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925585.8840861, + "msecs": 884.0861320495605, + "relativeCreated": 3542.9935455322266, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:05,884" + } + ], + "time_consumption": 0.2904932498931885 + }, + { + "name": "__tLogger__", + "msg": "Virtual device valve temperature is correct (Content %s and Type is %s).", + "args": [ + "20", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925586.1747766, + "msecs": 174.77655410766602, + "relativeCreated": 3833.683967590332, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Virtual device valve temperature is correct (Content 20 and Type is ).", + "asctime": "2023-02-09 07:53:06,174", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Virtual device valve temperature", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925586.1747246, + "msecs": 174.72457885742188, + "relativeCreated": 3833.631992340088, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Virtual device valve temperature): 20 ()", + "asctime": "2023-02-09 07:53:06,174" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Virtual device valve temperature", + "=", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925586.1747553, + "msecs": 174.75533485412598, + "relativeCreated": 3833.662748336792, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Virtual device valve temperature): result = 20 ()", + "asctime": "2023-02-09 07:53:06,174" + } + ], + "time_consumption": 2.1219253540039062e-05 + }, + { + "name": "__tLogger__", + "msg": "Virtual device user temperature is correct (Content %s and Type is %s).", + "args": [ + "20", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925586.1748476, + "msecs": 174.84760284423828, + "relativeCreated": 3833.7550163269043, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Virtual device user temperature is correct (Content 20 and Type is ).", + "asctime": "2023-02-09 07:53:06,174", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Virtual device user temperature", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925586.174813, + "msecs": 174.81303215026855, + "relativeCreated": 3833.7204456329346, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Virtual device user temperature): 20 ()", + "asctime": "2023-02-09 07:53:06,174" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Virtual device user temperature", + "=", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925586.1748304, + "msecs": 174.83043670654297, + "relativeCreated": 3833.737850189209, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Virtual device user temperature): result = 20 ()", + "asctime": "2023-02-09 07:53:06,174" + } + ], + "time_consumption": 1.71661376953125e-05 + }, + { + "name": "__tLogger__", + "msg": "Changing videv user temperature setpoint to '%.1f'", + "args": [ + 25 + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 36, + "funcName": "__test_user_temperature_setpoint__", + "created": 1675925586.4753644, + "msecs": 475.36444664001465, + "relativeCreated": 4134.271860122681, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Changing videv user temperature setpoint to '25.0'", + "asctime": "2023-02-09 07:53:06,475", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "25" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925586.1749182, + "msecs": 174.91817474365234, + "relativeCreated": 3833.8255882263184, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload 25", + "asctime": "2023-02-09 07:53:06,174" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1754096, + "msecs": 175.40955543518066, + "relativeCreated": 3834.3169689178467, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:06,175" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1846411, + "msecs": 184.64112281799316, + "relativeCreated": 3843.548536300659, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:06,184" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925586.184733, + "msecs": 184.73291397094727, + "relativeCreated": 3843.6403274536133, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:06,184" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1848571, + "msecs": 184.85713005065918, + "relativeCreated": 3843.764543533325, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:06,184" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1849973, + "msecs": 184.9973201751709, + "relativeCreated": 3843.904733657837, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,184" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1851041, + "msecs": 185.1041316986084, + "relativeCreated": 3844.0115451812744, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:06,185" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1852076, + "msecs": 185.20760536193848, + "relativeCreated": 3844.1150188446045, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,185" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.1853094, + "msecs": 185.30941009521484, + "relativeCreated": 3844.216823577881, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:06,185" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.2271936, + "msecs": 227.19359397888184, + "relativeCreated": 3886.101007461548, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:06,227" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.2699656, + "msecs": 269.96564865112305, + "relativeCreated": 3928.873062133789, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,269" + } + ], + "time_consumption": 0.2053987979888916 + }, + { + "name": "__tLogger__", + "msg": "Valve device temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925586.4754734, + "msecs": 475.47340393066406, + "relativeCreated": 4134.38081741333, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Valve device temperature setpoint is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:06,475", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Valve device temperature setpoint", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925586.4754303, + "msecs": 475.4302501678467, + "relativeCreated": 4134.337663650513, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Valve device temperature setpoint): 25 ()", + "asctime": "2023-02-09 07:53:06,475" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Valve device temperature setpoint", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925586.475454, + "msecs": 475.45409202575684, + "relativeCreated": 4134.361505508423, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Valve device temperature setpoint): result = 25 ()", + "asctime": "2023-02-09 07:53:06,475" + } + ], + "time_consumption": 1.9311904907226562e-05 + }, + { + "name": "__tLogger__", + "msg": "Virtual device valve temperature is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925586.4755344, + "msecs": 475.53443908691406, + "relativeCreated": 4134.44185256958, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Virtual device valve temperature is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:06,475", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Virtual device valve temperature", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925586.475502, + "msecs": 475.50201416015625, + "relativeCreated": 4134.409427642822, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Virtual device valve temperature): 25 ()", + "asctime": "2023-02-09 07:53:06,475" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Virtual device valve temperature", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925586.475519, + "msecs": 475.51894187927246, + "relativeCreated": 4134.4263553619385, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Virtual device valve temperature): result = 25 ()", + "asctime": "2023-02-09 07:53:06,475" + } + ], + "time_consumption": 1.5497207641601562e-05 + }, + { + "name": "__tLogger__", + "msg": "Changing valve temperature setpoint to '%.1f'", + "args": [ + 20 + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 28, + "funcName": "__test_user_temperature_setpoint__", + "created": 1675925586.7760122, + "msecs": 776.0121822357178, + "relativeCreated": 4434.919595718384, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Changing valve temperature setpoint to '20.0'", + "asctime": "2023-02-09 07:53:06,776", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925586.4755847, + "msecs": 475.5847454071045, + "relativeCreated": 4134.4921588897705, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:06,475" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.4758413, + "msecs": 475.8412837982178, + "relativeCreated": 4134.748697280884, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 20, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:06,475" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 20}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.483676, + "msecs": 483.6759567260742, + "relativeCreated": 4142.58337020874, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 20}'", + "asctime": "2023-02-09 07:53:06,483" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.483802, + "msecs": 483.80208015441895, + "relativeCreated": 4142.709493637085, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:06,483" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.4839196, + "msecs": 483.919620513916, + "relativeCreated": 4142.827033996582, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,483" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'20'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.4840267, + "msecs": 484.0266704559326, + "relativeCreated": 4142.934083938599, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'20'", + "asctime": "2023-02-09 07:53:06,484" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.4841342, + "msecs": 484.1341972351074, + "relativeCreated": 4143.041610717773, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,484" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.484238, + "msecs": 484.2379093170166, + "relativeCreated": 4143.145322799683, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:06,484" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.4843457, + "msecs": 484.3456745147705, + "relativeCreated": 4143.2530879974365, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,484" + } + ], + "time_consumption": 0.29166650772094727 + }, + { + "name": "__tLogger__", + "msg": "Virtual device valve temperature is correct (Content %s and Type is %s).", + "args": [ + "20", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925586.7761981, + "msecs": 776.198148727417, + "relativeCreated": 4435.105562210083, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Virtual device valve temperature is correct (Content 20 and Type is ).", + "asctime": "2023-02-09 07:53:06,776", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Virtual device valve temperature", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925586.776147, + "msecs": 776.1468887329102, + "relativeCreated": 4435.054302215576, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Virtual device valve temperature): 20 ()", + "asctime": "2023-02-09 07:53:06,776" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Virtual device valve temperature", + "=", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925586.7761765, + "msecs": 776.1764526367188, + "relativeCreated": 4435.083866119385, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Virtual device valve temperature): result = 20 ()", + "asctime": "2023-02-09 07:53:06,776" + } + ], + "time_consumption": 2.1696090698242188e-05 + }, + { + "name": "__tLogger__", + "msg": "Virtual device user temperature is correct (Content %s and Type is %s).", + "args": [ + "20", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925586.7762651, + "msecs": 776.2651443481445, + "relativeCreated": 4435.172557830811, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Virtual device user temperature is correct (Content 20 and Type is ).", + "asctime": "2023-02-09 07:53:06,776", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Virtual device user temperature", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925586.7762268, + "msecs": 776.2267589569092, + "relativeCreated": 4435.134172439575, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Virtual device user temperature): 20 ()", + "asctime": "2023-02-09 07:53:06,776" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Virtual device user temperature", + "=", + "20", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925586.776244, + "msecs": 776.2439250946045, + "relativeCreated": 4435.1513385772705, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Virtual device user temperature): result = 20 ()", + "asctime": "2023-02-09 07:53:06,776" + } + ], + "time_consumption": 2.1219253540039062e-05 + }, + { + "name": "__tLogger__", + "msg": "Changing videv user temperature setpoint to '%.1f'", + "args": [ + 25 + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/tests/heating.py", + "filename": "heating.py", + "module": "heating", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 36, + "funcName": "__test_user_temperature_setpoint__", + "created": 1675925587.0767856, + "msecs": 76.78556442260742, + "relativeCreated": 4735.692977905273, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Changing videv user temperature setpoint to '25.0'", + "asctime": "2023-02-09 07:53:07,076", + "moduleLogger": [ + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "25" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925586.7763343, + "msecs": 776.334285736084, + "relativeCreated": 4435.24169921875, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload 25", + "asctime": "2023-02-09 07:53:06,776" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.7766817, + "msecs": 776.681661605835, + "relativeCreated": 4435.589075088501, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:06,776" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve.set", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve/set", + "b'{\"current_heating_setpoint\": 25}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.7856944, + "msecs": 785.6943607330322, + "relativeCreated": 4444.601774215698, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{\"current_heating_setpoint\": 25}'", + "asctime": "2023-02-09 07:53:06,785" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Sending message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 75, + "funcName": "send", + "created": 1675925586.7857926, + "msecs": 785.7925891876221, + "relativeCreated": 4444.700002670288, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Sending message with topic zigbee/gfw/dirk/heating_valve and payload {\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}", + "asctime": "2023-02-09 07:53:06,785" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.valve_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/valve_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.7859247, + "msecs": 785.9246730804443, + "relativeCreated": 4444.83208656311, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:06,785" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.7860649, + "msecs": 786.064863204956, + "relativeCreated": 4444.972276687622, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,786" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.user_temperature_setpoint", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/user_temperature_setpoint", + "b'25'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.786171, + "msecs": 786.1709594726562, + "relativeCreated": 4445.078372955322, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25'", + "asctime": "2023-02-09 07:53:06,786" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.7862737, + "msecs": 786.273717880249, + "relativeCreated": 4445.181131362915, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,786" + }, + { + "name": "smart_brain.mqtt.zigbee.gfw.dirk.heating_valve", + "msg": "Received message with topic %s and payload %s", + "args": [ + "zigbee/gfw/dirk/heating_valve", + "b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.7863743, + "msecs": 786.3743305206299, + "relativeCreated": 4445.281744003296, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{\"current_heating_setpoint\": 25, \"local_temperature\": 20.7, \"__type__\": \"brennenstuhl_heating_valve\"}'", + "asctime": "2023-02-09 07:53:06,786" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.temperature", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/temperature", + "b'20.7'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.8299415, + "msecs": 829.9415111541748, + "relativeCreated": 4488.848924636841, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7'", + "asctime": "2023-02-09 07:53:06,829" + }, + { + "name": "smart_brain.mqtt.videv.gfw.dirk.heating_valve.__info__", + "msg": "Received message with topic %s and payload %s", + "args": [ + "videv/gfw/dirk/heating_valve/__info__", + "b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/mqtt/__init__.py", + "filename": "__init__.py", + "module": "__init__", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 91, + "funcName": "__receive__", + "created": 1675925586.8700416, + "msecs": 870.0416088104248, + "relativeCreated": 4528.949022293091, + "thread": 139722745357888, + "threadName": "Thread-1 (_thread_main)", + "processName": "MainProcess", + "process": 67261, + "message": "Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{\"__type__\": \"videv_heating\", \"user_temperature_setpoint\": {\"control\": true, \"display\": true}, \"away_mode\": {\"control\": true, \"display\": true}, \"summer_mode\": {\"control\": true, \"display\": true}, \"start_boost\": {\"control\": true}, \"set_default_temperature\": {\"control\": true}, \"valve_temperature_setpoint\": {\"display\": true}, \"boost_timer\": {\"display\": true}, \"temperature\": {\"display\": true}}'", + "asctime": "2023-02-09 07:53:06,870" + } + ], + "time_consumption": 0.20674395561218262 + }, + { + "name": "__tLogger__", + "msg": "Valve device temperature setpoint is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925587.076923, + "msecs": 76.92289352416992, + "relativeCreated": 4735.830307006836, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Valve device temperature setpoint is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:07,076", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Valve device temperature setpoint", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925587.0768769, + "msecs": 76.87687873840332, + "relativeCreated": 4735.784292221069, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Valve device temperature setpoint): 25 ()", + "asctime": "2023-02-09 07:53:07,076" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Valve device temperature setpoint", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925587.0769029, + "msecs": 76.90286636352539, + "relativeCreated": 4735.810279846191, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Valve device temperature setpoint): result = 25 ()", + "asctime": "2023-02-09 07:53:07,076" + } + ], + "time_consumption": 2.002716064453125e-05 + }, + { + "name": "__tLogger__", + "msg": "Virtual device valve temperature is correct (Content %s and Type is %s).", + "args": [ + "25", + "" + ], + "levelname": "INFO", + "levelno": 20, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 187, + "funcName": "equivalency_chk", + "created": 1675925587.0769918, + "msecs": 76.99179649353027, + "relativeCreated": 4735.899209976196, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Virtual device valve temperature is correct (Content 25 and Type is ).", + "asctime": "2023-02-09 07:53:07,076", + "moduleLogger": [ + { + "name": "__unittest__", + "msg": "Result (%s): %s (%s)", + "args": [ + "Virtual device valve temperature", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 22, + "funcName": "__report_result__", + "created": 1675925587.0769582, + "msecs": 76.95817947387695, + "relativeCreated": 4735.865592956543, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Result (Virtual device valve temperature): 25 ()", + "asctime": "2023-02-09 07:53:07,076" + }, + { + "name": "__unittest__", + "msg": "Expectation (%s): result %s %s (%s)", + "args": [ + "Virtual device valve temperature", + "=", + "25", + "" + ], + "levelname": "DEBUG", + "levelno": 10, + "pathname": "/home/dirk/my_repositories/smarthome/smart_brain_test/unittest/test.py", + "filename": "test.py", + "module": "test", + "exc_info": null, + "exc_text": null, + "stack_info": null, + "lineno": 26, + "funcName": "__report_expectation__", + "created": 1675925587.0769763, + "msecs": 76.97629928588867, + "relativeCreated": 4735.883712768555, + "thread": 139722769600512, + "threadName": "MainThread", + "processName": "MainProcess", + "process": 67261, + "message": "Expectation (Virtual device valve temperature): result = 25 ()", + "asctime": "2023-02-09 07:53:07,076" + } + ], + "time_consumption": 1.5497207641601562e-05 + } + ], + "time_consumption": 1.2029063701629639, + "time_start": "2023-02-09 07:53:05,874", + "time_finished": "2023-02-09 07:53:07,076" + } + }, + "uid_list_sorted": [ + "Away mode test: zigbee/gfw/dirk/heating_valve", + "Boost mode test: zigbee/gfw/dirk/heating_valve", + "Default temperature test for device and virtual device: zigbee/gfw/dirk/heating_valve", + "Summer mode test: zigbee/gfw/dirk/heating_valve", + "User temperature setpoint test for device and virtual device: zigbee/gfw/dirk/heating_valve" + ], + "system_information": { + "Architecture": "64bit", + "Machine": "x86_64", + "Hostname": "ahorn", + "Distribution": "Linux Mint 21.1 (vera)", + "System": "Linux", + "Kernel": "5.15.0-58-generic (#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023)", + "Username": "dirk", + "Path": "/home/dirk/my_repositories/smarthome/smart_brain_test/all.py" + } +} \ No newline at end of file diff --git a/testresults/testrun.pdf b/testresults/testrun.pdf new file mode 100644 index 0000000..72735e3 Binary files /dev/null and b/testresults/testrun.pdf differ diff --git a/testresults/testrun.tex b/testresults/testrun.tex new file mode 100644 index 0000000..9001533 --- /dev/null +++ b/testresults/testrun.tex @@ -0,0 +1,304 @@ + +\documentclass[a4paper]{article} +%\documentclass[a4paper,landscape]{article} + +\renewcommand{\familydefault}{\sfdefault} +\usepackage[table]{xcolor} +\definecolor{orange}{rgb}{1, 0.7, 0} +\definecolor{lightgrey}{rgb}{0.925, 0.925, 0.925} + +\setlength{\topmargin}{-3cm} +\setlength{\oddsidemargin}{-0.5cm} +\setlength{\evensidemargin}{0cm} +\setlength{\textwidth}{17.5cm} +\setlength{\textheight}{24.5cm} +%\setlength{\textwidth}{25cm} +%\setlength{\textheight}{15cm} +\setlength{\headheight}{84pt} + +\usepackage{fancyvrb} +\usepackage{fvextra} +%\usepackage{framed,color} +%\newenvironment{modulelog}{\snugshade\Verbatim}{\endVerbatim\endsnugshade} +\usepackage{adjustbox} +\newenvironment{modulelog}% +{\par\noindent\adjustbox{margin=0ex,bgcolor=shadecolor,margin=0ex}\bgroup\varwidth\linewidth\Verbatim}% +{\endVerbatim\endvarwidth\egroup} +%\usepackage{xcolor} + +\renewcommand{\baselinestretch}{1,2} +\setlength{\parindent}{0pt} +\setlength{\parskip}{9pt plus3pt minus3pt} + +\usepackage{listings} +\usepackage{color} +\definecolor{bg-partially-covered}{rgb}{1,1,0.6} % light-yellow +\definecolor{bg-uncovered}{rgb}{1,0.8,0.8} % light-red +\definecolor{bg-covered}{rgb}{0.95,1,0.95} % very light-green +\definecolor{bg-clean}{rgb}{1,1,1} % white +\definecolor{mygreen}{rgb}{0,0.6,0} +\definecolor{mygray}{rgb}{0.5,0.5,0.5} +\definecolor{mymauve}{rgb}{0.58,0,0.82} +\lstset{ % + backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument + basicstyle=\footnotesize, % the size of the fonts that are used for the code + breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace + breaklines=true, % sets automatic line breaking + captionpos=b, % sets the caption-position to bottom + commentstyle=\color{mygreen}, % comment style + deletekeywords={...}, % if you want to delete keywords from the given language + escapeinside={\%*}{*)}, % if you want to add LaTeX within your code + extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8 + frame=none, % adds a frame around the code + keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible) + keywordstyle=\color{blue}, % keyword style + language=Octave, % the language of the code + morekeywords={*,...}, % if you want to add more keywords to the set + numbers=left, % where to put the line-numbers; possible values are (none, left, right) + numbersep=5pt, % how far the line-numbers are from the code + numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers + rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here)) + showlines=true, + showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' + showstringspaces=false, % underline spaces within strings only + showtabs=false, % show tabs within strings adding particular underscores + stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered + stringstyle=\color{mymauve}, % string literal style + tabsize=2, % sets default tabsize to 2 spaces +} +\usepackage{hyperref} +\usepackage{longtable}[=v4.13] +\usepackage{tabu} +\usepackage{multicol} +\usepackage{booktabs} +\usepackage{graphicx} +\usepackage{lastpage} % for the number of the last page in the document +\usepackage{fancyhdr} + +\fancyhf{} +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} +\lhead{\textcolor{gray}{}} +\chead{\textcolor{gray}{ Unittest for {\tt smart\_brain }}} +\rhead{\textcolor{gray}{}} +\lfoot{\textcolor{gray}{}} +\cfoot{\textcolor{gray}{}} +\rfoot{\textcolor{gray}{\thepage\,/ \pageref{LastPage}}} + +\begin{document} + +\begin{titlepage} +\date{\today} +\title{ + Unittest for {\tt smart\_brain } +} +\date{\today} +\maketitle +\thispagestyle{empty} +\newpage +\end{titlepage} + +\setcounter{page}{1} +\pagestyle{fancy} + +\tableofcontents +\newpage + +\section{Test System Information} +\begin{tabu} to \linewidth {lX} +\toprule +{\bf System Information} & \\ +\midrule +Architecture & 64bit \\ +Machine & x86\_64 \\ +Hostname & ahorn \\ +Distribution & Linux Mint 21.1 (vera) \\ +System & Linux \\ +Kernel & 5.15.0-58-generic (\#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023) \\ +Username & dirk \\ +Path & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak all.py \\ +\bottomrule +\end{tabu} + + +\section{Summary} +\begin{tabu} to \linewidth {lX} + \toprule + Number of tests & {\bf 5}\\ + Number of successfull tests & {\bf 5}\\ + Number of possibly failed tests & \textcolor{black}{\bf 0}\\ + Number of failed tests & \textcolor{black}{\bf 0}\\ + \midrule + Executionlevel & unknown\\ + Time consumption & 4.510s\\ + \bottomrule +\end{tabu} + + + + + + + \section{\textcolor{green}{Testcases (Success)}} + + + \subsection{ Away mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (84)\\ +Start-Time: & 2023-02-09 07:53:02,566\\ +Finished-Time: & 2023-02-09 07:53:03,468\\ +Time-Consumption & 0.902s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,Info } & Activating away mode\\ +\bf{\,\textcolor{green}{Success} } & Away mode is correct (Content True and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Deactivating away mode\\ +\bf{\,\textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + + + + + + + + \subsection{ Boost mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (107)\\ +Start-Time: & 2023-02-09 07:53:03,468\\ +Finished-Time: & 2023-02-09 07:53:04,370\\ +Time-Consumption & 0.902s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Activating boost mode\\ +\bf{\,\textcolor{green}{Success} } & Boost timer is greater expectation (Content 900 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Setting postconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + + + + + + + + \subsection{ Default temperature test for device and virtual device: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (41)\\ +Start-Time: & 2023-02-09 07:53:04,370\\ +Finished-Time: & 2023-02-09 07:53:04,972\\ +Time-Consumption & 0.601s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Valve setpoint to 20.0)\\ +\bf{\,\textcolor{green}{Success} } & Valve temperature setpoint (is not default temperature) is correct (Content True and Type is $<$class 'bool'$>$).\\ +\bf{\,Info } & Triggering set to default temperature (25.0)\\ +\bf{\,\textcolor{green}{Success} } & Valve temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + + + + + + + + \subsection{ Summer mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (61)\\ +Start-Time: & 2023-02-09 07:53:04,972\\ +Finished-Time: & 2023-02-09 07:53:05,874\\ +Time-Consumption & 0.902s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,Info } & Activating summer mode\\ +\bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content True and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 5 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Deactivating summer mode\\ +\bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + + + + + + + + \subsection{ User temperature setpoint test for device and virtual device: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (17)\\ +Start-Time: & 2023-02-09 07:53:05,874\\ +Finished-Time: & 2023-02-09 07:53:07,076\\ +Time-Consumption & 1.203s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Changing valve temperature setpoint to '20.0'\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Changing videv user temperature setpoint to '25.0'\\ +\bf{\,\textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Changing valve temperature setpoint to '20.0'\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Changing videv user temperature setpoint to '25.0'\\ +\bf{\,\textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + + + + + + + + +\end{document} \ No newline at end of file diff --git a/testresults/testrun_full.pdf b/testresults/testrun_full.pdf new file mode 100644 index 0000000..302def0 Binary files /dev/null and b/testresults/testrun_full.pdf differ diff --git a/testresults/testrun_full.tex b/testresults/testrun_full.tex new file mode 100644 index 0000000..b03872d --- /dev/null +++ b/testresults/testrun_full.tex @@ -0,0 +1,1328 @@ + +\documentclass[a4paper]{article} +%\documentclass[a4paper,landscape]{article} + +\renewcommand{\familydefault}{\sfdefault} +\usepackage[table]{xcolor} +\definecolor{orange}{rgb}{1, 0.7, 0} +\definecolor{lightgrey}{rgb}{0.925, 0.925, 0.925} + +\setlength{\topmargin}{-3cm} +\setlength{\oddsidemargin}{-0.5cm} +\setlength{\evensidemargin}{0cm} +\setlength{\textwidth}{17.5cm} +\setlength{\textheight}{24.5cm} +%\setlength{\textwidth}{25cm} +%\setlength{\textheight}{15cm} +\setlength{\headheight}{84pt} + +\usepackage{fancyvrb} +\usepackage{fvextra} +%\usepackage{framed,color} +%\newenvironment{modulelog}{\snugshade\Verbatim}{\endVerbatim\endsnugshade} +\usepackage{adjustbox} +\newenvironment{modulelog}% +{\par\noindent\adjustbox{margin=0ex,bgcolor=shadecolor,margin=0ex}\bgroup\varwidth\linewidth\Verbatim}% +{\endVerbatim\endvarwidth\egroup} +%\usepackage{xcolor} + +\renewcommand{\baselinestretch}{1,2} +\setlength{\parindent}{0pt} +\setlength{\parskip}{9pt plus3pt minus3pt} + +\usepackage{listings} +\usepackage{color} +\definecolor{bg-partially-covered}{rgb}{1,1,0.6} % light-yellow +\definecolor{bg-uncovered}{rgb}{1,0.8,0.8} % light-red +\definecolor{bg-covered}{rgb}{0.95,1,0.95} % very light-green +\definecolor{bg-clean}{rgb}{1,1,1} % white +\definecolor{mygreen}{rgb}{0,0.6,0} +\definecolor{mygray}{rgb}{0.5,0.5,0.5} +\definecolor{mymauve}{rgb}{0.58,0,0.82} +\lstset{ % + backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument + basicstyle=\footnotesize, % the size of the fonts that are used for the code + breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace + breaklines=true, % sets automatic line breaking + captionpos=b, % sets the caption-position to bottom + commentstyle=\color{mygreen}, % comment style + deletekeywords={...}, % if you want to delete keywords from the given language + escapeinside={\%*}{*)}, % if you want to add LaTeX within your code + extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8 + frame=none, % adds a frame around the code + keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible) + keywordstyle=\color{blue}, % keyword style + language=Octave, % the language of the code + morekeywords={*,...}, % if you want to add more keywords to the set + numbers=left, % where to put the line-numbers; possible values are (none, left, right) + numbersep=5pt, % how far the line-numbers are from the code + numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers + rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here)) + showlines=true, + showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' + showstringspaces=false, % underline spaces within strings only + showtabs=false, % show tabs within strings adding particular underscores + stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered + stringstyle=\color{mymauve}, % string literal style + tabsize=2, % sets default tabsize to 2 spaces +} +\usepackage{hyperref} +\usepackage{longtable}[=v4.13] +\usepackage{tabu} +\usepackage{multicol} +\usepackage{booktabs} +\usepackage{graphicx} +\usepackage{lastpage} % for the number of the last page in the document +\usepackage{fancyhdr} + +\fancyhf{} +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} +\lhead{\textcolor{gray}{}} +\chead{\textcolor{gray}{ Unittest for {\tt smart\_brain }}} +\rhead{\textcolor{gray}{}} +\lfoot{\textcolor{gray}{}} +\cfoot{\textcolor{gray}{}} +\rfoot{\textcolor{gray}{\thepage\,/ \pageref{LastPage}}} + +\begin{document} + +\begin{titlepage} +\date{\today} +\title{ + Unittest for {\tt smart\_brain } +} +\date{\today} +\maketitle +\thispagestyle{empty} +\newpage +\end{titlepage} + +\setcounter{page}{1} +\pagestyle{fancy} + +\tableofcontents +\newpage + +\section{Test System Information} +\begin{tabu} to \linewidth {lX} +\toprule +{\bf System Information} & \\ +\midrule +Architecture & 64bit \\ +Machine & x86\_64 \\ +Hostname & ahorn \\ +Distribution & Linux Mint 21.1 (vera) \\ +System & Linux \\ +Kernel & 5.15.0-58-generic (\#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023) \\ +Username & dirk \\ +Path & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak all.py \\ +\bottomrule +\end{tabu} + + +\section{Summary} +\begin{tabu} to \linewidth {lX} + \toprule + Number of tests & {\bf 5}\\ + Number of successfull tests & {\bf 5}\\ + Number of possibly failed tests & \textcolor{black}{\bf 0}\\ + Number of failed tests & \textcolor{black}{\bf 0}\\ + \midrule + Executionlevel & unknown\\ + Time consumption & 4.510s\\ + \bottomrule +\end{tabu} + + + + + + + \section{\textcolor{green}{Testcases (Success)}} + + + \subsection{ Away mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (84)\\ +Start-Time: & 2023-02-09 07:53:02,566\\ +Finished-Time: & 2023-02-09 07:53:03,468\\ +Time-Consumption & 0.902s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,Info } & Activating away mode\\ +\bf{\,\textcolor{green}{Success} } & Away mode is correct (Content True and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Deactivating away mode\\ +\bf{\,\textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + +\paragraph{Testdetails}\mbox{}\\ + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Setting preconditions (Default setpoint)\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Away mode): False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Away mode): result = False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Activating away mode\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/away_mode and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 20}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Away mode is correct (Content True and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Away mode): True () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Away mode): result = True () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Temperature setpoint is correct (Content 20 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Temperature setpoint): 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Temperature setpoint): result = 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Deactivating away mode\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/away_mode and payload false + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'false' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/away_mode and payload b'false' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Away mode): False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Away mode): result = False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Temperature setpoint): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Temperature setpoint): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + + + + + + + + \subsection{ Boost mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (107)\\ +Start-Time: & 2023-02-09 07:53:03,468\\ +Finished-Time: & 2023-02-09 07:53:04,370\\ +Time-Consumption & 0.902s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Activating boost mode\\ +\bf{\,\textcolor{green}{Success} } & Boost timer is greater expectation (Content 900 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Setting postconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + +\paragraph{Testdetails}\mbox{}\\ + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Setting preconditions (Default setpoint)\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Boost timer): 0 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Boost timer): result = 0 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Activating boost mode\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/start_boost and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/start_boost and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/boost_timer and payload b'900' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 30}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 30, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'30' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 30, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Boost timer is greater expectation (Content 900 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Boost timer): 900 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Boost timer): result > 0 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Setting postconditions (Default setpoint)\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/boost_timer and payload b'0' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Boost timer): 0 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Boost timer): result = 0 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + + + + + + + + \subsection{ Default temperature test for device and virtual device: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (41)\\ +Start-Time: & 2023-02-09 07:53:04,370\\ +Finished-Time: & 2023-02-09 07:53:04,972\\ +Time-Consumption & 0.601s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Valve setpoint to 20.0)\\ +\bf{\,\textcolor{green}{Success} } & Valve temperature setpoint (is not default temperature) is correct (Content True and Type is $<$class 'bool'$>$).\\ +\bf{\,Info } & Triggering set to default temperature (25.0)\\ +\bf{\,\textcolor{green}{Success} } & Valve temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + +\paragraph{Testdetails}\mbox{}\\ + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Setting preconditions (Valve setpoint to 20.0)\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 20}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Valve temperature setpoint (is not default temperature) is correct (Content True and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Valve temperature setpoint (is not default temperature)): True () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Valve temperature setpoint (is not default temperature)): result = True () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Triggering set to default temperature (25.0)\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Valve temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Valve temperature setpoint): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Valve temperature setpoint): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + + + + + + + + \subsection{ Summer mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (61)\\ +Start-Time: & 2023-02-09 07:53:04,972\\ +Finished-Time: & 2023-02-09 07:53:05,874\\ +Time-Consumption & 0.902s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Setting preconditions (Default setpoint)\\ +\bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,Info } & Activating summer mode\\ +\bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content True and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 5 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Deactivating summer mode\\ +\bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + +\paragraph{Testdetails}\mbox{}\\ + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Setting preconditions (Default setpoint)\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/set_default_temperature and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Summer mode): False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Summer mode): result = False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Activating summer mode\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/summer_mode and payload true + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 5}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 5, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'5' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'true' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 5, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Summer mode is correct (Content True and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Summer mode): True () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Summer mode): result = True () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Temperature setpoint is correct (Content 5 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Temperature setpoint): 5 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Temperature setpoint): result = 5 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Deactivating summer mode\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/summer_mode and payload false + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'false' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/summer_mode and payload b'false' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Summer mode): False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Summer mode): result = False () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Temperature setpoint): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Temperature setpoint): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + + + + + + + + \subsection{ User temperature setpoint test for device and virtual device: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve } + + +\paragraph{Testsummary}\mbox{}\\ +This test was passed with the state: {\bf \textcolor{green}{Success}}. +\begin{longtabu} to \linewidth {lX} +\toprule +Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (17)\\ +Start-Time: & 2023-02-09 07:53:05,874\\ +Finished-Time: & 2023-02-09 07:53:07,076\\ +Time-Consumption & 1.203s\\ +\midrule +\multicolumn{2}{l}{\bf{Testresults:}}\\ +\midrule +\bf{\,Info } & Changing valve temperature setpoint to '20.0'\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Changing videv user temperature setpoint to '25.0'\\ +\bf{\,\textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Changing valve temperature setpoint to '20.0'\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ +\bf{\,Info } & Changing videv user temperature setpoint to '25.0'\\ +\bf{\,\textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\ +\bottomrule +\end{longtabu} + + +\paragraph{Testdetails}\mbox{}\\ + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Changing valve temperature setpoint to '20.0'\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 20}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Virtual device valve temperature): 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Virtual device valve temperature): result = 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Virtual device user temperature): 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Virtual device user temperature): result = 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Changing videv user temperature setpoint to '25.0'\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload 25 + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Valve device temperature setpoint): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Valve device temperature setpoint): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Virtual device valve temperature): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Virtual device valve temperature): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Changing valve temperature setpoint to '20.0'\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 20, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 20}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'20' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Virtual device valve temperature): 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Virtual device valve temperature): result = 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Virtual device user temperature): 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Virtual device user temperature): result = 20 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf Info } & Changing videv user temperature setpoint to '25.0'\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload 25 + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve/set and payload b'{"current_heating_setpoint": 25}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Sending message with topic zigbee/gfw/dirk/heating_valve and payload {"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"} + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/valve_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/user_temperature_setpoint and payload b'25' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic zigbee/gfw/dirk/heating_valve and payload b'{"current_heating_setpoint": 25, "local_temperature": 20.7, "__type__": "brennenstuhl_heating_valve"}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/temperature and payload b'20.7' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Received message with topic videv/gfw/dirk/heating_valve/__info__ and payload b'{"__type__": "videv_heating", "user_temperature_setpoint": {"control": true, "display": true}, "away_mode": {"control": true, "display": true}, "summer_mode": {"control": true, "display": true}, "start_boost": {"control": true}, "set_default_temperature": {"control": true}, "valve_temperature_setpoint": {"display": true}, "boost_timer": {"display": true}, "temperature": {"display": true}}' + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Valve device temperature setpoint): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Valve device temperature setpoint): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + \begin{tabu} to \linewidth {lX} + \toprule + {\bf \textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\ + \bottomrule + \end{tabu} + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Result (Virtual device valve temperature): 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + \definecolor{shadecolor}{rgb}{ 0.8 0.8 0.8 }\begin{modulelog}[breaklines=true, breakanywhere=true] + Expectation (Virtual device valve temperature): result = 25 () + \end{modulelog} + \vspace*{-0.225cm}\pagebreak[1] + + \vspace*{2.5ex} + + + + + + + + +\end{document} \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py index fcc36e9..7d21899 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,137 +1,26 @@ -import colored -import config -import inspect -import simulation.devices as devices -import time - +import report +import simulation.devices +from unittest.test import equivalency_chk DT_TOGGLE = 0.3 -TEST_FULL = 'full' -TEST_SMOKE = 'smoke' -# -COLOR_SUCCESS = colored.fg("light_green") -COLOR_FAIL = colored.fg("light_red") - - -class test_smarthome(object): - def __init__(self, rooms): - # add testcases for switching devices - for name in rooms.getmembers(): - obj = rooms.getobjbyname(name) - if obj.__class__.__name__ == "videv_light": - common_name = '.'.join(name.split('.')[:-1]) + '.' + name.split('.')[-1][6:] - try: - li_device = rooms.getobjbyname(common_name + '_zigbee') if obj.enable_brightness or obj.enable_color_temp else None - except AttributeError: - li_device = rooms.getobjbyname(common_name + '_zigbee_1') if obj.enable_brightness or obj.enable_color_temp else None - try: - sw_device = rooms.getobjbyname(common_name) if obj.enable_state else None - except AttributeError: - # must be a device without switching device - sw_device = li_device - setattr(self, common_name.replace('.', '_'), testcase_light(obj, sw_device, li_device)) - # add testcases for heating devices - for name in rooms.getmembers(): - obj = rooms.getobjbyname(name) - if obj.__class__.__name__ == "videv_heating": - common_name = '.'.join(name.split('.')[:-1]) + '.' + name.split('.')[-1][6:] - heat_device = rooms.getobjbyname(common_name + '_valve') - setattr(self, common_name.replace('.', '_'), testcase_heating(obj, heat_device)) - # synchronisation - self.gfw_dirk_cd_player_amplifier_sync = testcase_synchronisation( - rooms.gfw.dirk.cd_player, None, None, - rooms.gfw.dirk.amplifier) - self.gfw_floor_main_light_sync = testcase_synchronisation( - rooms.gfw.floor.main_light, rooms.gfw.floor.videv_main_light, rooms.gfw.floor.videv_main_light, - rooms.gfw.floor.main_light_zigbee_1, rooms.gfw.floor.main_light_zigbee_2 - ) - self.ffe_diningroom_main_light_floor_lamp_sync = testcase_synchronisation( - rooms.ffe.diningroom.main_light, None, None, - rooms.ffe.diningroom.floor_lamp) - self.ffe_livingroom_main_light_floor_lamp_sync = testcase_synchronisation( - rooms.ffe.livingroom.main_light, rooms.ffe.livingroom.videv_floor_lamp, rooms.ffe.livingroom.videv_floor_lamp, - *[getattr(rooms.ffe.livingroom, "floor_lamp_zigbee_%d" % i) for i in range(1, 7)] - ) - # add test collection - self.all = test_collection(self) - - def getmembers(self, prefix=''): - rv = [] - for name, obj in inspect.getmembers(self): - if prefix: - full_name = prefix + '.' + name - else: - full_name = name - if not name.startswith('_'): - try: - if obj.__class__.__bases__[0].__name__ == "testcase" or obj.__class__.__name__ == "test_collection": - rv.append(full_name) - else: - rv.extend(obj.getmembers(full_name)) - except AttributeError: - pass - return rv - - def getobjbyname(self, name): - if name.startswith("test."): - name = name[5:] - obj = self - for subname in name.split('.'): - obj = getattr(obj, subname) - return obj - - def command(self, full_command): - try: - parameter = " " + full_command.split(' ')[1] - except IndexError: - parameter = "" - command = full_command.split(' ')[0].split('.')[-1] + parameter - device_name = '.'.join(full_command.split(' ')[0].split('.')[:-1]) - self.getobjbyname(device_name).command(command) - - -class test_result_base(object): - def __init__(self): - self.__init_test_counters__() - - def __init_test_counters__(self): - self.test_counter = 0 - self.success_tests = 0 - self.failed_tests = 0 - - def statistic(self): - return (self.test_counter, self.success_tests, self.failed_tests) - - def print_statistic(self): - color = COLOR_SUCCESS if self.test_counter == self.success_tests else COLOR_FAIL - print(color + "*** SUCCESS: (%4d/%4d) FAIL: (%4d/%4d) ***\n" % (self.success_tests, - self.test_counter, self.failed_tests, self.test_counter) + colored.attr("reset")) - - -class test_collection(test_result_base): +class test_collection(object): def __init__(self, test_instance): super().__init__() self.test_instance = test_instance def capabilities(self): - return [TEST_FULL, TEST_SMOKE] + return ['full', 'smoke'] def command(self, command): - self.__init_test_counters__() for member in self.test_instance.getmembers(): obj = self.test_instance.getobjbyname(member) if id(obj) != id(self): - obj.test_all(command) - num, suc, fail = obj.statistic() - self.test_counter += num - self.success_tests += suc - self.failed_tests += fail - self.print_statistic() + obj.test_all(report.TCEL_FULL if command == 'full' else report.TCEL_SMOKE) -class testcase(test_result_base): +class testcase(object): def __init__(self): super().__init__() self.__test_list__ = [] @@ -142,255 +31,13 @@ class testcase(test_result_base): self.__test_list__.sort() return self.__test_list__ - def test_all(self, test=TEST_FULL): - test_counter = 0 - success_tests = 0 - failed_tests = 0 + def test_all(self, tcel=report.TCEL_FULL): for tc_name in self.capabilities(): if tc_name != "test_all": - self.command(tc_name, test) - test_counter += self.test_counter - success_tests += self.success_tests - failed_tests += self.failed_tests - self.test_counter = test_counter - self.success_tests = success_tests - self.failed_tests = failed_tests + self.command(tc_name, tcel) - def command(self, command, test=TEST_FULL): - self.__init_test_counters__() + def command(self, command, tcel=report.TCEL_FULL): + simulation.devices.OUTPUT_ACTIVE = False tc = getattr(self, command) - self.__init_test_counters__() - tc(test) - self.print_statistic() - - def heading(self, desciption): - print(desciption) - - def sub_heading(self, desciption): - print(2 * " " + desciption) - - def result(self, desciption, success): - self.test_counter += 1 - if success: - self.success_tests += 1 - else: - self.failed_tests += 1 - print(4 * " " + ("SUCCESS - " if success else "FAIL - ") + desciption) - - -class testcase_light(testcase): - def __init__(self, videv, sw_device, li_device): - self.videv = videv - self.sw_device = sw_device - self.li_device = li_device - self.__test_list__ = [] - if self.videv.enable_state: - self.__test_list__.append('test_power_on_off') - if self.videv.enable_brightness: - self.__test_list__.append('test_brightness') - if self.videv.enable_color_temp: - self.__test_list__.append('test_color_temp') - - def test_power_on_off(self, test=TEST_FULL): - self.heading("Power On/ Off test (%s)" % self.videv.topic) - # - sw_state = self.sw_device.get(self.sw_device.KEY_OUTPUT_0) - # - for i in range(0, 2): - self.sub_heading("State change of switching device") - # - self.sw_device.set(self.sw_device.KEY_OUTPUT_0, not self.sw_device.get(self.sw_device.KEY_OUTPUT_0)) - time.sleep(DT_TOGGLE) - self.result("Virtual device state after Switch on by switching device", sw_state != self.videv.get(self.videv.KEY_OUTPUT_0)) - self.result("Switching device state after Switch on by switching device", - sw_state != self.sw_device.get(self.sw_device.KEY_OUTPUT_0)) - - self.sub_heading("State change of virtual device") - # - self.videv.set(self.videv.KEY_OUTPUT_0, not self.videv.get(self.videv.KEY_OUTPUT_0)) - time.sleep(DT_TOGGLE) - self.result("Virtual device state after Switch off by virtual device", sw_state == self.videv.get(self.videv.KEY_OUTPUT_0)) - self.result("Switching device state after Switch on by switching device", - sw_state == self.sw_device.get(self.sw_device.KEY_OUTPUT_0)) - - def test_brightness(self, test=TEST_FULL): - self.heading("Brightness test (%s)" % self.videv.topic) - # - br_state = self.li_device.get(self.li_device.KEY_BRIGHTNESS) - delta = -15 if br_state > 50 else 15 - - self.sw_device.set(self.sw_device.KEY_OUTPUT_0, True) - time.sleep(DT_TOGGLE) - - for i in range(0, 2): - self.sub_heading("Brightness change by light device") - # - self.li_device.set(self.li_device.KEY_BRIGHTNESS, br_state + delta) - time.sleep(DT_TOGGLE) - self.result("Virtual device state after setting brightness by light device", - br_state + delta == self.videv.get(self.videv.KEY_BRIGHTNESS)) - self.result("Light device state after setting brightness by light device", br_state + - delta == self.li_device.get(self.li_device.KEY_BRIGHTNESS)) - - self.sub_heading("Brightness change by virtual device") - # - self.videv.set(self.videv.KEY_BRIGHTNESS, br_state) - time.sleep(DT_TOGGLE) - self.result("Virtual device state after setting brightness by light device", br_state == self.videv.get(self.videv.KEY_BRIGHTNESS)) - self.result("Light device state after setting brightness by light device", - br_state == self.li_device.get(self.li_device.KEY_BRIGHTNESS)) - - self.sw_device.set(self.sw_device.KEY_OUTPUT_0, False) - time.sleep(DT_TOGGLE) - - def test_color_temp(self, test=TEST_FULL): - self.heading("Color temperature test (%s)" % self.videv.topic) - # - ct_state = self.li_device.get(self.li_device.KEY_COLOR_TEMP) - delta = -3 if ct_state > 5 else 3 - - self.sw_device.set(self.sw_device.KEY_OUTPUT_0, True) - time.sleep(DT_TOGGLE) - - for i in range(0, 2): - self.sub_heading("Color temperature change by light device") - # - self.li_device.set(self.li_device.KEY_COLOR_TEMP, ct_state + delta) - time.sleep(DT_TOGGLE) - self.result("Virtual device state after setting color temperature by light device", - ct_state + delta == self.videv.get(self.videv.KEY_COLOR_TEMP)) - self.result("Light device state after setting color temperature by light device", ct_state + - delta == self.li_device.get(self.li_device.KEY_COLOR_TEMP)) - - self.sub_heading("Color temperature change by virtual device") - # - self.videv.set(self.videv.KEY_COLOR_TEMP, ct_state) - time.sleep(DT_TOGGLE) - self.result("Virtual device state after setting color temperature by light device", - ct_state == self.videv.get(self.videv.KEY_COLOR_TEMP)) - self.result("Light device state after setting color temperature by light device", - ct_state == self.li_device.get(self.li_device.KEY_COLOR_TEMP)) - - self.sw_device.set(self.sw_device.KEY_OUTPUT_0, False) - time.sleep(DT_TOGGLE) - - -class testcase_synchronisation(testcase): - def __init__(self, sw_master, br_master, ct_master, *follower): - super().__init__() - self.sw_master = sw_master - self.br_master = br_master - self.ct_master = ct_master - self.follower = follower - self.__test_list__ = [] - if sw_master is not None: - self.__test_list__.append('test_power_on_off_sync') - if br_master is not None: - self.__test_list__.append('test_brightness_sync') - - def test_power_on_off_sync(self, test=TEST_FULL): - self.heading("Power On/ Off sychronisation test") - # - # set sw_master to slave state as precondition - f_state = self.follower[0].get(self.follower[0].KEY_OUTPUT_0) - self.sw_master.set(self.sw_master.KEY_OUTPUT_0, f_state) - time.sleep(DT_TOGGLE) - for i in range(0, 2): - self.sub_heading("State change of sw_master device") - # - self.sw_master.set(self.sw_master.KEY_OUTPUT_0, not f_state) - time.sleep(DT_TOGGLE) - f_state = not f_state - for fo in self.follower: - self.result("Follower device state after switching (%s)" % fo.topic, - f_state == fo.get(fo.KEY_OUTPUT_0)) - - def test_brightness_sync(self, test=TEST_FULL): - self.heading("Power On/ Off sychronisation test") - # - # set precondition - sw_state = self.sw_master.get(self.sw_master.KEY_OUTPUT_0) - self.sw_master.set(self.sw_master.KEY_OUTPUT_0, True) - time.sleep(DT_TOGGLE) - - target = self.follower[0].get(self.follower[0].KEY_BRIGHTNESS) - delta = 15 if target < 50 else -15 - for i in range(0, 2): - target = target + delta - self.sub_heading("State change of br_master device") - # - self.br_master.set(self.br_master.KEY_BRIGHTNESS, target) - time.sleep(DT_TOGGLE) - for fo in self.follower: - self.result("Follower device brightness after change (%s)" % fo.topic, - target == fo.get(fo.KEY_BRIGHTNESS)) - delta = -delta - - # reset changes of precondition - self.sw_master.set(self.sw_master.KEY_OUTPUT_0, sw_state) - time.sleep(DT_TOGGLE) - - -class testcase_heating(testcase): - def __init__(self, videv, valve): - self.__videv__ = videv - self.__valve__ = valve - self.__default_temperature__ = config.DEFAULT_TEMPERATURE.get(self.__valve__.topic) - self.__test_list__ = ["test_user_temperature_setpoint", "test_default_temperature", ] - - def test_user_temperature_setpoint(self, test=TEST_FULL): - self.heading("User temperature setpoint test (%s)" % self.__videv__.topic) - # - mtemp = round(self.__valve__.TEMP_RANGE[0] + (self.__valve__.TEMP_RANGE[1] - self.__valve__.TEMP_RANGE[0]) / 2, 1) - setp = self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT) - delta = 5 if setp < mtemp else -5 - - for i in range(0, 2): - self.sub_heading("Setpoint change by valve device") - # - self.__valve__.set(self.__valve__.KEY_TEMPERATURE_SETPOINT, setp + delta) - time.sleep(DT_TOGGLE) - self.result("Virtual device valve temperature after setting temperature by valve device", - setp + delta == self.__videv__.get(self.__videv__.KEY_VALVE_TEMPERATURE_SETPOINT)) - self.result("Virtual device user temperature after setting temperature by valve device", - setp + delta == self.__videv__.get(self.__videv__.KEY_USER_TEMPERATURE_SETPOINT)) - - self.sub_heading("Setpoint change by videv device") - # - self.__videv__.set(self.__videv__.KEY_USER_TEMPERATURE_SETPOINT, setp) - time.sleep(DT_TOGGLE) - self.result("Valve device temperature setpoint after setting temperature by videv device", - setp == self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT)) - self.result("Virtual device valve temperature after setting temperature by videv device", - setp == self.__videv__.get(self.__videv__.KEY_VALVE_TEMPERATURE_SETPOINT)) - - def test_default_temperature(self, test=TEST_FULL): - self.heading("Default temperature setpoint test (%s)" % self.__videv__.topic) - # - dtemp = config.DEFAULT_TEMPERATURE.get(self.__valve__.topic) - mtemp = round(self.__valve__.TEMP_RANGE[0] + (self.__valve__.TEMP_RANGE[1] - self.__valve__.TEMP_RANGE[0]) / 2, 1) - ptemp = dtemp + (5 if dtemp < mtemp else -5) - - self.sub_heading("Setting setpoint to a value unequal default as precondition") - self.__valve__.set(self.__valve__.KEY_TEMPERATURE_SETPOINT, ptemp) - time.sleep(DT_TOGGLE) - self.result("Valve device temperature setpoint after setting precondition temperature", - ptemp == self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT)) - - self.sub_heading("Triggering default temperature by videv device") - self.__videv__.set(self.__videv__.KEY_SET_DEFAULT_TEMPERATURE, None) - time.sleep(DT_TOGGLE) - self.result("Valve device temperature setpoint after setting default temperature", - dtemp == self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT)) - - def test_summer_mode(self, test=TEST_FULL): - pass - - def test_away_mode(self, test=TEST_FULL): - pass - - def test_boost_mode(self, test=TEST_FULL): - pass - if test == TEST_FULL: - # test boost timer - pass + tc(tcel) + simulation.devices.OUTPUT_ACTIVE = True diff --git a/tests/all.py b/tests/all.py new file mode 100644 index 0000000..b3e1f2e --- /dev/null +++ b/tests/all.py @@ -0,0 +1,139 @@ +import distro +import getpass +import inspect +import jinja2 +import json +import os +import platform +import report +from tests import test_collection +from tests.heating import testcase_heating +from tests.light import testcase_light +from tests.synchronisation import testcase_synchronisation +from unittest import jsonlog + +try: + from config import APP_NAME as ROOT_LOGGER_NAME +except ImportError: + ROOT_LOGGER_NAME = 'root' + + +class test_smarthome(object): + def __init__(self, rooms): + self.__init__tcl__() + # add testcases for switching devices + for name in rooms.getmembers(): + obj = rooms.getobjbyname(name) + if obj.__class__.__name__ == "videv_light": + common_name = '.'.join(name.split('.')[:-1]) + '.' + name.split('.')[-1][6:] + try: + li_device = rooms.getobjbyname(common_name + '_zigbee') if obj.enable_brightness or obj.enable_color_temp else None + except AttributeError: + li_device = rooms.getobjbyname(common_name + '_zigbee_1') if obj.enable_brightness or obj.enable_color_temp else None + try: + sw_device = rooms.getobjbyname(common_name) if obj.enable_state else None + except AttributeError: + # must be a device without switching device + sw_device = li_device + setattr(self, common_name.replace('.', '_'), testcase_light(self.tcl, obj, sw_device, li_device)) + # add testcases for heating devices + for name in rooms.getmembers(): + obj = rooms.getobjbyname(name) + if obj.__class__.__name__ == "videv_heating": + common_name = '.'.join(name.split('.')[:-1]) + '.' + name.split('.')[-1][6:] + heat_device = rooms.getobjbyname(common_name + '_valve') + setattr(self, common_name.replace('.', '_'), testcase_heating(self.tcl, obj, heat_device)) + # synchronisation + # gfw.dirk.amplifier with cd_player + self.gfw_dirk_cd_player_amplifier_sync = testcase_synchronisation( + self.tcl, + rooms.gfw.dirk.cd_player, None, None, + rooms.gfw.dirk.amplifier) + # gfw.floor.main_light_2 with gfw.floor.main_light_1 + self.gfw_floor_main_light_sync = testcase_synchronisation( + self.tcl, + rooms.gfw.floor.main_light, rooms.gfw.floor.videv_main_light, rooms.gfw.floor.videv_main_light, + rooms.gfw.floor.main_light_zigbee_1, rooms.gfw.floor.main_light_zigbee_2 + ) + # ffe.diningroom.floorlamp with ffe.dinigroom.main_light + self.ffe_diningroom_main_light_floor_lamp_sync = testcase_synchronisation( + self.tcl, + rooms.ffe.diningroom.main_light, None, None, + rooms.ffe.diningroom.floor_lamp) + # ffe.livingroom.floorlamp_[1-6] with ffe.livingroom.main_light + self.ffe_livingroom_main_light_floor_lamp_sync = testcase_synchronisation( + self.tcl, + rooms.ffe.livingroom.main_light, rooms.ffe.livingroom.videv_floor_lamp, rooms.ffe.livingroom.videv_floor_lamp, + *[getattr(rooms.ffe.livingroom, "floor_lamp_zigbee_%d" % i) for i in range(1, 7)] + ) + # add test collection + self.all = test_collection(self) + + def __init__tcl__(self): + system_info = {} + system_info[jsonlog.SYSI_ARCHITECTURE] = platform.architecture()[0] + system_info[jsonlog.SYSI_MACHINE] = platform.machine() + system_info[jsonlog.SYSI_HOSTNAME] = platform.node() + system_info[jsonlog.SYSI_DISTRIBUTION] = distro.name() + " " + distro.version() + " (" + distro.codename() + ")" + system_info[jsonlog.SYSI_SYSTEM] = platform.system() + system_info[jsonlog.SYSI_KERNEL] = platform.release() + ' (%s)' % platform.version() + system_info[jsonlog.SYSI_USERNAME] = getpass.getuser() + system_info[jsonlog.SYSI_PATH] = os.path.abspath(os.path.basename(__file__)) + + self.tcl = report.testSession(['__unittest__', 'unittest', ROOT_LOGGER_NAME]) + self.tcl[jsonlog.MAIN_KEY_SYSTEM_INFO] = system_info + + def __eval_tcl__(self): + path = os.path.abspath(os.path.join(os.path.basename(__file__), '..')) + + with open(os.path.join(path, "testresults", "testrun.json"), "w") as fh: + fh.write(json.dumps(self.tcl, indent=4)) + + template_path = os.path.join(path, 'templates') + template_filename = 'unittest.tex' + jenv = jinja2.Environment(loader=jinja2.FileSystemLoader(template_path)) + template = jenv.get_template(template_filename) + with open(os.path.join(path, "testresults", "testrun.tex"), "w") as fh: + fh.write(template.render(data=self.tcl, details=False)) + with open(os.path.join(path, "testresults", "testrun_full.tex"), "w") as fh: + fh.write(template.render(data=self.tcl, details=True)) + + def __del__(self): + try: + self.__eval_tcl__() + except: + pass + + def getmembers(self, prefix=''): + rv = [] + for name, obj in inspect.getmembers(self): + if prefix: + full_name = prefix + '.' + name + else: + full_name = name + if not name.startswith('_'): + try: + if obj.__class__.__bases__[0].__name__ == "testcase" or obj.__class__.__name__ == "test_collection": + rv.append(full_name) + else: + rv.extend(obj.getmembers(full_name)) + except AttributeError: + pass + return rv + + def getobjbyname(self, name): + if name.startswith("test."): + name = name[5:] + obj = self + for subname in name.split('.'): + obj = getattr(obj, subname) + return obj + + def command(self, full_command): + try: + parameter = " " + full_command.split(' ')[1] + except IndexError: + parameter = "" + command = full_command.split(' ')[0].split('.')[-1] + parameter + device_name = '.'.join(full_command.split(' ')[0].split('.')[:-1]) + self.getobjbyname(device_name).command(command) diff --git a/tests/heating.py b/tests/heating.py new file mode 100644 index 0000000..09f1f78 --- /dev/null +++ b/tests/heating.py @@ -0,0 +1,129 @@ +import config +import report +from tests import testcase, DT_TOGGLE +import time +from unittest.test import equivalency_chk, greater_chk + + +class testcase_heating(testcase): + def __init__(self, tcl, videv, valve): + self.tcl = tcl + self.__videv__ = videv + self.__valve__ = valve + self.__default_temperature__ = config.DEFAULT_TEMPERATURE.get(self.__valve__.topic) + self.__test_list__ = ["test_user_temperature_setpoint", "test_default_temperature", "test_summer_mode", "test_away_mode", "test_boost_mode"] + + def test_user_temperature_setpoint(self, tcel=report.TCEL_FULL): + self.tcl.testCase("User temperature setpoint test for device and virtual device: %s" % + self.__valve__.topic, tcel, self.__test_user_temperature_setpoint__, tcel) + + def __test_user_temperature_setpoint__(self, tLogger, tcel): + mtemp = round(self.__valve__.TEMP_RANGE[0] + (self.__valve__.TEMP_RANGE[1] - self.__valve__.TEMP_RANGE[0]) / 2, 1) + setp = self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT) + delta = 5 if setp < mtemp else -5 + + for i in range(0, 2): + self.__valve__.set(self.__valve__.KEY_TEMPERATURE_SETPOINT, setp + delta) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing valve temperature setpoint to '%.1f'", setp + delta) + equivalency_chk(self.__videv__.get(self.__videv__.KEY_VALVE_TEMPERATURE_SETPOINT), + setp + delta, tLogger, "Virtual device valve temperature") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_USER_TEMPERATURE_SETPOINT), + setp + delta, tLogger, "Virtual device user temperature") + # + self.__videv__.set(self.__videv__.KEY_USER_TEMPERATURE_SETPOINT, setp) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing videv user temperature setpoint to '%.1f'", setp) + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT), setp, tLogger, "Valve device temperature setpoint") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_VALVE_TEMPERATURE_SETPOINT), setp, tLogger, "Virtual device valve temperature") + + def test_default_temperature(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Default temperature test for device and virtual device: %s" % + self.__valve__.topic, tcel, self.__test_default_temperature__, tcel) + + def __test_default_temperature__(self, tLogger, tcel): + dtemp = config.DEFAULT_TEMPERATURE.get(self.__valve__.topic) + mtemp = round(self.__valve__.TEMP_RANGE[0] + (self.__valve__.TEMP_RANGE[1] - self.__valve__.TEMP_RANGE[0]) / 2, 1) + ptemp = dtemp + (5 if dtemp < mtemp else -5) + + self.__valve__.set(self.__valve__.KEY_TEMPERATURE_SETPOINT, ptemp) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions (Valve setpoint to %.1f)", ptemp) + + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT) != dtemp, + True, tLogger, "Valve temperature setpoint (is not default temperature)") + self.__videv__.set(self.__videv__.KEY_SET_DEFAULT_TEMPERATURE, None) + time.sleep(DT_TOGGLE) + tLogger.debug("Triggering set to default temperature (%.1f)", dtemp) + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT), dtemp, tLogger, "Valve temperature setpoint") + + def test_summer_mode(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Summer mode test: %s" % self.__valve__.topic, tcel, self.__test_summer_mode__, tcel) + + def __test_summer_mode__(self, tLogger, tcel): + self.__videv__.set(self.__videv__.KEY_SET_DEFAULT_TEMPERATURE, None) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions (Default setpoint)") + + vtemp = self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT) + + equivalency_chk(self.__videv__.get(self.__videv__.KEY_SUMMER_MODE), False, tLogger, "Summer mode") + self.__videv__.set(self.__videv__.KEY_SUMMER_MODE, True) + time.sleep(DT_TOGGLE) + tLogger.debug("Activating summer mode") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_SUMMER_MODE), True, tLogger, "Summer mode") + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT), 5, tLogger, "Temperature setpoint") + + self.__videv__.set(self.__videv__.KEY_SUMMER_MODE, False) + time.sleep(DT_TOGGLE) + tLogger.debug("Deactivating summer mode") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_SUMMER_MODE), False, tLogger, "Summer mode") + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT), vtemp, tLogger, "Temperature setpoint") + + def test_away_mode(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Away mode test: %s" % self.__valve__.topic, tcel, self.__test_away_mode__, tcel) + + def __test_away_mode__(self, tLogger, tcel): + self.__videv__.set(self.__videv__.KEY_SET_DEFAULT_TEMPERATURE, None) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions (Default setpoint)") + + vtemp = self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT) + + equivalency_chk(self.__videv__.get(self.__videv__.KEY_AWAY_MODE), False, tLogger, "Away mode") + self.__videv__.set(self.__videv__.KEY_AWAY_MODE, True) + time.sleep(DT_TOGGLE) + tLogger.debug("Activating away mode") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_AWAY_MODE), True, tLogger, "Away mode") + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT), vtemp - 5, tLogger, "Temperature setpoint") + + self.__videv__.set(self.__videv__.KEY_AWAY_MODE, False) + time.sleep(DT_TOGGLE) + tLogger.debug("Deactivating away mode") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_AWAY_MODE), False, tLogger, "Away mode") + equivalency_chk(self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT), vtemp, tLogger, "Temperature setpoint") + + def test_boost_mode(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Boost mode test: %s" % self.__valve__.topic, tcel, self.__test_boost_mode__, tcel) + + def __test_boost_mode__(self, tLogger, tcel): + self.__videv__.set(self.__videv__.KEY_SET_DEFAULT_TEMPERATURE, None) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions (Default setpoint)") + + vtemp = self.__valve__.get(self.__valve__.KEY_TEMPERATURE_SETPOINT) + + equivalency_chk(self.__videv__.get(self.__videv__.KEY_BOOST_TIMER), 0, tLogger, "Boost timer") + self.__videv__.set(self.__videv__.KEY_START_BOOST, None) + time.sleep(DT_TOGGLE) + tLogger.debug("Activating boost mode") + greater_chk(self.__videv__.get(self.__videv__.KEY_BOOST_TIMER), 0, tLogger, "Boost timer") + + self.__videv__.set(self.__videv__.KEY_SET_DEFAULT_TEMPERATURE, None) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting postconditions (Default setpoint)") + equivalency_chk(self.__videv__.get(self.__videv__.KEY_BOOST_TIMER), 0, tLogger, "Boost timer") + + if tcel == report.TCEL_FULL: + # test boost timer + pass diff --git a/tests/light.py b/tests/light.py new file mode 100644 index 0000000..96b5653 --- /dev/null +++ b/tests/light.py @@ -0,0 +1,92 @@ +import report +from tests import testcase, DT_TOGGLE +import time +from unittest.test import equivalency_chk + + +class testcase_light(testcase): + def __init__(self, tcl, videv, sw_device, li_device): + self.tcl = tcl + self.videv = videv + self.sw_device = sw_device + self.li_device = li_device + self.__test_list__ = [] + if self.videv.enable_state: + self.__test_list__.append('test_power_on_off') + if self.videv.enable_brightness: + self.__test_list__.append('test_brightness') + if self.videv.enable_color_temp: + self.__test_list__.append('test_color_temp') + + def test_power_on_off(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Power On/ Off test for device and virtual device: %s" % self.sw_device.topic, tcel, self.__test_power_on_off__, tcel) + + def __test_power_on_off__(self, tLogger, tcel): + sw_state = self.sw_device.get(self.sw_device.KEY_OUTPUT_0) + + for i in range(0, 2): + equivalency_chk(self.videv.get(self.videv.KEY_OUTPUT_0), sw_state, tLogger, "Virtual device state") + self.sw_device.set(self.sw_device.KEY_OUTPUT_0, not sw_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing switching device state to '%s'", not sw_state) + equivalency_chk(self.videv.get(self.videv.KEY_OUTPUT_0), not sw_state, tLogger, "Virtual device state") + # + equivalency_chk(self.sw_device.get(self.sw_device.KEY_OUTPUT_0), not sw_state, tLogger, "Switching device state") + self.videv.set(self.videv.KEY_OUTPUT_0, sw_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing virtual device state to '%s'", sw_state) + equivalency_chk(self.sw_device.get(self.sw_device.KEY_OUTPUT_0), sw_state, tLogger, "Switching device state") + + def test_brightness(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Brightness test for device and virtual device: %s" % self.li_device.topic, tcel, self.__test_brightness__, tcel) + + def __test_brightness__(self, tLogger, tcel): + br_state = self.li_device.get(self.li_device.KEY_BRIGHTNESS) + delta = -15 if br_state > 50 else 15 + self.sw_device.set(self.sw_device.KEY_OUTPUT_0, True) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions (Power on)") + + for i in range(0, 2): + equivalency_chk(self.videv.get(self.videv.KEY_BRIGHTNESS), br_state, tLogger, "Virtual device brightness") + self.li_device.set(self.li_device.KEY_BRIGHTNESS, br_state + delta) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing light device brightness to '%d'", br_state + delta) + equivalency_chk(self.videv.get(self.videv.KEY_BRIGHTNESS), br_state + delta, tLogger, "Virtual device brightness") + # + equivalency_chk(self.li_device.get(self.li_device.KEY_BRIGHTNESS), br_state + delta, tLogger, "Light device brightness") + self.videv.set(self.videv.KEY_BRIGHTNESS, br_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing virtual device brightness to '%d'", br_state) + equivalency_chk(self.li_device.get(self.li_device.KEY_BRIGHTNESS), br_state, tLogger, "Light device brightness") + # + self.sw_device.set(self.sw_device.KEY_OUTPUT_0, False) + time.sleep(DT_TOGGLE) + tLogger.debug("Resetting precondition (Power off)") + + def test_color_temp(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Color temperature test for device and virtual device: %s" % self.li_device.topic, tcel, self.__test_color_temp__, tcel) + + def __test_color_temp__(self, tLogger, tcel): + ct_state = self.li_device.get(self.li_device.KEY_COLOR_TEMP) + delta = -3 if ct_state > 5 else 3 + self.sw_device.set(self.sw_device.KEY_OUTPUT_0, True) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions (Power on)") + + for i in range(0, 2): + equivalency_chk(self.videv.get(self.videv.KEY_COLOR_TEMP), ct_state, tLogger, "Virtual device color temperature") + self.li_device.set(self.li_device.KEY_COLOR_TEMP, ct_state + delta) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing light device color temperature to '%d'", ct_state) + equivalency_chk(self.videv.get(self.videv.KEY_COLOR_TEMP), ct_state + delta, tLogger, "Virtual device color temperature") + # + equivalency_chk(self.li_device.get(self.li_device.KEY_COLOR_TEMP), ct_state + delta, tLogger, "Light device brightness") + self.videv.set(self.videv.KEY_COLOR_TEMP, ct_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing virtual device color temperature to '%d'", ct_state) + equivalency_chk(self.li_device.get(self.li_device.KEY_COLOR_TEMP), ct_state, tLogger, "Light device brightness") + # + self.sw_device.set(self.sw_device.KEY_OUTPUT_0, False) + time.sleep(DT_TOGGLE) + tLogger.debug("Resetting precondition (Power off)") diff --git a/tests/synchronisation.py b/tests/synchronisation.py new file mode 100644 index 0000000..f436110 --- /dev/null +++ b/tests/synchronisation.py @@ -0,0 +1,90 @@ +import report +from tests import testcase, DT_TOGGLE +import time +from unittest.test import equivalency_chk + + +class testcase_synchronisation(testcase): + def __init__(self, tcl, sw_master, br_master, ct_master, *follower): + super().__init__() + self.tcl = tcl + self.sw_master = sw_master + self.br_master = br_master + self.ct_master = ct_master + self.follower = follower + # + self.__test_list__ = [] + if sw_master is not None: + self.__test_list__.append('test_power_on_off_sync') + if br_master is not None: + self.__test_list__.append('test_brightness_sync') + if ct_master is not None: + self.__test_list__.append('test_color_temp_sync') + + def test_power_on_off_sync(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Power On/ Off synchronisation test: %s" % self.sw_master.topic, tcel, self.__test_power_on_off_sync__, tcel) + + def __test_power_on_off_sync__(self, tLogger, tcel): + f_state = self.follower[0].get(self.follower[0].KEY_OUTPUT_0) + self.sw_master.set(self.sw_master.KEY_OUTPUT_0, f_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions for master device '%s'", f_state) + + for i in range(0, 2): + f_state = not f_state + self.sw_master.set(self.sw_master.KEY_OUTPUT_0, f_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing master device state to '%s'", f_state) + + for fo in self.follower: + equivalency_chk(fo.get(fo.KEY_OUTPUT_0), f_state, tLogger, "Follower device (%s) state" % fo.topic) + + def test_brightness_sync(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Brightness synchronisation test: %s" % self.br_master.topic, tcel, self.__test_brightness_sync__, tcel) + + def __test_brightness_sync__(self, tLogger, tcel): + sw_state = self.sw_master.get(self.sw_master.KEY_OUTPUT_0) + self.sw_master.set(self.sw_master.KEY_OUTPUT_0, True) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions for master device '%s' (Power on)", True) + + target = self.follower[0].get(self.follower[0].KEY_BRIGHTNESS) + delta = 15 if target < 50 else -15 + for i in range(0, 2): + target = target + delta + self.br_master.set(self.br_master.KEY_BRIGHTNESS, target) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing master device brightness to '%d'", target) + for fo in self.follower: + equivalency_chk(fo.get(fo.KEY_BRIGHTNESS), target, tLogger, "Follower device (%s) brightness" % fo.topic) + delta = -delta + + # reset changes of precondition + self.sw_master.set(self.sw_master.KEY_OUTPUT_0, sw_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Resetting preconditions for master device '%s' (Power off)", sw_state) + + def test_color_temp_sync(self, tcel=report.TCEL_FULL): + self.tcl.testCase("Color temperature synchronisation test: %s" % self.ct_master.topic, tcel, self.__test_color_temp_sync__, tcel) + + def __test_color_temp_sync__(self, tLogger, tcel): + sw_state = self.sw_master.get(self.sw_master.KEY_OUTPUT_0) + self.sw_master.set(self.sw_master.KEY_OUTPUT_0, True) + time.sleep(DT_TOGGLE) + tLogger.debug("Setting preconditions for master device '%s' (Power on)", True) + + target = self.follower[0].get(self.follower[0].KEY_COLOR_TEMP) + delta = 3 if target < 5 else -3 + for i in range(0, 2): + target = target + delta + self.ct_master.set(self.br_master.KEY_COLOR_TEMP, target) + time.sleep(DT_TOGGLE) + tLogger.debug("Changing master device color temperature to '%d'", target) + for fo in self.follower: + equivalency_chk(fo.get(fo.KEY_COLOR_TEMP), target, tLogger, "Follower device (%s) color temperature" % fo.topic) + delta = -delta + + # reset changes of precondition + self.sw_master.set(self.sw_master.KEY_OUTPUT_0, sw_state) + time.sleep(DT_TOGGLE) + tLogger.debug("Resetting preconditions for master device '%s' (Power off)", sw_state) diff --git a/unittest b/unittest new file mode 160000 index 0000000..a73c8f8 --- /dev/null +++ b/unittest @@ -0,0 +1 @@ +Subproject commit a73c8f8c3523df17eeddad6297d1454c16fc4552