Its a Cisco SG300 switch configured with JADConfig.
This is the config:
Loads default set of integrations. Do not remove.
default_config:
logger:
default: error
logs:
custom_components.justaddpower: debug
Text to speech
tts:
- platform: google_translate
Just Add Power
media_player:
- platform: justaddpower
switch:
host: 192.168.0.13
section commented out - use Cisco defaults for test purposes
user: xxxxxxxxx
password: !secret JAP switch password
rx_subnet: 192.168.100.0
min_refresh_interval: 10
transmitters:
1:
name: Sky Q
usb: false
2:
name: Sky Q Mini
usb: false
3:
name: Blu Ray DVD
usb: false
4:
name: Fire TV 1
usb: false
5:
name: Fire TV 2
usb: false
6:
name: Spotify Laptop
usb: false
7:
name: XBox One S
usb: false
8:
name: Xbox One
usb: false
9:
name: Spare
usb: true
receivers:
1:
name: Family Room
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
2:
name: Kitchen
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
3:
name: Living Room
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
4:
name: Master Bedroom
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
5:
name: Play Room
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
6:
name: Joseph's Bedroom
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
7:
name: Milly's Bedroom
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
8:
name: Lucas's Bedroom
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
9:
name: Spare 1
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
10:
name: Spare 2
ip_address: 192.168.0.13
usb: false
image_pull: false
image_pull_refresh: 30
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
And this is the log - I’ve removed some unrelated errors to shorten it:
2022-11-09 18:53:42.704 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration justaddpower which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-11-09 18:55:17.760 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/options request
2022-11-09 18:55:57.190 INFO (SyncWorker_1) [custom_components.justaddpower.media_player] Adding Rx1 - Family Room
2022-11-09 18:55:57.192 DEBUG (SyncWorker_1) [custom_components.justaddpower.media_player] Rx1: getting switch configuration
2022-11-09 18:55:57.388 DEBUG (SyncWorker_1) [custom_components.justaddpower.media_player] Rx1: send switch command [show vlan\n]
2022-11-09 18:55:57.388 DEBUG (SyncWorker_1) [custom_components.justaddpower.media_player] 192.168.0.13: connection attempt returned [‘NoneType’ object has no attribute ‘recv’]
2022-11-09 18:55:57.389 INFO (SyncWorker_1) [custom_components.justaddpower.media_player] 192.168.0.13: creating new connection
2022-11-09 18:55:59.173 INFO (SyncWorker_1) [custom_components.justaddpower.media_player] Configured for Tx: 9, Rx: 10
2022-11-09 18:55:59.377 DEBUG (SyncWorker_1) [custom_components.justaddpower.media_player] Rx1: send receiver command [ifconfig | grep eth0:stat\r]
2022-11-09 18:56:03.979 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up justaddpower platform for media_player
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 281, in _async_setup_platform
await asyncio.shield(task)
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/justaddpower/media_player.py”, line 116, in setup_platform
device = JustaddpowerReceiver(switch, rx_ip, extra[CONF_IMAGE_PULL], extra[CONF_IMAGE_PULL_REFRESH],
File “/config/custom_components/justaddpower/media_player.py”, line 152, in init
data = self.rx_cmd(cmd)
File “/config/custom_components/justaddpower/media_player.py”, line 311, in rx_cmd
self._rx_sock.sendall(cmd.encode())
AttributeError: ‘NoneType’ object has no attribute ‘sendall’