Question: Are "Location" and "Call" official itemtype? #3104
Comments
When I try to use a Location item with a perfectly valid lat,lon string of the form "99.9999999,-99.9999999" it logs this:
(1.7.1 core and bindings). If I change the item to a String item, I see its value correctly. |
Hello @watou, @teichsta: Do "Location" and "Call" have a future in OpenHab1/2? Some Tests in OpenHab 1:
Rgds |
Hi,
no, both types are valid and not deprecated! If they are not working i would consider this a critical bug. Note: there are ongoing discussion about the purpose and in depth implementation of the CallItem/Type in ESH (see eclipse-archived/smarthome#236). Any chance to investigate what the problem could be? Best, Thomas E.-E. |
@lewie, I changed your rules from
I don't know why passing the item name instead as the first argument doesn't work in these cases. Also, I can see in the code that |
good catch! I didn't know that by now :-) I would consider this as flaw since it should be possible to send a location command to e.g. a lawn mower to the autonomously driving car, etc. … |
Agreed; PointType ought to be an acceptedCommandType for LocationItems. Should I make a PR to add that? I also think I just noticed why I could not post an update to the LocationItem -- PointType does not have a zero-arg constructor; all types need a zero-arg ctor per this line. |
Allow Location items to receive commands and updates (ref #3104)
@lewie could you please summarise if and what is still open here? |
@lewie any chance to have a look at this one in the coming days? |
Hello @teichsta and all, Merry Christmas :-) tested in 1.8 SNAPSHOT: DEFAULT RULES: Get Errors for both Location and Call Items with style Errors:
Used Rules:
JSR223 RULES:
Used JS script:
|
thanks for this update @lewie … so still something left to do unfortunately! |
Oh, sorry @teichsta, I just noticed this. Can not do it jet. For DEFAULT RULES: and its writing style problem, I think we need a xText specialist. For CallItem the first thing I think, is to integrate it correct: org.openhab.library.tel.types.CallType should move to other Types org.openhab.library.tel.items.CallItem should move to other Item Classes But of this, these bundles are affected: Hmm... Helmut |
Closing due to inactivity |
Hello, I can find Information about "Location" and "Call" in Sourcecode, but not in Wiki: https://github.com/openhab/openhab/wiki/Explanation-of-items#itemtype
So, are they deprecated or is there another reason for there hide and seek. ;-)
I am working at a new Bundle so I need to know about.
Thanks
Helmut
The text was updated successfully, but these errors were encountered: