Bugs and Suggestions

Here you can vote for ideas by projects. You can add your ideas to any open project from the project's page.

Спасибо!

Мы очень рады, что Вам нравится данный проект и вы проголосовали за его развитие.

Работа над задачами по проекту отнимает у его разработчика самое ценное — время, так что небольшая компенсация в виде материальной поддержки поднимет интерес к разработке и позволит сделать больше задач для общей пользы :)

Перейти к проекту Нет, спасибо

<<< Back

Failures on sequential properties sets

Added by: 2020-10-02 21:46:05 / Status: New / Project: Модуль Broadlink

https://github.com/nick7zmail/MajorDoMo-dev_broadl...

Sequential update of properties linked to Broadlink device properties failed if these properties are updated with single method.
This could be demonstrated with properties updated via call to HYSEN.set_advanced(...).

How to reproduce:

  1. MD is installed on Windows, Broadlink module is configured as PHP module.
  2. Scan and register Hysen thermostat.
  3. Bind new device properties 'svh' and 'svl' to any MD device properties. Let's assume
    svh is bound to therm1.svh
    and
    svl is bound to therm1.svl

  4. Create any method updating properties with php code:
    
    setGlobal('therm1.svh', 10);
    setGlobal('therm1.svl', 30);
This code will not store svh value due to second call to set_advanced() will use unchanged 'svh' property value.

Issue may be workarounded with 0.1s delay between calls (if your system is fast enough ;) :

setGlobal('therm1.svh', 10);
usleep(500000);
setGlobal('therm1.svl', 30);


but this workaround is not applicable to (e.g.) Simple Device properties configurator where one of these properties will be saved only.
Thanks!

+1
 
Discuss (0)