Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

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

Open
mutthunaveen opened this issue Dec 28, 2021 · 7 comments

Comments

@mutthunaveen
Copy link

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.

@Typhoan
Copy link

Typhoan commented Jan 4, 2022

I have also experienced this issue.

I am on the docker version of HA.

@rw377
Copy link

rw377 commented Jan 17, 2022

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.

@thermopesos
Copy link

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

@rw377
Copy link

rw377 commented Feb 3, 2022

@thermopesos refer to this issue, you need to make a sensor w/ template and that resolved it for me: #43

@victorigualada
Copy link

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)

@e11en
Copy link

e11en commented Mar 14, 2023

@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

@sammyke007
Copy link

@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 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants