nymea / nymea-app

A nymea frontend app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rule editor shows wrong value for action

pop-ch opened this issue · comments

commented

I use a simple magic which is to turn on a power plug while a network device is present. Actually, it's an amplifier which should run whenever the PC is turned on.
This is how the rule reads in http://192.168.0.212/debug/settings/rules:

[%7B9c21da1c-f953-455a-9cc2-b5b1e7d8c4ec%7D]
enabled=true
executable=false
name=phMusik.2 einschalten w\xe4hrend _(my computer)_ (54:b2:03:10:ab:66) Anwesenheit registriert
ruleActions\0\RuleActionParam-%7B2c8268b9-d76b-415a-b2e9-6bfeabd98a76%7D\value=true
ruleActions\0\RuleActionParam-%7B2c8268b9-d76b-415a-b2e9-6bfeabd98a76%7D\valueType=10
ruleActions\0\actionTypeId={2c8268b9-d76b-415a-b2e9-6bfeabd98a76}
ruleActions\0\thingId={30c2f93d-3bc9-4ae8-95a6-b84af7d6f482}
ruleExitActions\0\RuleActionParam-%7B2c8268b9-d76b-415a-b2e9-6bfeabd98a76%7D\value=false
ruleExitActions\0\RuleActionParam-%7B2c8268b9-d76b-415a-b2e9-6bfeabd98a76%7D\valueType=10
ruleExitActions\0\actionTypeId={2c8268b9-d76b-415a-b2e9-6bfeabd98a76}
ruleExitActions\0\thingId={30c2f93d-3bc9-4ae8-95a6-b84af7d6f482}
stateEvaluator\operator=0
stateEvaluator\stateDescriptor\interface=
stateEvaluator\stateDescriptor\interfaceState=
stateEvaluator\stateDescriptor\operator=0
stateEvaluator\stateDescriptor\stateTypeId={cb43e1b5-4f61-4538-bfa2-c33055c542cf}
stateEvaluator\stateDescriptor\thingId={0410b4aa-da80-46d6-a162-32c8b9b81ee8}
stateEvaluator\stateDescriptor\value=true
stateEvaluator\stateDescriptor\valueStateTypeId={00000000-0000-0000-0000-000000000000}
stateEvaluator\stateDescriptor\valueThingId={00000000-0000-0000-0000-000000000000}
stateEvaluator\stateDescriptor\valueType=1

The rule runs fine, but the editor now shows it as:
grafik

The first branch obviously should read phMusik - Set power - Power: ja

Initially (after editing the rule) the editor showed it correctly. After a while it shows the inverted value when I open the editor again on the rule. I am under the impression that this occurs after a system restart but have no solid evidence.

The issue occurred in nypea:app 1.8.0 and again after updating from 1.8.0 to 1.8.1. I.e. before I upgraded to 1.8.1 the rule was shown correctly, some time after updating it now shows with the value inverted. It did that, too, when restarting 1.8.0 without updating.