Could you open an issue on GitHub?
Done. Issue #16.
There is a new version of the component. I dropped the support of custom_updater because it is no longer suitable for the project. The new features are:
- There is no need to create the subdirectories of code files (/codes/climate). The component creates them if they do not exist.
- There is no need to download the deviceâs Json files from GitHub. If the device_code value matches a device file that already provided on the GitHub repo, the component downloads it automatically.
Donât forget to update __init__.py
too!
Hey @Vassilis, can your new SmartIR handle fans?
will they still have a fan entity type for correct identification in HomeKit etc?
Your previous component has been a vital component to my setup
cheers,
Linton
So I take it there is no way for custom_updater to update __init__.py
?
Right The custom_updater cannot update this file.
custom updater was a good tool for we know there is new stuffâŚ
In old broadlink media_player there was an option, ping host, that isnât reported in the new version. Could it be added?
@letherwin use a binary sensor ping
then use the option on the smartir media player
power_sensor: binary_sensor.living_room
media_player:
- platform: smartir
name: Living room TV
device_code: 1000
controller_send_service: switch.broadlink_send_packet_192_168_12_16
power_sensor: binary_sensor.living_room
binary_sensor:
- platform: ping
name: Living room
host: 192.168.10.195
scan_interval: 10
The migration went perfect! The only issue i have now is that the current temperature is in integer like 22C or 24C but all my autiomations are working with 21.5C or 24.5C
Please tell me how to make the current temperature not in integers only?
Thanks and regards
Peter
Hi,
I am not really sure what happened, but all the sudden after I restarted I started getting errors. the smartir was working perfectly before I restarted.
- platform: smartir
name: Laundry Room AC
device_code: 1000
controller_send_service: switch.broadlink_send_packet_192_168_43_56
temperature_sensor: sensor.neo_coolcam_unknown_type0003_id008d_temperature_3
humidity_sensor: sensor.laundry_room_light_am2301_humidi
Feb 25 01:53:30 homeassistant hass[2986]: 2019-02-25 01:53:30 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.smartir.media_player. Make sure all dependencies are installed
Feb 25 01:53:30 homeassistant hass[2986]: Traceback (most recent call last):
Feb 25 01:53:30 homeassistant hass[2986]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 147, in _load_file
Feb 25 01:53:30 homeassistant hass[2986]: module = importlib.import_module(path)
Feb 25 01:53:30 homeassistant hass[2986]: File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
Feb 25 01:53:30 homeassistant hass[2986]: return _bootstrap._gcd_import(name[level:], package, level)
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Feb 25 01:53:30 homeassistant hass[2986]: File "/home/homeassistant/.homeassistant/custom_components/smartir/media_player.py", line 21, in <module>
Feb 25 01:53:30 homeassistant hass[2986]: from . import Helper
Feb 25 01:53:30 homeassistant hass[2986]: ImportError: cannot import name 'Helper'
Feb 25 01:53:30 homeassistant hass[2986]: 2019-02-25 01:53:30 ERROR (MainThread) [homeassistant.loader] Unable to find platform smartir
Feb 25 01:53:30 homeassistant hass[2986]: 2019-02-25 01:53:30 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.smartir.media_player. Make sure all dependencies are installed
Feb 25 01:53:30 homeassistant hass[2986]: Traceback (most recent call last):
Feb 25 01:53:30 homeassistant hass[2986]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 147, in _load_file
Feb 25 01:53:30 homeassistant hass[2986]: module = importlib.import_module(path)
Feb 25 01:53:30 homeassistant hass[2986]: File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
Feb 25 01:53:30 homeassistant hass[2986]: return _bootstrap._gcd_import(name[level:], package, level)
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Feb 25 01:53:30 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Feb 25 01:53:30 homeassistant hass[2986]: File "/home/homeassistant/.homeassistant/custom_components/smartir/media_player.py", line 21, in <module>
Feb 25 01:53:30 homeassistant hass[2986]: from . import Helper
Feb 25 01:53:30 homeassistant hass[2986]: ImportError: cannot import name 'Helper'
Feb 25 01:53:30 homeassistant hass[2986]: 2019-02-25 01:53:30 ERROR (MainThread) [homeassistant.loader] Unable to find platform smartir
Feb 25 01:53:37 homeassistant hass[2986]: 2019-02-25 01:53:37 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.smartir.climate. Make sure all dependencies are installed
Feb 25 01:53:37 homeassistant hass[2986]: Traceback (most recent call last):
Feb 25 01:53:37 homeassistant hass[2986]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 147, in _load_file
Feb 25 01:53:37 homeassistant hass[2986]: module = importlib.import_module(path)
Feb 25 01:53:37 homeassistant hass[2986]: File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
Feb 25 01:53:37 homeassistant hass[2986]: return _bootstrap._gcd_import(name[level:], package, level)
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Feb 25 01:53:37 homeassistant hass[2986]: File "/home/homeassistant/.homeassistant/custom_components/smartir/climate.py", line 28, in <module>
Feb 25 01:53:37 homeassistant hass[2986]: from . import Helper
Feb 25 01:53:37 homeassistant hass[2986]: ImportError: cannot import name 'Helper'
Feb 25 01:53:37 homeassistant hass[2986]: 2019-02-25 01:53:37 ERROR (MainThread) [homeassistant.loader] Unable to find platform smartir
Feb 25 01:53:37 homeassistant hass[2986]: 2019-02-25 01:53:37 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.smartir.climate. Make sure all dependencies are installed
Feb 25 01:53:37 homeassistant hass[2986]: Traceback (most recent call last):
Feb 25 01:53:37 homeassistant hass[2986]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 147, in _load_file
Feb 25 01:53:37 homeassistant hass[2986]: module = importlib.import_module(path)
Feb 25 01:53:37 homeassistant hass[2986]: File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
Feb 25 01:53:37 homeassistant hass[2986]: return _bootstrap._gcd_import(name[level:], package, level)
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Feb 25 01:53:37 homeassistant hass[2986]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Feb 25 01:53:37 homeassistant hass[2986]: File "/home/homeassistant/.homeassistant/custom_components/smartir/climate.py", line 28, in <module>
Feb 25 01:53:37 homeassistant hass[2986]: from . import Helper
Feb 25 01:53:37 homeassistant hass[2986]: ImportError: cannot import name 'Helper'
Feb 25 01:53:37 homeassistant hass[2986]: 2019-02-25 01:53:37 ERROR (MainThread) [homeassistant.loader] Unable to find platform smartir
any idea what is wrong?
This is probably the same issue.
How we post new json files? With the ini converter tool there is an automatic submit, but I have a couple of media player json to share
Zip and upload them as an issue on GitHub.
Thank you for your support.
@Vassilis did you remove https://raw.githubusercontent.com/smartHomeHub/SmartIR/master/custom_components.json ?
Why?
Thanks @Vassilis! I didnât notice it before!
I hope that you will find a way to make it work with decimals because it is highly important for the entire automation process.
Looks like the same issue I was having. Copy __init__.py
from github and restart. There is code in that file that is needed. Custom_Updater doesnât update this file.
It doesnât fully work with this component. Custom_Updater is not able to update __init__.py
which the component needs to be updated.
That is exactly my issue. fixed now.
@Vassilis
Is there way to get notified when an update happen? That was the beauty of Custom_update. At least we can see there is an update now and do manual update.