Plugin Domoticz-Palazzetti

Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
marcus_54
Messages : 425
Inscription : 28 févr. 2018, 12:15

Re: Plugin Domoticz-Palazzetti

Message par marcus_54 »

J'ai désinstallé le hardware...

j'ai autorisé la recherche de nouveaux équipements durant 5 min...

j'ai réinstallé le hardware...
J'ai les différents éléments qui sont apparus, ouf ! :)
Domoticz 2024.7
Domoticz sur RPI 4B+ : MQTT; MQTTMapper; Zigbee; RFlink DIY 433; Téléinfo; DS18B20; Capteur; compteur eau wmbusmeter, NanoLeaf...
marcus_54
Messages : 425
Inscription : 28 févr. 2018, 12:15

Re: Plugin Domoticz-Palazzetti

Message par marcus_54 »

Le poêle est un Vivienne avec 3 ventilations :
centrale, droite gauche
Ça peut se modifier dans le fichier python ?
Domoticz 2024.7
Domoticz sur RPI 4B+ : MQTT; MQTTMapper; Zigbee; RFlink DIY 433; Téléinfo; DS18B20; Capteur; compteur eau wmbusmeter, NanoLeaf...
skarab22
Messages : 101
Inscription : 14 nov. 2019, 09:18

Re: Plugin Domoticz-Palazzetti

Message par skarab22 »

Il faut regarder la correspondance entre les différentes sondes , ventilo via la commande cmd get+alls (je n'ai plus la syntaxe exacte mais on l'a trouve sur le forum jeedom).

Sur la page json, on voit la valeur des différents éléments du poêles. Reste plus qu'à les mettre dans le fichier python
marcus_54
Messages : 425
Inscription : 28 févr. 2018, 12:15

Re: Plugin Domoticz-Palazzetti

Message par marcus_54 »

Ok mais pas simple pour moi :?

Code : Tout sélectionner

{"INFO":{"RSP":"OK","CMD":"GET ALLS","TS":16xxxxxxx7},"SUCCESS":true,"DATA":{"PSENSCSTA":1,"F2LF":0,"PQT":1,"PWR":1,"CHRSTATUS":0,"FANLMINMAX":[0,5,0,5,0,5],"FDR":0,"F2V":0,"MOD":1268,"DPT":0,"APLWDAY":2,"MAC":"40:F3:85:xx:xx:xx","SETP":19,"APLTS":"2023-08-15 12:14:32","STATUS":0,"T3":19,"T1":125,"PUMP":0,"T5":22.7,"F1RPM":0,"SN":"LT2xxxxxxxxx","EFLAGS":1,"OUT":0,"T4":0,"F1V":0,"LSTATUS":0,"T2":22.9,"F3L":0,"PSENSLEMP":0,"F2L":0,"CORE":40,"F4L":0,"IN":9,"DP":7,"FWDATE":"2022-11-11","VER":6,"MBTYPE":0}}
Domoticz 2024.7
Domoticz sur RPI 4B+ : MQTT; MQTTMapper; Zigbee; RFlink DIY 433; Téléinfo; DS18B20; Capteur; compteur eau wmbusmeter, NanoLeaf...
marcus_54
Messages : 425
Inscription : 28 févr. 2018, 12:15

Re: Plugin Domoticz-Palazzetti

Message par marcus_54 »

Bonjour,
je me suis remis sur le plugin.

J'ai essayé de modifier le plugin en python pour ajouter les particularités de mon poêle qui à 3 ventilateurs par rapport au poêle du plugin d'origine qui n'en gère qu'un.

J'ai une erreur lors de la création d'un sélecteur de vitesse pour un ventilateur. (Ventilateur Bureau)

Code : Tout sélectionner

2023-10-24 11:14:10.945 Error: Poele: Device creation failed, Hardware/Unit combination (38:3) already exists in Domoticz
le vous mets la zone en question :

Code : Tout sélectionner

        if (len(Devices) != 15):
            # types / subtypes reference: https://github.com/domoticz/domoticz/blob/master/hardware/hardwaretypes.h
            # Image index for switches: Fireplace: 10, Fan: 7, Heating: 15, Generic: 
            
            # On/Off switch
            Domoticz.Device(Name="Marche Arret", Unit=self.__UNIT_ONOFF, TypeName="Switch", Image=10, Used=1).Create()
            
            # Power selector switch
            PowerSelectorOptions = {"LevelActions": "|||||",
                                    "LevelNames": "Off|1|2|3|4|5",
                                    "LevelOffHidden": "true",
                                    "SelectorStyle": "1"}
            Domoticz.Device(Name="Niveau Puissance", Unit=self.__UNIT_POWER, TypeName="Selector Switch", Image=10, Options=PowerSelectorOptions, Used=1).Create()
            
            # Fan speed selector switch
            FanSpeedSelectorOptions = {"LevelActions": "|||||||",
                                       "LevelNames": "Off|1|2|3|4|5|Auto|Hi",
                                       "LevelOffHidden": "false",
                                       "SelectorStyle": "1"}
            Domoticz.Device(Name="Ventilateur Salon", Unit=self.__UNIT_FAN2LEVEL, TypeName="Selector Switch", Image=7, Options=FanSpeedSelectorOptions, Used=1).Create()

            # Fan bureau speed selector switch
            FanSpeedSelectorOptions3 = {"LevelActions": "|||||",
                                       "LevelNames": "Off|1|2|3|4|5",
                                       "LevelOffHidden": "false",
                                       "SelectorStyle": "1"}
            Domoticz.Device(Name="Ventilateur Bureau", Unit=self.__UNIT_FAN3LEVEL, TypeName="Selector Switch", Image=7, Options=FanSpeedSelectorOptions3, Used=1).Create()
            
            # Setpoint
            Domoticz.Device(Name="Setpoint", Unit=self.__UNIT_SETP, Type=242, Subtype=1, Image=15, Used=1).Create()
            
            # Room Temperature
            Domoticz.Device(Name="Température Salon", Unit=self.__UNIT_TMP_ROOM, TypeName="Temperature", Used=1).Create()
            
            #  pellet counter
            Domoticz.Device(Name="Quantite de kg utilisés", Unit=self.__UNIT_PELLET_QTUSED, Type=113, Subtype=0, Switchtype=3, Used=1).Create()
      
            # Status code
            Domoticz.Device(Name="Code Etat", Unit=self.__UNIT_STATUS, TypeName="Text", Used=0).Create()
            
            # Status Label
            Domoticz.Device(Name="Etat", Unit=self.__UNIT_STATUSLABEL, TypeName="Text", Used=1).Create()
            
            # Timer On/Off switch
            Domoticz.Device(Name="Timer", Unit=self.__UNIT_TIMER_ONOFF, TypeName="Switch",Image=1,  Used=1).Create()
            
            # TMP_PELLET_BACKW
            Domoticz.Device(Name="Temperature Pellets", Unit=self.__UNIT_TMP_PELLET_BACKW, TypeName="Temperature", Used=0).Create()
            
            # TMP_EXHAUST
            Domoticz.Device(Name="Temperature Cheninée", Unit=self.__UNIT_TMP_EXHAUST, TypeName="Temperature", Used=0).Create()
            
            # __UNIT_FAN_FAN1V
            
            # __UNIT_FAN_FAN1RPM
            Domoticz.Device(Name="FAN_FAN1RPM", Unit=self.__UNIT_FAN_FAN1RPM, Type=243, Subtype=7 , Used=1).Create()

            # __UNIT_DP
            Domoticz.Device(Name="DP", Unit=self.__UNIT_DP, Type=243, Subtype=0x1F , Used=1).Create()
Domoticz 2024.7
Domoticz sur RPI 4B+ : MQTT; MQTTMapper; Zigbee; RFlink DIY 433; Téléinfo; DS18B20; Capteur; compteur eau wmbusmeter, NanoLeaf...
marcus_54
Messages : 425
Inscription : 28 févr. 2018, 12:15

Re: Plugin Domoticz-Palazzetti

Message par marcus_54 »

j'ai trouvé : j'avais mis me même numéro d'indicateur
__UNIT_FAN2LEVEL = 3 # FAN_FAN2LEVEL
__UNIT_FAN3LEVEL = 3 # FAN_FAN3LEVEL
Domoticz 2024.7
Domoticz sur RPI 4B+ : MQTT; MQTTMapper; Zigbee; RFlink DIY 433; Téléinfo; DS18B20; Capteur; compteur eau wmbusmeter, NanoLeaf...
Répondre