Cannot get telegram_text event to fire in Appdaemon

Ok, then there is a connection/config issue. It should appear as a new entity. Try toggling the state of any existing entity in HA from your appdaemon app in the initialize function:

self.toggle("switch.any_switch_you_have_in_ha")

If the state of the entity does not change in HA, you have a connection/configuration problem and you should post the appdaemon.yaml config file.

What Appdeamon version do you get in the Appdaemon log?

Appdaemon verion is 4.0.2.
I added the following code to my telegram.py

self.toggle("switch.workshop_heater")

The Workshop_Heater switch was NOT toggled as a result.
My appdaemon.yaml file is as below

secrets: /config/secrets.yaml
log:
  logfile: STDOUT
  errorfile: STDOUT
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      namespace: hass
      ha_url: http://hassio/homeassistant
      token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    MQTT:
      type: mqtt
      namespace: mqtt
      verbose: false
      client_host: xxx.xxx.xxx.xxx
      client_port: xxxx
      client_user: null
      client_password: null
hadashboard:
  dash_url: http://xxx.xxx.xxx.xxx:xxxx
  dash_dir: /config/appdaemon/dashboards

Solved. It was a configuration error. I removed the following line from appdaemon.yaml and all started working:

      namespace: hass

Thanks you for your help with this - very much appreciated.

1 Like