randomcoffeesnob / decent-advanced-rest-api

62 stars 12 forks source link

Errors in logs #8

Open jeremyk opened 11 months ago

jeremyk commented 11 months ago

Not sure if this is a config issue or what but I am seeing this in the homebridge logs quite a bit:

[03/10/2023, 14:18:42] [decent-advanced-rest-api] error updating machine state SyntaxError: Unexpected token * in JSON at position 0
    at JSON.parse (<anonymous>)
    at IncomingMessage.<anonymous> (/var/lib/homebridge/node_modules/homebridge-decent-advanced-rest-api/src/de1DeviceService.ts:132:34)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

HB Plugin version: homebridge-decent-advanced-rest-api v1.1.0 Decent Plugin verison: 1.2

ErikPerzzon commented 7 months ago

Hi @randomcoffeesnob

I get the very same error at boot of the decent-advanced-rest-api with same version of the plugin as @jeremyk

Haven't got the skills to debug the package but have you seen this issue before?

Screenshot 2024-01-25 at 18 59 27
ErikPerzzon commented 7 months ago

@randomcoffeesnob I also have issues getting the dashboard in Home Assistant to work properly. The switch works fine (using the Homebridge switch app) but the rest shows this when the Decent is on:

Screenshot 2024-01-25 at 19 05 44

and this when the machine is off:

Screenshot 2024-01-25 at 19 06 23

Any suggestions on how to proceed to solve this issue?

randomcoffeesnob commented 7 months ago

I'm sorry - this is not under active development anymore, as I don't use it.

But I am happy to accept your PRs.

ErikPerzzon commented 7 months ago

@randomcoffeesnob I see! Have you integrated the dashboard in any other platform or know anyone that has done any integration into an app for iOS or Android? Well, I was interested if the cause of the error was known and if there was an easy way to remedy the issue.

randomcoffeesnob commented 7 months ago

I just used it in Home Assistant, some user also used it with homebridge. And of course Postman but no actual other app.

wulfithewulf commented 6 months ago

hi, did you switch to using another solution to integrate your decent with your smart home?

njilk commented 6 months ago

I have switched to the MQTT plugin. It works very well.

randomcoffeesnob commented 6 months ago

Same here - or despresso (https://github.com/obiwan007/despresso) also has a REST/MQTT integration

wulfithewulf commented 6 months ago

I decided to go with https://github.com/simpkins/de1plus-mqtt. There is a Discussion for that plugin in the Decent Diaspora.

For others stumbling across this: I did encounter some (resolveable) problem with the HA auto-discovery, which may be related to android 12 (could not confirm that with an older known to work android version). I had to fire the auto discovery messages manually.

simonkowallik commented 5 months ago

@randomcoffeesnob I also have issues getting the dashboard in Home Assistant to work properly. The switch works fine (using the Homebridge switch app) but the rest shows this when the Decent is on: Screenshot 2024-01-25 at 19 05 44

and this when the machine is off:

Screenshot 2024-01-25 at 19 06 23

Any suggestions on how to proceed to solve this issue?

9 fixed this for me.

Spid3r99 commented 4 months ago

@randomcoffeesnob I also have issues getting the dashboard in Home Assistant to work properly. The switch works fine (using the Homebridge switch app) but the rest shows this when the Decent is on: Screenshot 2024-01-25 at 19 05 44

and this when the machine is off:

Screenshot 2024-01-25 at 19 06 23

Any suggestions on how to proceed to solve this issue?

Hi @ErikPerzzon did you solve this issue? In that case would you mind sharing the solution? I am struggling several days with no solution to solve this... same error as you.

tadelv commented 3 months ago

@Spid3r99 can you try again with the latest version? I have changed the HA config and plugin to send water level as a number.