Skip to main content



      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] Tue, 06 December 2016 19:38 Go to next message
Eclipse UserFriend
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?

-Nate
Re: Developing binding: how to get all item values? [message #1749597 is a reply to message #1749457] Thu, 08 December 2016 08:45 Go to previous message
Eclipse UserFriend
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?

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


Current Time: Sun Jul 06 17:06:54 EDT 2025

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

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

Back to the top