Receiving MAX thermostats works, changing values doesn't

Begonnen von kennybl, 09 Oktober 2020, 19:40:13

Vorheriges Thema - Nächstes Thema

kennybl

Hello,

i am new to FHEM but I could get connection to all radiator thermostats. The problem now is that when I change the desired temperature from the radiator thermostat, FHEM shows the new temperature within a few seconds. When I change the temperature nothing happens.

I get these "errors" in the log so I think something is wrong?


2020.10.09 11:55:35 2: CUL_MAX_SendQueueHandler: Missing ack from 1xxx00 for 0f0000....
2020.10.09 12:55:35 2: CUL_MAX_SendQueueHandler: Missing ack from 1xxx02 for 0f0000....
2020.10.09 13:55:37 2: CUL_MAX_SendQueueHandler: Missing ack from 1xxx03 for 0f0000....
2020.10.09 14:55:35 2: CUL_MAX_SendQueueHandler: Missing ack from 1xxx04 for 0f0000....
2020.10.09 14:55:58 2: CUL_MAX_SendQueueHandler: Missing ack from 1xxx05 for 0f0000....
2020.10.09 15:55:36 2: CUL_MAX_SendQueueHandler: Missing ack from 1xxx06 for 0f0000....


AND


2020.10.09 18:14:33 2: CUL_MAX_SendQueueHandler: Not enough credit! credit10ms is 8, but we need 110. Waiting 102 seconds. Currently 2 messages are waiting to be sent.


I get more of these messages, this is just one of the log messages.
I did notice the time is wrong by 1 hour (wintertime probably), is this important?

Did I do something wrong?

BTW, i have used an Arduino with CC1101 to flash as a CUL

Wzut

I need a list of one HT and a list of your CUL_MAX device
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

kennybl

#2
Can I put the ID's here or do they need to be private?



#### CUL Definition, MAX!Cube
define CUL0 CUL /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@38400 1234
setuuid CUL0 5f709e33-f33f-c04f-a90b-xxxxxxxxxxxxxxxxx
attr CUL0 rfmode MAX
define cm CUL_MAX 123456
setuuid cm 5f709e36-f33f-c04f-f0be-xxxxxxxxxxxx
attr cm IODev CUL0
attr cm event-on-change-reading .*


### 2.1 Bedroom (Heating Thermostat)
define MAX_Sleepingroom1_Heating MAX HeatingThermostat 1beXXX
setuuid MAX_Sleepingroom1_Heating 5f706c62-f33f-c04f-61bf-XXXXXXXXXXXXXXXX
attr MAX_Sleepingroom1_Heating IODev cm
attr MAX_Sleepingroom1_Heating icon sani_heating
attr MAX_Sleepingroom1_Heating room sleepingroom1
define FileLog_MAX_Sleepingroom1_Heating FileLog ./log/MAX_Sleepingroom1_Heating-%Y.log MAX_Sleepingroom1_Heating
setuuid FileLog_MAX_Sleepingroom1_Heating 5f709e36-f33f-c04f-0c97-XXXXXXXXXXXXX
attr FileLog_MAX_Sleepingroom1_Heating icon heizung.0
attr FileLog_MAX_Sleepingroom1_Heating logtype text
attr FileLog_MAX_Sleepingroom1_Heating room MAX



This is copied from the FHEM wikipedia and updated with my own Serial Numbers but I'm not sure if this is good

amenomade

This is not a "list" of the devices, but a raw definition.

To get the list, just input "list <devicename>" in the command field of Fhem.
list CUL0
list MAX_Sleepingroom1_Heating


As you will see, there is much more information in a list as what you delivered.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

kennybl

list CUL0
Internals:
   CMDS       ABCEeFfGhiKklMmRTtUVWXxYZz
   CUL0_MSGCNT 1001
   CUL0_TIME  2020-10-09 21:20:16
   Clients    :CUL_MAX:HMS:CUL_IR:STACKABLE_CC:TSSTACKED:STACKABLE:
   DEF        /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@38400 1234
   DeviceName /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0@38400
   FD         11
   FHTID      1234
   FUUID      5f709e33-f33f-c04f-a90b-9b643896497ec70c
   NAME       CUL0
   NR         24
   NR_CMD_LAST_H 8
   PARTIAL   
   RAWMSG     Z0F0004601BDD750000000019002600CDEA
   RSSI       -85
   STATE      Initialized
   TYPE       CUL
   VERSION    V 1.67 nanoCUL868
   initString X21
Zr
Za123456
Zw111111
   MatchList:
     1:CUL_MAX  ^Z........................
     8:HMS      ^810e04....(1|5|9).a001
     D:CUL_IR   ^I............
     H:STACKABLE_CC ^\*
     M:TSSTACKED ^\*
     N:STACKABLE ^\*
   READINGS:
     2020-09-27 15:54:28   cmds             A B C E e F f G h i K k l M m R T t U V W X x Y Z z
     2020-10-09 20:55:55   credit10ms      155
     2020-10-09 21:20:16   state           Initialized
     2020-09-27 15:23:45   version         V 1.67 nanoCUL868
   XMIT_TIME:
     1602273313.18843
     1602273319.69222
     1602273326.19851
     1602273332.70674
     1602273336.2141
     1602273342.72269
     1602273349.23066
     1602273355.73898
Attributes:
   rfmode     MAX




list MAX_Sleepingroom1_Heating
Internals:
   DEF        HeatingThermostat 1be7D4
   FUUID      5f706c62-f33f-c04f-61bf-f09e82a9b2de3441
   IODev      cm
   LASTInputDev cm
   MSGCNT     273
   NAME       MAX_Sleepingroom1_Heating
   NR         38
   RSSI       -67
   STATE      22.0 °C
   TYPE       MAX
   addr       1be7d4
   backend    cm
   cm_MSGCNT  273
   cm_TIME    2020-10-09 19:55:14
   dstsetting 1
   mode       1
   rferror    0
   type       HeatingThermostat
   READINGS:
     2020-10-09 19:55:14   RSSI            -67
     2020-09-27 15:43:46   TimeInformationHour 0
     2020-10-09 19:55:14   battery         ok
     2020-10-09 19:55:14   batteryState    ok
     2020-10-09 19:55:14   desiredTemperature 22.0
     2020-09-27 15:46:20   groupid         0
     2020-10-09 19:55:14   mode            manual
     2020-10-09 19:55:13   msgcnt          67
     2020-10-09 19:55:14   panel           unlocked
     2020-10-09 19:55:14   rferror         0
     2020-10-09 19:55:14   state           22.0 °C
     2020-10-09 18:59:23   temperature     22.5
     2020-10-09 19:55:14   valveposition   37
   helper:
     io:
       CUL0:
         raw        Z0E4302021BE7D4123456000119252C
         rssi       -67
         time       1602269714.23095
   internals:
     interfaces thermostat;battery;temperature
Attributes:
   IODev      cm
   icon       sani_heating
   room       sleepingroom1

amenomade

And "list cm" as well please ;) Should be your CUL_MAX device as requested by Wzut
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

kennybl

Sorry, I just paste what you ask.


list cm:
Internals:
   CUL0_MSGCNT 1001
   CUL0_RAWMSG Z0F0004601BDD750000000019002600CD
   CUL0_RSSI  -85
   CUL0_TIME  2020-10-09 21:20:16
   DEF        123456
   FUUID      5f709e36-f33f-c04f-f0be-2f75121710bf0f2b
   IODev      CUL0
   LASTInputDev CUL0
   MSGCNT     1001
   NAME       cm
   NR         25
   STATE      Defined
   TYPE       CUL_MAX
   addr       123456
   cnt        0
   pairmode   0
   retryCount 0
   READINGS:
     2020-10-09 20:55:59   packetsLost     304
   sendQueue:
Attributes:
   IODev      CUL0
   event-on-change-reading .*

amenomade

I'm not asking for me, but for Wzut ;) I'm not a specialist of MAX

But the symptoms you have (reading the device ist possible but setting values does not work) often mean that your device is not correctly paired to the CUL_MAX device.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

kennybl

Thanks for your help so far, I will wait what Wzut says and probably start over again pairing the devices

Wzut

OK, this thread has a important history : https://forum.fhem.de/index.php/topic,114536.0.html
In your cm device you are using the MAXID 123456 , but 123456 is not the MAXID thats your Cube is using with MAXLAN !
In the other thread you wrote that you make a factory reset of a HT and you paired it with the cm device , I called it the "hard way"
Why wont you go the easy way ?

Did you reset all of your devices ?
if yes : you must now pair all devices with the cm device and your new 123456 ID. (hard way)
if no : please change the 123456 on the cm device to the right address from the Internal addr of MAXLAN. (easy way)

Is your old CUBE now powerd off and did you remove 00_MAXLAN from your config ?
   
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

kennybl

Thank you for the reply, I will start over again because I think I did it the wrong way.

I didn't reset the Max CUBE so I can do it the way you suggest, I hope I can figure out the exact good way.

Is there a way to reset FHEM to a complete new setup? Or do I need to delete all devices manually?

Wzut

#11
No please dont delete any of your normal devices e.g. HT , WT or Shutter Contakts !
Delete CUL and CUL_MAX , define MAXLAN again and check that everything works correct.
Write down the Internal addr of MAXLAN.
Power down the Cube delete the MAXLAN device and save & restart FHEM.
Define now the CUL and the CUL_MAX (cm) device with your correct ID.
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

kennybl

#12
Can i post all of my fhem.cfg here?
I think it is a mess and i am not sure if this won't cause any problem.

The Max Cube is disconnected now but i can reconnect it and start over, but i will do what you suggest.
Thanks for your help again



Would it be possible to give me a step by step explanation of what exactly to do?
Even Teamviewer would be an option but i understand if you don't want to do that ofcourse