How to replicate a Sharptools Rule in HE

I am trying to control a Secure SSR302 Dual channel zwave Boiler controller.

I installed it and used the Virtual Device Sync to break it into the two channels - Radiators and Hot Water.

I am running into issues when the sync is out of sync and the Virtual Switch shows OFF when the physical switch is showing ON.

I can detect when the Physical Switch for radiator is ON - On1 or Off Off1 by looking at custom attribs.

But CANNOT control it using HE Rules

However can in Sharptools easily in Rule engine, would rather not have Boiler control reside in the CLOUD so really need to do this in HE.

HE log for Sharptool Rule
2021-02-06 12:59:55.379 debugParsed hubitat.zwave.commands.multichannelv4.MultiChannelCmdEncap@f9e4d7 to [['name':switch1, 'value':'off'], ['name':'switch', 'value':'off']]

Can't figure out to replicate in HE Rules

In HE logs with above Rule executed.

app:5002021-02-06 13:09:05.812 errorjava.lang.NumberFormatException: For input string: "on" on line 6425 (appButtonHandler)

app:5002021-02-06 13:09:05.789 infoAction: on1() on Heating Boiler

Any suggestions on how to make this work please, it will substantially improve reliability

Thanks

It's been a while sine I used this setup. But I notice "on1" in your rule. Are you referencing the switch "Heating Boiler" as being the SSR302 or are you directly referencing one of the channels. (I hope I'm making sense here)

The Boiler has three switches

On1/off1 - is radiators
On2/off2 - is hot water

on/off - is the actual boiler - most of the time turning on either or both on1 /on2 within a few seconds the Boiler turns on.

I would like to take the Virtual switch OUT and control this directly.

So with SharpTools I just throw the


Sharptools is connected to the MASTER HE and the BOILER is on HEATING ME and shared through MESH.

SharpTools is solid and relabel and turns on ON1 and then the boiler ON kicks in and all is good.

Trying to replicate the SharpTools Rule in HE - But I get a Java error

mmmm gets interesting

This works without error and Turns on ON1 - Radiators

But Turn on the Boiler using the exact way results in error below

app:5002021-02-06 13:26:41.411 errorjava.lang.NumberFormatException: For input string: "on" on line 6425 (appButtonHandler)

For the moment I can use SharpTools Rule Manager as a Failover when the Sync fails.

But would expect if I can control a switch from Sharptools Rule Engine into HE, the HE Rule Engine should be able control the same device in HE shouldn't it?

I would have thought so....

I’ll ask support :slight_smile:

Those two aren't exactly the same. You are passing two string parameters to on1 () and one string parameter to on(), as shown in your actions list, with all parameters being "on". Are you sure you even need to pass a parameter to the custom commands? It's rare for on() to take a parameter as a standard command--it's not part of the capability requirements--but it's impossible to say what your device expects without seeing more. Are you using a custom driver? If so, can you share that? Alternatively, the device page will show you what parameters, if any, a device can (or must if marked with an asterisk) take and what type they need to be. One of your errors looks a lot poke you're passimg a string when it should be an integer or other numeric type.

@bertabcd1234 Thanks for responding :slight_smile:

So in Sharptools Rule Engine :-1:
In Flow I select
Heating Boiler on Heating
Then choose from a drop down list of
Configure
Updatefromsingleparam
poll
on2
off2
refresh
off1
on1
off
on

If I select xx1 it turns on/off Radiators
If I select xx2 it turns on/off Hot Water

I don't use the basic on/off as that is the actual boiler and it responds to xx1/2 above

In HE Rules

Select Switch/Heating Boiler/on1 then option to set a parameter

With no parameter set the Boiler - radiators do not turn as they do with same action in Sharptools

and withHE Rule you get the follwoinginthe log

app:5002021-02-06 18:42:34.801 errorjava.lang.NumberFormatException: For input string: "on" on line 6425 (appButtonHandler)

app:5002021-02-06 18:42:34.782 infoAction: on1() on Heating Boiler

the boiler is as follows


OK I think I have it covered!!!!

Thank you !!!

I was going around in circles there for a while - I now have direct control of the on1/off1 on2/off2 switches

Thank you!!