Im using openhab to connect to a modbus slave tcp/ip device.
This works great and im able to read temp and write with switches or dimming objects.
My issue is when im using network health bindings i want the value of my phone to be sent to a modbus point. I made this item and a switch, when i click on my phone that works. Next step was to add the network health binding to the same item, but there is where it stops. After debugging it seems the point is not “sent” like when i use a switch, then it will be sendt, so when my phone is connecting to the network the item updates to “On”, but the “On” (true) is not sendt.
I have tried to make a script with somthing simple in rules, but here is my weakness, can somebody please help and see if i use a “illegale statment” or just a small type?
rule "Turn off"
Item Phone changed
if (Phone == OFF)
Did not work
The modbus decives is a JACE250 from Niagara. It already talk to 200modbus points and it works very good.
There is nothing that writes on this object on clientside, so there should be no conflict if i understand this correct.
If i changed the object to a switch, so i can push on it on the app, then it works fine, but thats the whole point, not to push on it. How would a rule for command modbus when net health changes look like?
I have tryied to read up to really learn rules. I come for a Building automation backround with blocks and are trying to do more and more in rules, but i struggle to find alot of information about this, i have tried to forum and wiki, but i struggle.
Im also trying to do some simple rules that based on a switch sets the SP to comfort or saving.
Do you have any links to recommand? I will really appricicate it!
This would work if it was a “smart thermostat” but this is just IO.
So i have a internal switch in OH that state Home/Away.
If it is Home then the SP is 22 degress celsius (internal point that i want to adjust)
If it is Away then the SP is 16 degress celsius (internal point that i want to adjust)
Then based on this i need a controll that are looking at the temp and SP and turn off/on the heater. It should also be some kind of min/max time or 0,5 celsius diff so it is not going off/on alot.
In blocks this is easy, but with rules i dont see how to do this. i have tried to google forum, google groups and wiki but i cant find example on this.
If you have any place i can read how to do this i would really appricate it.
Sorry for the short desciption. SP is setpoing yes.
I want to archive almost the same as simple Thermostat rule, but i also want to add the home/away switch.
I have a switch that says if i am home or away. (on is home off is away)
If i’m home (switch is on) than my current setpoint is HomeSetpoint
If i’m away (switch is off) then my current setpoint it Away setpoint.
This has to be done in openhab as a virtual point.
Then maybe i can use the same rule as simple thermostat but my setpoint can change from two item, based on the switch.
Did this makes more sense?