truegreyhound / ioBroker.husq-automower

control your Husqvarna automower with connect modul
MIT License
10 stars 7 forks source link

checkAMatHome >> homeLocation.latitude and/or homeLocation.longitude not set or failure on reading! #23

Open KoMa1978 opened 3 years ago

KoMa1978 commented 3 years ago

Hi,

I also have this issue "checkAMatHome >> homeLocation.latitude and/or homeLocation.longitude not set or failure on reading!" with may 315 as described in #10

I tried v1.1.0 and v 1.1.2.

How can I fix this or can you add a check if these values exist and query them only if they exists? The warning log every check is really annoying ;-)

Thanks a lot, KoMa1978

ckuratle commented 3 years ago

Hi, After entering the position-values manually in objects, this problem seems to be fixed But I get still another warning frequently: husq-automower.0 | 2021-07-28 06:16:15.881 | warn | (221560) updateStatus, result.operatingMode === HOME Regards Christian

KoMa1978 commented 3 years ago

Maybe it makes sense to add a switch to enable/disable this function in case you won't use it.

BTW I can't set these values manually, they get overwritten asap

ckuratle commented 3 years ago

Sorry, what function do you like to switch?

My position values remains unchanged, i.e. lat = 47.400096904332386, but a latitudeOffset was set: 47.4000683

What does it mean "warn | (221560) updateStatus, result.operatingMode === HOME". I don't understand this warning, the mower is parked. Is the parking / charging position not the home position?

KoMa1978 commented 3 years ago

I proposed to add a switch to the config section of the adapter like "Check Mower position YES/NO" to enable or disable these checks.

After restarting the adapter I was able to enter values ... But I dont get the warning you are getting (yet).

ckuratle commented 3 years ago

this switch for checking the position is a good idea.

After starting the adapter: same behaviour: husq-automower.0 | 2021-07-28 17:11:47.743 | warn | (402368) updateStatus, result.operatingMode === HOME

KoMa1978 commented 3 years ago

No didn't get this error on a restart, only

State "husq-automower.0.info.mowers_json" has no existing object, this might lead to an error in future versions

Maybe open a separate issue for your warning log.

romestylez commented 2 years ago

I "fixxed" this warning by just editing the main.js and in line 1539 i changed this

adapter.log.warn(fctName + ', result.operatingMode === ' + 'HOME', 'mower (should) started');

to

//adapter.log.warn(fctName + ', result.operatingMode === ' + 'HOME', 'mower (should) started');