Tellstick integration not working? Entity not available_ switch-espresso_switch

Hi all,
I am running latest home assistant on a Raspberry Pi 3B with (core-2021.9.6 and supervisor-2021.09.0) and my tellstick platform stopped working after the new update…

I have tried uninstalling and reinstalling tellstick integration but the states-page tells me that the tellstick and sensors.tellstick platform could not be set up. Anyone else experiencing this?

Tellstick log says:

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:06:22] INFO: Initialize the tellstick configuration…
[20:08:26] INFO: Exposing sockets and loading service…
[20:08:26] INFO: Starting event listener…
telldusd daemon starting up
Connecting to TellStick (1781/C31) with serial A6028FLS

Supervisor log shows 2 instances where tellstick is show:

21-09-15 07:19:23 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-addon-tellstick with version 2.1.0

21-09-15 07:19:35 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-tellstick with version 2.1.0

Full homeassistant tellstick related log says ( copied from top to bottom):

Unable to prepare setup for platform tellstick.light: Unable to set up component.
7:21:39 AM – (ERROR) setup.py - message first occurred at 7:21:39 AM and shows up 2 times
Error during setup of component tellstick
7:21:34 AM – (ERROR) components/tellstick/init.py
2021-09-15 07:21:22 WARNING (MainThread) [homeassistant.setup] Setup of tellstick is taking over 10 seconds.
2021-09-15 07:21:34 ERROR (MainThread) [homeassistant.setup] Error during setup of component tellstick

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 255, in _async_setup_component
result = await task
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/tellstick/init.py”, line 112, in setup
tellcore_devices = tellcore_lib.devices()
File “/usr/local/lib/python3.9/site-packages/tellcore/telldus.py”, line 173, in devices
count = self.lib.tdGetNumberOfDevices()
File “/usr/local/lib/python3.9/site-packages/tellcore/library.py”, line 257, in check_int_result
raise TelldusError(result)
tellcore.library.TelldusError: Could not connect to the Telldus Service (-6)

2021-09-15 07:21:39 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform tellstick.light: Unable to set up component.

2021-09-15 07:21:39 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform tellstick.switch: Unable to set up component.

I have below tellstick related information in my configuration.yaml, but then again, it all worked before the update…?

tellstick:
host: core-tellstick
port: [50800, 50801]

light:
- platform: tellstick

switch:
- platform: tellstick

I would appriciate any help in this matter. It seems I have gotting addicted and can not turn on anyting manually nowerdays :slight_smile:

I saw that there was a Core update so I updated to the latest core-2021.9.7.

After the new core was installed the Tellstick integration seemed to be fruitful (no error message in the notification message) and all tellstick related devices in the HMI where also showing up correctly.

However the Tellstick switches did not react to the commands issued from the HMI.
So I rebooted the host manually (Supervisor|System|Reboot Host).

Now I get the same error messages as I got with the core-2021.9.6, see below:

The following integrations and platforms could not be set up:

  • variable
  • tellstick
  • tellstick.light
  • tellstick.switch

Any ideas?

Since I bought the Tellstick Duo a long time ago I checked the firmware version.
It contained V5.0 and the latest version is V12.0. So I updated the FW and the Tellstick duo is now running FW V12.0.

After the FW update the Tellstick duo works with all Nexa remote controls.
I rebooted the Raspberry Pi and the error messages where still the same:

The following integrations and platforms could not be set up:

  • variable
  • tellstick
  • tellstick.light
  • tellstick.switch

Since I updated the Tellstic duo firmware I thought I do a fresh install of the Tellstick integration according to below:

  1. I unintalled the tellstick addon
  2. rebooted the Raspberry pi
  3. Installed the Tellstick addon
  4. added switch unique configuration information in configuration section
  5. rebooted the Raspberry pi

This re-installation od the Tellstick addon did not make any changes, still the same error message.

Hi again, spending considerable time on trying to understand what the issue is, I finally tried to restore an earlier backup. I restored back to the core-2021.3.2 and gues what, it all works again :slight_smile: .

After the restore, I tried to upgraded to the latest core-2021.9.7 and it failed again. It seems there is something incompatible with Tellstick addon and the latest core-2021.9.7?

Not only Tellstick addon but also the custom component variables
https://github.com/rogro82/hass-variables is not comfortable with the latest core-2021.9.7 version.

Looking forward to some response/guidance regarding this issue. Have a great day!

Hi!
I have just installed Home Assistant core-2021.11.3 on a Rasberry Pi 4 for the first time.
As I use Tellstick devices and sensors I have installed the Tellstick plugin 2.1.0 and configured it in the Settings page and in the configuration.yaml according to the Documentation for Tellstick.
The sensors, switches and dimmers are showing up in the default GUI Overview. I can click on the buttons here to turn on or off lights and dimmers which works, the lights are switched on and off accordingly.
BUT, I cannot do anything regarding automations with any of the devices as HA tells me a Unique ID is missing for each of these! They don’t show up when creating scripts either.
So I agree with Crisse, there must be a bug somewhere that prevents me to actually use my Tellstick devices from within Home Assistant.
I suppose we need to file a bug somewhere to get attention on this. Where should we do that?
Best Regards
/Hazze

Hi Hazze,

since september I have changed some things in my setup.
I am currently running core-2021.11.2, supervisor-2021.10.8 and Home Assistant OS 6.6.

I started all over again, meaning:

  • that I removed all 433MHz related from HA
  • made a clean install of the Tellstick Duo service (version: 2.1.0)
  • “Cleaned” all 433MHz HW deviced from earlier learnings
  • Learned all 433MHz devices

It seems to work now. :slight_smile:

I managed to do a simple Automation, including a 433MHz motion sensor, NEXA MDT-507, and a Z-Wave switch. See example below:

- id: '1636444353165'
  alias: Turn light on when motion
  description: ''
  trigger:
  - platform: state
    entity_id: switch.ir_1
    to: 'on'
    from: 'off'
  condition: []
  action:
  - service: switch.turn_on
    target:
      entity_id: switch.everspring_an179_in_wall_on_off_module_switch_2
  mode: single
- id: '1636446597311'
  alias: Turn light off when no_motion
  description: ''
  trigger:
  - platform: state
    entity_id: switch.ir_1
    to: 'off'
    from: 'on'
  condition: []
  action:
  - service: switch.turn_off
    target:
      entity_id: switch.everspring_an179_in_wall_on_off_module_switch_2
  mode: single

The motion sensor has the possibility to set a light threshold and keep the light on for a certain time.

I have the following in my Tellstick configuration:

devices:
  - id: 1
    name: Buttkicker
    protocol: arctech
    model: codeswitch
    house: B
    unit: '1'
  - id: 2
    name: Atmosspeakers
    protocol: arctech
    model: codeswitch
    house: B
    unit: '2'
  - id: 3
    name: Simucube
    protocol: arctech
    model: codeswitch
    house: B
    unit: '3'
  - id: 4
    name: Subwoofer_allrum
    protocol: arctech
    model: selflearning-switch
    house: '34042577'
    unit: '4'
  - id: 5
    name: Julgran
    protocol: arctech
    model: selflearning-switch
    house: '34052678'
    unit: '5'
  - id: 6
    name: SW_no1
    protocol: arctech
    model: selflearning-switch
    house: '33062678'
    unit: '6'
  - id: 7
    name: SW_no2
    protocol: arctech
    model: selflearning-switch
    house: '33162778'
    unit: '7'
  - id: 8
    name: Köksfönster
    protocol: arctech
    model: selflearning-dimmer
    house: '32162788'
    unit: '8'
  - id: 9
    name: Ljudrum_Z1
    protocol: arctech
    model: selflearning-dimmer
    house: '34172988'
    unit: '9'
  - id: 10
    name: Ljudrum_Z2
    protocol: arctech
    model: selflearning-dimmer
    house: '35132789'
    unit: '10'
  - id: 11
    name: Ljudrum_Z3
    protocol: arctech
    model: selflearning-dimmer
    house: '36132779'
    unit: '11'
  - id: 12
    name: IR_1
    protocol: arctech
    model: codeswitch
    house: C
    unit: '3'
  - id: 13
    name: SW_no3
    protocol: arctech
    model: selflearning-switch
    house: '34022618'
    unit: '13'
  - id: 14
    name: SW_no4
    protocol: arctech
    model: selflearning-switch
    house: '13162778'
    unit: '14'

Hi Crisse!

Thanks, I got it working! I think I got the hang of the entities concept now. :slight_smile:
The missing unique id does not seem to matter in this case.

I still have some weird issues when executing scenes not turning on all lights in the scene, but I will have to address that in another thread.

Thanks again! :slight_smile:

Best Regards
/Hazze

Okey great!

Best of luck :slight_smile:
Christian

Hi,
I think I found a countermeasure to solve the issue with the tellstick integration not working correctly sometimes.

I have noticed that on my Raspberry 3B+ the Tellstick integration sometimes is not fully up and running directly after a complete reboot. In order to get the Tellstick integration up and running correctly I always need to make a server “restart” after the reboot.

After the restart the “Entity not available” messages dissapare and the Tellstick integration works as intended.

Try restart after reboot! I hope this helps someone :slight_smile:

Merry Christmas everyone!
BR Christian

1 Like

Hello Christian
I have same problem I think
I try to understand this topic but have no clue to solve it
Can we take it in Swedish instead, here or email?