threedy icon indicating copy to clipboard operation
threedy copied to clipboard

when clicked "ETA" card in lovelace shows "Cannot read properties of undefined (reading 'state')"

Open mutthunaveen opened this issue 2 years ago • 7 comments

Hi, Recently i ve installed HACKS and updated threedy repository also. Now when im configuring im getting error as below

Cannot read properties of undefined (reading 'state'), Status and Bed temperature works fine when clicked ETA or some other parameter the whole card doesn't show up.

This is the error im getting

` **> Cannot read properties of undefined (reading 'state')

type: custom:threedy-card base_entity: sensor.octoprint monitored:

  • Status
  • Bed
  • ETA printer_type: I3 name: ENDER ** `

Please support.

mutthunaveen avatar Dec 28 '21 04:12 mutthunaveen

I have also experienced this issue.

I am on the docker version of HA.

Typhoan avatar Jan 04 '22 17:01 Typhoan

I am also getting this issue. The card works fine picking up the Prusa API / sensors set up in config, but it can only read 'Status' and 'Bed' when looking at the Octoprint integration sensors. The sensors are all working though when looking at them through home assistant otherwise.

rw377 avatar Jan 17 '22 06:01 rw377

Same issue here. I'm assuming Threedy is dead :/

thermopesos avatar Feb 03 '22 03:02 thermopesos

@thermopesos refer to this issue, you need to make a sensor w/ template and that resolved it for me: https://github.com/dangreco/threedy/issues/43

rw377 avatar Feb 03 '22 04:02 rw377

Another solution would be to use the MQTT plugin in OctoPrint and use the MQTT integration instead of the HA one.

You need to:

  1. In OctoPrint install MQTT and HA Discovery Plugins.
  2. In the card configuration set: use_mqtt: true

That solved the issue for me.

Also MQTT is way faster reporting data than the HA integration (which uses REST calls)

victorigualada avatar Nov 11 '22 17:11 victorigualada

@mutthunaveen @Typhoan @rw377 @thermopesos I've created a fork of this repo and fixed some issues like the state undefined stuff, check it out here: https://github.com/e11en/ha-threedy-card

e11en avatar Mar 14 '23 21:03 e11en

@mutthunaveen @Typhoan @rw377 @thermopesos I've created a fork of this repo and fixed some issues like the state undefined stuff, check it out here: https://github.com/e11en/ha-threedy-card

Tnx @e11en !

sammyke007 avatar Dec 23 '23 16:12 sammyke007