Open mmaccaroni opened 1 year ago
I was about to write the same thing. How can it be done?
same issue for other integrations, will help change identifier from IP to MAC, but I not have such knowledge...
https://github.com/lucadjc/samsungrac The folder from this guy (i owe him many beers) is the solution: In visual studio (in HA) rename the original folder climate_ip from custom components, create a new folder named "climate_ip" and upload the files from the folder in the repo above. Reboot the system and everything works, including the device_id Kudos @lucadjc
https://github.com/lucadjc/samsungrac The folder from this guy (i owe him many beers) is the solution: In visual studio (in HA) rename the original folder climate_ip from custom components, create a new folder named "climate_ip" and upload the files from the folder in the repo above. Reboot the system and everything works, including the device_id Kudos @lucadjc
Changed climate_ip folder for the lucadjc's one... still unique_id error. 2 x samsung_2878 ACs
https://github.com/lucadjc/samsungrac The folder from this guy (i owe him many beers) is the solution: In visual studio (in HA) rename the original folder climate_ip from custom components, create a new folder named "climate_ip" and upload the files from the folder in the repo above. Reboot the system and everything works, including the device_id Kudos @lucadjc
Changed climate_ip folder for the lucadjc's one... still unique_id error. 2 x samsung_2878 ACs
did you restart HA?
Yeah, even system restart
can you check if the file climate.py under homeassistant\custom_components\climate_ip path has the following statement?
@property
def unique_id(self):
#if self._unique_id is None and self.rac.unique_id is not None:
# _LOGGER.info("About to set unique id {}".format(self.rac.unique_id))
# self._unique_id = "climate_ip_" + self.rac.unique_id
if self._unique_id is None:
name_value = self._name
_LOGGER.info("About to set unique id {}".format(name_value))
self._unique_id = "climate_ip_" + name_value
_LOGGER.info("Returning unique id of {}".format(self._unique_id))
return self._unique_id
Line 252 and ahead of climate.py, correct Thanks for the support :D
turn on the logs into configuration.yaml and see into HA logs and please post here the results
- platform: climate_ip
config_file: '/config/custom_components/climate_ip/samsung_2878.yaml'
name: 'Ac Despacho'
ip_address: '192.168....'
token: 'xxxx-xxxx-xxxx-xxxx-xxxx'
cert: 'ac14k_m.pem' #set as '' to skip certificate verification
mac: 'xxxxxxxxxxxx'
poll: True
- platform: climate_ip config_file: '/config/custom_components/climate_ip/samsung_2878.yaml' name: 'Ac Despacho' ip_address: '192.168....' token: xxxx-xxxx-xxxx-xxxx-xxxx' cert: 'ac14k_m.pem' #set as '' to skip certificate verification mac: 'xxxxxxxxxxxx' poll: True
try to evaluate the property device_id: same as token
same result with device_id: 'token'
Nothing unusual in the logs.
change here as following
and post the log results
edited... i'm dumb
Have you copied here all the logs? Is the conditioner working? My version in which folder name have you copied it? This is the log of the folder climate_ipbackup
Sorry for the failed log, here is the good one. Both ACs are working but can't change icon or area due the uinque_id thing.
2023-08-30 16:40:40.257 INFO (MainThread) [custom_components.climate_ip.climate] climate_ip: async setup platform
2023-08-30 16:40:40.259 INFO (MainThread) [custom_components.climate_ip.climate] Loading configuration file: /config/custom_components/climate_ip/samsung_2878.yaml
2023-08-30 16:40:40.259 INFO (MainThread) [custom_components.climate_ip.climate] ip_address: 192.168.1.141
2023-08-30 16:40:40.259 INFO (MainThread) [custom_components.climate_ip.climate] token: TOKEN_DESPACHO
2023-08-30 16:40:40.259 INFO (MainThread) [custom_components.climate_ip.climate] device id: TOKEN_DESPACHO
2023-08-30 16:40:40.314 INFO (MainThread) [custom_components.climate_ip.climate] Validate properties: False (False)
2023-08-30 16:40:40.324 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, host: 192.168.1.141:2878
2023-08-30 16:40:40.324 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, token: TOKEN_DESPACHO
2023-08-30 16:40:40.324 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, duid: MAC_DESPACHO
2023-08-30 16:40:40.324 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, cert: /config/custom_components/climate_ip/ac14k_m.pem
2023-08-30 16:40:40.423 INFO (MainThread) [custom_components.climate_ip.climate] Updating state...
2023-08-30 16:40:40.423 INFO (MainThread) [custom_components.climate_ip.climate] Updating getter...
2023-08-30 16:40:40.423 INFO (MainThread) [custom_components.climate_ip.climate] Executing params: {'duid': 'MAC_DESPACHO', 'token': 'TOKEN_DESPACHO', 'host': '192.168.1.141', 'connection_template': '
can you text both the configuration of configuration.yaml file? is the log complete? i'm asking because i see messages related to .141 device only
Yeah, I was trying only in one of my 2 ACs. Don't know why the other .140 show up on the log
climate:
- platform: climate_ip
config_file: 'samsung_2878.yaml'
name: 'Ac Salon'
ip_address: '192.168.1.140'
token: 'token_salon'
cert: 'ac14k_m.pem' #set as '' to skip certificate verification
mac: 'mac_salon'
poll: True
- platform: climate_ip
config_file: '/config/custom_components/climate_ip/samsung_2878.yaml'
name: 'Ac Despacho'
ip_address: '192.168.1.141'
token: 'token_despacho'
cert: 'ac14k_m.pem' #set as '' to skip certificate verification
mac: 'mac_despacho'
poll: True
device_id: 'token_despacho'
debug: True
I'm a bit confused, into this configuration.yaml you've .140 with name "AC Salon", .141 with "Ac Despacho" in the log you've .141 with name AC Salon
@lucadjc!! WTF?!?! Now both ACs have unique_id working after last reboot for fresh logs, haven't changed anything in the config and lots of reboots and system reboots.
Thank you so much for your support and for the custom component!
Welcome, I'm supposing that HA was linking still the old version
I had the same error, but had to edit this: self._unique_id = "climateip" + name_value to self._unique_id = "climateip" + str(name_value)
Hi! I noticed that in the HA front end is not possible to set the climate entities (e.g. by assigning a room or exposing them to voice assistant), because the climate ip entitis do not have a unique ID set. I even tried to assign one via yaml in tne configuration as customization of the etntitis, but the result is the same. What can be done to overcome this?