Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG not detected : Zigbee Thaleos radiator TRV06 AVATTO Tuya-Vanne thermostatique intelligente #2435 #2457

Closed
4 tasks done
ciscolyon69 opened this issue Nov 4, 2024 · 4 comments

Comments

@ciscolyon69
Copy link
Contributor

ciscolyon69 commented Nov 4, 2024

Description

It is not detected #2435

Steps to reproduce

  1. add a new
  2. offer only zigbee_waterleak_sensor

Expected behaviour

avatto_trv06_radiatorvalve.yaml
"name": "Bureau",
"id": "bfee147eaefa55410cba3a",
"key": "7DA*?c6TN>kkk]#6",
"mac": "a4:c1:38:99:dc:f0:42:11",
"uuid": "a4c13899dcf04211",
"sn": "1001608330253D",
"category": "wkf",
"product_name": "TRV06UItra",
"product_id": "ow09xlxm",
"biz_type": 18,
"model": "ME167",

Additional context

2024-11-04 17:42:06.188 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.4
2024-11-04 17:42:11.640 WARNING (MainThread) [custom_components.tuya_local.config_flow] Adding Wireless Zigbee&BLE Gateway device with product id nqs9dfd15xhnykeg
2024-11-04 17:42:11.640 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches zigbee_waterleak_sensor with quality of 50%. DPS: {"updated_at": 1730738526.277745, "4": 80, "5": 170}
2024-11-04 17:42:11.641 WARNING (MainThread) [custom_components.tuya_local.config_flow] Include the previous log messages with any new device request to https://github.com/make-all/tuya-local/issues/

of course I check I have 2024.11.0 and

ll /config/custom_components/tuya_local/devices/avatto_trv06_radiatorvalve.yaml
-rw-r--r-- 1 root root 942 Nov 4 17:15 /config/custom_components/tuya_local/devices/avatto_trv06_radiatorvalve.yaml

Confirmation

  • I am sure this is a bug or improvement, that is well enough described that it can be implemented.

  • If this is for a specific device, the device config is mentioned above, or diagnostics are included.

  • Log messages or diagnostics relevant to the issue are included.

  • This is not requesting addition of a new device.

@ciscolyon69 ciscolyon69 added the bug Something isn't working label Nov 4, 2024
@make-all make-all added device improvement Improvement to an existing device config and removed bug Something isn't working labels Nov 4, 2024
@make-all make-all moved this to 🔖 Ready in Tuya Local Nov 4, 2024
@make-all make-all added the log provided Log of dps has been provided, though it is short of full info, so some guessing is needed label Nov 4, 2024
@ciscolyon69
Copy link
Contributor Author

I maid a new test
mv /config/custom_components/tuya_local/devices/zigbee_waterleak_sensor.yaml /config/billou/

2024-11-05 10:58:45.097 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.4
2024-11-05 10:58:50.461 WARNING (MainThread) [custom_components.tuya_local.config_flow] Adding Wireless Zigbee&BLE Gateway device with product id nqs9dfd15xhnykeg
2024-11-05 10:58:50.462 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 1730800725.1858404, "3": "closed", "4": 50, "5": 170}
2024-11-05 10:58:50.462 WARNING (MainThread) [custom_components.tuya_local.config_flow] Include the previous log messages with any new device request to https://github.com/make-all/tuya-local/issues/

Désolé, il n'y a pas de support pour cet appareil.

make-all added a commit that referenced this issue Nov 5, 2024
Only the two temperature ones seem to be consistently sent.

Issue #2457
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed log provided Log of dps has been provided, though it is short of full info, so some guessing is needed labels Nov 5, 2024
@make-all make-all moved this from 🔖 Ready to ✅ Done in Tuya Local Nov 5, 2024
@ciscolyon69
Copy link
Contributor Author

Thanks it work

 grep tuya_loc /root/tt
2024-11-05 15:29:37.857 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.4
2024-11-05 15:29:43.176 WARNING (MainThread) [custom_components.tuya_local.config_flow] Adding Wireless Zigbee&BLE Gateway device with product id nqs9dfd15xhnykeg
2024-11-05 15:29:43.176 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches avatto_trv06_radiatorvalve with quality of 100%. DPS: {"updated_at": 1730816978.003151, "2": "off", "3": "closed", "4": 50, "5": 170}
2024-11-05 15:29:43.177 WARNING (MainThread) [custom_components.tuya_local.config_flow] Include the previous log messages with any new device request to https://github.com/make-all/tuya-local/issues/
2024-11-05 15:30:05.994 INFO (SyncWorker_41) [custom_components.tuya_local.device] Creating device: a4c13899dcf04211
2024-11-05 15:30:06.005 INFO (MainThread) [homeassistant.components.lock] Setting up tuya_local.lock
2024-11-05 15:30:06.005 INFO (MainThread) [homeassistant.components.climate] Setting up tuya_local.climate
2024-11-05 15:30:06.009 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new lock.tuya_local entity: lock.bureau_securite_enfant
2024-11-05 15:30:06.009 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Bureau to 3.4
2024-11-05 15:30:06.014 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.tuya_local entity: climate.bureau_chauffage

@ciscolyon69
Copy link
Contributor Author

ciscolyon69 commented Nov 5, 2024

Koenkk/zigbee-herdsman-converters#8062 (comment)
can I get Battery frost_protection scale_protection ... ???

            [2, 'system_mode', tuya.valueConverterBasic.lookup({auto: tuya.enum(0), heat: tuya.enum(1), off: tuya.enum(2)})],
            [3, 'running_state', tuya.valueConverterBasic.lookup({heat: tuya.enum(0), idle: tuya.enum(1)})],
            [4, 'current_heating_setpoint', tuya.valueConverter.divideBy10],
            [5, 'local_temperature', tuya.valueConverter.divideBy10],
            [7, 'child_lock', tuya.valueConverter.lockUnlock],
            [28, 'schedule_monday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(1)],
            [29, 'schedule_tuesday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(2)],
            [30, 'schedule_wednesday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(3)],
            [31, 'schedule_thursday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(4)],
            [32, 'schedule_friday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(5)],
            [33, 'schedule_saturday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(6)],
            [34, 'schedule_sunday', tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(7)],
            [35, null, tuya.valueConverter.errorOrBatteryLow],
            [36, 'frost_protection', tuya.valueConverter.onOff],
            [39, 'scale_protection', tuya.valueConverter.onOff],
            [47, 'local_temperature_calibration', tuya.valueConverter.localTempCalibration2],

** how do i put logs only on avatto_trv06_radiatorvalve.yaml ? **

logger:
default: info
logs:
custom_components.tuya_local: debug
tail -f /config/home-assistant.log |grep tuya_local |grep -v -e "Dual meter" -e "sensor values" -e "Aubess energy monitor switch"

tail -f /config/home-assistant.log |grep "Bureau received"

[2024-11-05 17:30:05.382 DEBUG (MainThread) [custom_components.tuya_local.device] Bureau received {"7": false, "full_poll": false}
Bureau received {"2": "auto", "3": "opened", "4": 210, "5": 170, "7": false, "36": false, "full_poll": true}
Bureau received {"2": "off", "full_poll": false}
Bureau received {"3": "closed", "full_poll": false}
Bureau received {"2": "auto", "full_poll": false}
Bureau received {"2": "auto", "3": "closed", "4": 210, "5": 170, "7": false, "36": false, "full_poll": true}
Bureau received {"3": "opened", "full_poll": false}
Bureau received {"36": true, "full_poll": false}
Bureau received {"2": "auto", "3": "opened", "4": 210, "5": 170, "7": false, "36": true, "full_poll": true}
Bureau received {"5": 180, "full_poll": false}
Bureau received {"2": "auto", "3": "opened", "4": 210, "5": 180, "7": false, "36": true, "full_poll": true}
Bureau received {"47": 2, "full_poll": false}
Bureau received {"47": 0, "full_poll": false}
Bureau received {"2": "auto", "3": "opened", "4": 210, "5": 180, "7": false, "36": true, "47": 0, "full_poll": true}
Bureau received {"5": 130, "full_poll": false}
Bureau received {"47": 4, "full_poll": false}
Bureau received {"29": "AgYAAMgIAACgDAAA0g4AAKAQAADSFQAAgg==", "full_poll": false}
Bureau received {"5": 170, "full_poll": false}

i will try to improved

@ciscolyon69
Copy link
Contributor Author

I succeed and a check expect battery


  - entity: binary_sensor           
    class: battery                  
    category: diagnostic            
    dps:                            
      - id: 35                      
        type: bitfield              
        name: sensor                
        class: measurement          
        mapping:                    
          - dps_val: 0              
            value: false            
          - value: true             
  - entity: switch                  
    translation_key: anti_frost     
    category: config                
    dps:                            
      - id: 36                      
        type: boolean               
        name: switch                
        optional: true              
        mapping:                    
          - dps_val: null           
            value: false            
            hidden: true            
  - entity: switch                  
    name: Antiscale                 
    category: config                
    icon: "mdi:shimmer"             
    dps:                            
      - id: 39                      
        type: boolean               
        name: switch                
        optional: true              
        mapping:                    
          - dps_val: null           
            value: false            
            hidden: true            
  - entity: number                  
    name: Temperature calibration   
    category: config                    
    icon: "mdi:thermometer-check"   
    dps:                                  
      - id: 47                      
        type: integer
        optional: true              
        name: value                 
        unit: C                     
        range:                      
          min: -9                   
          max: 9                      

ciscolyon69 added a commit to ciscolyon69/tuya-local that referenced this issue Nov 5, 2024
@make-all make-all removed awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release device improvement Improvement to an existing device config labels Nov 7, 2024
@make-all make-all closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants