Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Developing binding: how to get all item values?(When user changes a single item value, I command the device with all item values. How do I determine what all the values are?)
Developing binding: how to get all item values? [message #1749457] Wed, 07 December 2016 00:38 Go to next message
Nathan L. is currently offline Nathan L.Friend
Messages: 7
Registered: November 2016
Junior Member
As a newbie writing a binding for a serial controlled heat pump, I have run into the problem that when an OpenHab/ESH user changes, say, the set temperature, then I have to send all of the heat pump values, e.g. mode, fan speed, etc., together with the set temperature.

I think I understand that when user changes the value in the UI, then handleCommand() is called and I think I can get the value of the item that has been changed.

But how do I go about getting all the other item values so I can send the command to the thing?

Re: Developing binding: how to get all item values? [message #1749597 is a reply to message #1749457] Thu, 08 December 2016 13:45 Go to previous message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
Hi Nate,

Sounds like a really stupid API of your heat pump Smile

I think the best way would be to simply store the state within your handler implementation and use these cached values whenever you need to send the full set to the pump. Does that make sense?

Previous Topic:Interface problem
Next Topic:Launch configuration for Smarthome Designer for Windows missing
Goto Forum:

Current Time: Wed May 22 05:32:39 GMT 2024

Powered by FUDForum. Page generated in 0.03600 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top