-
-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
viomi.waterheater.e1 #375
Comments
Try this service, and find the result in the HA notification: service: xiaomi_miot.send_command
data:
entity_id: water_heater.viomi_e1_entity_id
method: get_prop
params: [targetTemp,waterTemp,washStatus,hotWater,modeType]
throw: true |
result this service in notification: 7 - this Target temp this condition my entity min_temp: 30
max_temp: 75
operation_list:
- Normal
- Heat
- Delay
current_temperature: 0
temperature: 7
target_temp_high: 75
target_temp_low: 30
operation_mode: null
model: viomi.waterheater.e1
lan_ip: 192.168.31.24
mac_address: 50:EC:50:AC:50:E8
entity_class: MiotWaterHeaterEntity
miot_type: urn:miot-spec-v2:device:water-heater:0000A02A:viomi-e1:1
water_heater.target_temperature: 7
water_heater.status: null
water_heater.on: true
water_heater.mode: null
state_updater: lan
sub_entities:
- water_heater-2.on-4
friendly_name: Xiaomi_Waterheat Water Heater
supported_features: 3 !!!current_temperature: 0 and water-level absent |
Upgrade to master branch and try again. |
in server's logs , intergation sgeated mistake Logger: custom_components.xiaomi_miot.water_heater Xiaomi_Waterheat Water Heater: Got miio properties ['washStatus', 'velocity', 'waterTemp', 'targetTemp', 'errStatus', 'hotWater', 'needClean', 'modeType', 'appointStart', 'appointEnd'] failed: {'code': -9998, 'message': 'user ack invalid'} maybe these errors will help to understand the reason |
device_customizes.py: 'viomi.waterheater.e1': {
'chunk_properties': 1,
'miio_properties': 'washStatus,velocity,waterTemp,targetTemp,errStatus,'
'hotWater,needClean,modeType,appointStart,appointEnd',
}, init.py: def update_miio_props(self, props):
if not self.miot_device:
return
try:
max_properties = self.custom_config_integer('chunk_properties') or 10
attrs = self._device.get_properties(props, max_properties=max_properties)
except DeviceException as exc: |
thank you very much!!! problem with current_temperature and mistake in logs solved there is a similar problem with zhimi.humidifier.ca1 Logger: custom_components.xiaomi_miot.humidifier AirHumidifier Humidifier: Got MiioException while fetching the state: {'code': -9999, 'message': 'user ack timeout'}, mapping: {'humidifier.on': {'siid': 2, 'piid': 1}, 'humidifier.fan_level': {'siid': 2, 'piid': 2}, 'humidifier.water_level': {'siid': 2, 'piid': 3}}, max_properties: 7/3 and Logger: custom_components.xiaomi_miot.camera Xiaomi_Cam360 Camera Control: Got MiioException while fetching the state: {'code': -9999, 'message': 'user ack timeout'}, mapping: {'camera_control.on': {'siid': 2, 'piid': 1}, 'camera_control.image_rollover': {'siid': 2, 'piid': 2}, 'camera_control.night_shot': {'siid': 2, 'piid': 3}, 'camera_control.time_watermark': {'siid': 2, 'piid': 4}, 'camera_control.wdr_mode': {'siid': 2, 'piid': 5}, 'camera_control.recording_mode': {'siid': 2, 'piid': 6}}, max_properties: 8/6 please help me solve |
And in miio2miot_specs.py set_template must be: 'viomi.waterheater.e1': {
'chunk_properties': 1,
'miio_specs': {
'prop.2.1': {'prop': 'targetTemp', 'setter': 'set_temp', 'set_template': '{{ value | int }}'},
'prop.2.2': {'prop': 'waterTemp'},
'prop.2.3': {'prop': 'washStatus'},
'prop.2.4': {
'prop': 'washStatus',
'setter': 'set_power',
'template': '{{ value != 0 }}',
'set_template': '{{ [value | int] }}',
},
'prop.2.5': {'prop': 'hotWater'}, # water-level
'prop.2.6': {'prop': 'modeType', 'setter': 'set_mode'},
},
}, otherwise power off switch does not work. |
these parameters began to show water_heater.target_temperature: 7 power off switch also works is there a similar solution for the camera and humidifier? |
@soulthiefer, this is an issue tracker, not a chat. ;) A separate issue should be created for a question about camera. |
got it, thanks again) |
Does it work on the master branch ? |
I made manual changes to the files that Zuz666 pointed out. viomi.waterheater.e1 works, no errors. |
@soulthiefer Upgrade to master branch again. |
@al-one im update integration in HACS , and the data is wrong again ((( Also there are errors in the logs Logger: custom_components.xiaomi_miot.water_heater Xiaomi_Waterheat Water Heater: Got miio properties ['washStatus', 'velocity', 'waterTemp', 'targetTemp', 'errStatus', 'hotWater', 'needClean', 'modeType', 'appointStart', 'appointEnd'] failed: {'code': -9998, 'message': 'user ack invalid'} |
now I copied only the file miio2miot_specs.py Logger: aiohttp.server Error handling request And 2: Logger: homeassistant.setup Setup failed for xiaomi_miot: unknown error |
I do not know all the features of your cool integration, I just found a place that leads to an error. Check out the post: #375 (comment) the problem is viomi.waterheater.e1 can only get one property by miIO local protocol. I have this device and I sometimes edit your integration to make it work, unfortunately, I can't find the time to issue a pull request yet. |
When i make manual changes that I wrote to the files init.py and in device_customizes.py: , then the integration works. But when i update this integration in hacs , integration not work again( can you write these this changes to the hacs integration files? |
Thanks, my mistake. Fixed now. |
Upgrade to master branch again. |
everything is working!!! Great !!! cool!!! thank you very much !!! |
Good evening! device viomi.waterheater.e1. does not show the current temperature and water-level. the current temperature is always 0 , water-level does not show anywhere at all. how to fix it, tell me please
The text was updated successfully, but these errors were encountered: