Runs xmpp or not

Hi!

We have created two xmpp test accounts which work under Pidgin and Conversations.

If we now trigger an event under Home Assistant, then it looks as if it would also send, but unfortunately neither under Pidgin, nor under Conversations anything arrives.

Under Home Assistant our configurations look like this.

File “notifies.yaml”

- name: jabbera
  platform: xmpp
  sender: [email protected]
  password: 'nothingtosee'
  recipient: [email protected]

- name: jabberb
  platform: xmpp
  sender: [email protected]
  password: 'nothingtosee'
  recipient: [email protected]

We have also tested these options in all variations. Unfortunately it didn’t bring any success.

  tls: true/false
  verify: true/false

Our file with the triggering event looks like this.

- alias: Zigbee-Button left click
  initial_state: 'on'
  trigger:
    platform: event
    event_type: deconz_event
    event_data:
      id: test_double_sw
      event: 1002
  action:
    - service: notify.jabbera
      data:
        title: "Testmeldung"
        message: 'Nur ein Test.'
    - service: notify.jabberb
      data:
        title: "Testmeldung"
        message: 'Nur ein Test.'

Our logfile reports the following to us when an event is triggered.

2019-03-22 13:21:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=notify, service=jabbera, service_data=title=Testmeldung, message=Nur ein Test.>
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying SRV records for jabber.ccc.de
2019-03-22 13:21:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=notify, service=jabberb, service_data=title=Testmeldung, message=Nur ein Test.>
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying jabberd.jabber.ccc.de for A records.
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying SRV records for jabber-germany.de
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying jabberd.jabber.ccc.de for A records.
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying jabber-germany.de for A records.
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying jabberd-ipv6.jabber.ccc.de for A records.
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Exception while querying for jabberd-ipv6.jabber.ccc.de A records: (1, b'DNS server returned answer with no data')
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.resolver] DNS: Querying jabberd-ipv4.jabber.ccc.de for A records.
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.xmlstream] SEND: <stream:stream to='jabber-germany.de' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.xmlstream] SEND: <stream:stream to='jabber.ccc.de' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.xmlstream] RECV: <stream:stream xml:lang="en" from="jabber-germany.de" id="f7af729c-ed70-453a-b4ca-4014b95d1041" version="1.0">
2019-03-22 13:21:16 DEBUG (MainThread) [slixmpp.xmlstream.xmlstream] RECV: <stream:stream id="1607211102051487233" version="1.0" xml:lang="en" from="jabber.ccc.de">

It looks correct to us or do we misunderstand something?

I hope you can give us a hint or help us.

Best regards

Update: We run hass.io in version 0.90.1

Hi all . I know this is maybe the 100000time I try to get an answer for this xmpp component but nobody if the devs answers . Now I tried all kind of combinations and nothing works before I got the iteration error in the logs bit now xmpp platform gets loaded (according to logs ) but when testing to send a message nothing appears …not in logs nor the message itself . I’mm using 107.1 Hass version
If someone could give a shirt statement here … would be appreciated

Thanks fellas

Hi

I have the same problem, it don’t work on 0.107.4.

I set up a new system with hassio on a Pi 3B+ and xmpp dose not work.

Back on version 0.103.6 with hassbian it works without problems.

Off topic
I was surprised about installing hassio on a Pi3, compared to hassbian it is much slower, GPIOs BM680 (Import form USB) don’t work, update to version 0.107.5 braked the hole installation. Advances are the add-ons system on hassion it is very easy to install deconz for example.

I stay on hassbian and try hassio in a couple of months again.

I could geet it work by just putting the xmpp component into custom_components folder. Seems to work till now.


(just copy all the content into xmpp folder /config/custom_components/xmpp)

seems like the fact that custom_components get loaded after native components it works fine.

But that is the official component/integration.

Yeah … put this xmpp folder in custom_components folder :slight_smile: that’s all… but bad news… after restarting home assistant I git iteration error back… nt working again :frowning:

I don’t think you have posted any error message or log.

It. Works again … It works only sometimes after restarting home Assistant

Error log, after sending a message.

Logger: homeassistant.core
Source: /usr/src/homeassistant/homeassistant/core.py:144
First occurred: 22:57:17 (1 occurrences)
Last logged: 22:57:17
Error doing job: Fatal error: protocol.data_received() call failed.

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 826, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 406, in data_received
    self._spawn_event(xml)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 970, in _spawn_event
    stanza = self._build_stanza(xml)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/xmlstream.py", line 951, in _build_stanza
    stanza = stanza_type(self, xml)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1390, in __init__
    ElementBase.__init__(self, xml, parent)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 416, in __init__
    if self.setup(xml):
  File "/usr/local/lib/python3.7/site-packages/slixmpp/stanza/stream_features.py", line 27, in setup
    self.values = self.values
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 615, in _set_stanza_values
    self[full_interface] = value
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 753, in __setitem__
    lang=lang)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 959, in _set_sub_text
    return self._del_sub(name, lang=lang)
  File "/usr/local/lib/python3.7/site-packages/slixmpp/xmlstream/stanzabase.py", line 1040, in _del_sub
    parent = self.xml.find(parent_path)
  File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 299, in find
    return ElementPath.find(self, path, namespaces)
  File "/usr/local/lib/python3.7/xml/etree/ElementPath.py", line 307, in find
    return next(iterfind(elem, path, namespaces), None)
TypeError: 'NoneType' object is not an iterator

Any idea…

Excellent, now a github issue is in order :slight_smile: