[SOLVED] Help with sending Command

It has to be tested, maybe the API provides the information but the app hides it.

Alright - will do and let you know.

Heading was updated to OFF during initialization.
During the first Trip it wasn’t updated to ON.
The trip was just 7 km and approximately 20 min.
Maybe it was too short!?

Actually even on a 20km Trip Heading did not change.

Another thing is, that the items sometimes seem to be “stuck” (no update from VOC).
It helps to openh the official App to revive the communication (this was the case for the python script).

Whenever I had the feeling, that the items got stuck (message, that the doors are open even though I locked the car long ago), I just sent a “Lock” command, which woke up the communication.

Ths did not help with the binding yet (will keep tracking this)

Hi Gaël,

beautiful work.
It runs very well, but i’m missing the channel for the remote Heater. In the Property Section the binding says: remoteHeater true, but the Channel is missing.

Regards Thilo

Does someone have examples how to do configuration in things file?

/Mike

There is a button “Show more” on PaperUI.
Did you try that?
I remember that some channels were hidden there - not sure if it was the heater.

I am using CarLocked and CarLock items as follows:

Switch CarLocked			"Pulpo Verriegelung [%s]"		            (G_jdbc)        {channel="volvooncall:vehicle:xxxxx:doors#carLocked"}
Switch CarLock			    "Pulpo Verriegelung [%s]"				    (G_jdbc)        {channel="volvooncall:vehicle:xxxxx:lock"}
Switch CarUnlock			"Pulpo Entriegelung [%s]"				    (G_jdbc)        {channel="volvooncall:vehicle:xxxxx:unlock"}
rule "Lock / Unlock Car"
when
	Item CarLocked received command
then
	if(receivedCommand == ON) {
		CarLock.sendCommand(ON)
		logInfo("car.rules", "Car: Locked")
	}
	else if(receivedCommand == OFF) {
// NOTE: This just unlocks invisibly the trunk - when opening the trunk, the vehicle will be completely unlocked.
		CarUnlock.sendCommand(ON)
		logInfo("car.rules", "Car: unlocked")
		sendTelegram("OH_TeleBot", "Heckklappe wurde entriegelt.\nDurch Öffnen komplett entriegelbar.")
	}
end

After a while I see the following in the logs:

2018-10-04 10:19:03.095 [vent.ItemStateChangedEvent] - CarLocked changed from ON to OFF
2018-10-04 10:19:03.272 [vent.ItemStateChangedEvent] - CarLock changed from ON to NULL

So it seems that the CarLocked channel resets the state according to the lock status of the car (which is alright).
But at the same time the “lock” item goes to NULL.
Is this on purpose?

Continuing the discussion from Help with sending Command:

yes, but the channel doesn’t show

Just a comment: if that’s coming from the binding, like in the case of a communication error or suchlike, it really ought to be setting the state to UNDEF rather than NULL

I actually don’t know where this comes from.
@glhopital: I guess you know,

Definitely is does not come from my rules, so I assume from the binding.
As the Lock Channel is to send the lock command into the binding only, I assume that it’s reset after a specific time to NULL within the binding…

@NCO : these “lock” and “unlock” channel does not exist anymore since I introduced actions. Reason why they switch back to NULL is because they are not found in the channel list.

1 Like

Alright.
Thanks.
Which is the lasted one (and where) I could test then?

The latest one is available as a PR, including binding and actions. You’ll have to use experimental rules engine to use actions as earlier discussed.

Alright. I will try. Thanks
Which build # are you referring to?
I did not find a build of VOC binding since #11052:
https://openhab.ci.cloudbees.com/job/PR-openHAB2-Addons/11052/

I also have this flooding my logs.

/Mike

a restart helped in my case.

You’re right. Travis failed on my last PR.

Any chance there will be a build to install from inside of OH gui any time soon? Happy to help and test it out.

I juste moved to Milstone Build M4.
Could you please point me to the latest suitable VolvoOnCall?
Thanks in advance.

Any updates on this?
I could not find it in M6.

/Mike