Laundry Monitor Issue


#21

Sorry, this is not the right upload


#22


#23

What do you get for this one? (dryer == @dryerwatts ? 'yes' : 'no' )


#24

(expression) (dryer == @dryerwatts ? ‘yes’ : ‘no’ ) »»» (string) no


#25

and if you entered dryer and @dryerwatts in the console?


#26

expression) @dryerwatts »»» (dynamic) Dryer 0 Watts
(expression) dryer »»» (dynamic) Dryer 0 Watts

How about regex?


#27

I’m at a loss… I can get mine to evaluate correctly.

|+154ms|║║Comparison (dynamic) Dryer 0 Watts is_equal_to (dynamic) Dryer 0 Watts = true (2ms)|
|---|---|
|+157ms|║║Condition #5 evaluated true (11ms)|
|+158ms|║║Condition group #2 evaluated true (state did not change) (12ms)|
|+162ms|║║Cancelling statement #3's schedules...|
|+173ms|║║It matches|

#28

I would like to use that but I would get a push every minute.


#29

Oh that’s just for testing… you can actually drag that if statement out of the timer…I think it will let you :slight_smile:

Edit: Yep, it will. Just delete the timer after.


#30

Tried it, no match after I move it.

That’s gotta be a bug


#31

I got it working. Had to do a “changes to”


#32

Ok, I was able to change it with a program that just changes the global from 1 Watts waits 5 seconds and then back to 0 Watts, it did the push.

@ipaterson, this may be the second time I have stumbled upon this bug.


#33

This seems to show the problem with your earlier attempts, the value from your device is split into three lines so rather than comparing against Dryer 0 Watts you would need to compare against

'Dryer
0
Watts'

#34

How do you do that?

I just tried a carriage return and it didn’t add a line.

3 separate variables?


#35

Use Expression rather than Value to type that one in.


#37

Fixed it!