Open zibous opened 1 year ago
- CC1101 connection ok, but no telegram because the water meter is too far away.
In that case what should reported? I don't have any idea.
- CC1101 connection fails, There is only an error message if the CC1101 is not recognized. Is there a way to evaluate this via a sensor?
It could be possible. I can create another sensor called status.
- Is there a way to simulate the telegram w/o a connected CC1101?
wmbus: telegram: 1944A511780743434418A241150013CE0766324C94EE48EEF6C8
With current implementation - no. But maybe in future. But why you need this feature? It will send the same data again and again. Do you want to create dummy sensor with specific telegram or just dummy sensor with (pseudo)random data?
- is
platform: sntp
required ?
Yes, it is used by client. Time is required but you can use sntp or homeassistant. But I want to change it. When client is present in config then time is required otherwise time is not needed. I don't know (yet) is it feasible to do this.
Hi Leon,
Thanks for your time and replay.
In that case what should reported? I don't have any idea.
Would it not be possible to check in the void WMBusComponent::loop()
whether a telegram has arrived after a certain time has elapsed. If no telegram is evaluated in the specified time, a warning message appears.
This would show that everything was configured correctly, but no telegram was recorded (water meter too far away, source of interference or broken antenna)
wmbus:
telgram_present: 30s (default)
- I can create another sensor called status.
It's a good idea, so you could also find out if everything is ok. Would be great if there would be the status.
- Is there a way to simulate the telegram w/o a connected CC1101?
wmbusmeters offers the possibility to check the telegram. If this is known, then it would be easier to check the frontend and the configuration if everything was configured correctly.
Do you want to create dummy sensor with specific telegram or just dummy sensor with (pseudo)random data?
With Esphome or Homeassistant use an input text to insert the telegram and check it if there is a change or to simulate the telegram that comes from the CC1101.
platform: sntp: Yes, it is used by client. Time is required but you can use sntp or homeassistant.
Does the id
have to be exact time_sntp or does it only have to be - platform: sntp ?
Hi Leon,
Found and ordered a new CC1101 see: https://amzn.eu/d/fxQ0Ot2
In that case what should reported? I don't have any idea.
Would it not be possible to check in the
void WMBusComponent::loop()
whether a telegram has arrived after a certain time has elapsed. If no telegram is evaluated in the specified time, a warning message appears. This would show that everything was configured correctly, but no telegram was recorded (water meter too far away, source of interference or broken antenna)wmbus: telgram_present: 30s (default)
;-) You lived in perfect Izar world where watermeters are crazy and send data every 8 seconds. In normal world watermeter can be programed in different way and send data every 3-5 minutes and only in working days, etc So that telegram_present option is tricky.
- I can create another sensor called status.
It's a good idea, so you could also find out if everything is ok. Would be great if there would be the status.
So I have to read and think more about text_sensor and how to organize it in .py files
- Is there a way to simulate the telegram w/o a connected CC1101?
wmbusmeters offers the possibility to check the telegram. If this is known, then it would be easier to check the frontend and the configuration if everything was configured correctly.
Do you want to create dummy sensor with specific telegram or just dummy sensor with (pseudo)random data?
With Esphome or Homeassistant use an input text to insert the telegram and check it if there is a change or to simulate the telegram that comes from the CC1101.
I will think about this ...
platform: sntp: Yes, it is used by client. Time is required but you can use sntp or homeassistant.
Does the
id
have to be exact time_sntp or does it only have to be - platform: sntp ?
No. Only time component is required. Time source can be any type.
For example:
time:
- platform: sntp
or
time:
- platform: homeassistant
or
time:
- platform: gps
etc.
Hi Leon
Sounds good, I'm looking forward to the new version...
Hi Leon,
;-) You lived in perfect Izar world where watermeters are crazy and send data every 8 seconds. Yes agree, i can do this with ESPHOME with
on_time
and set thecc1101_state
on sensors:globals: - id: cc1101_state type: int restore_value: no initial_value: '0'
can create another sensor called status. So I have to read and think more about text_sensor and how to organize it in .py files
I would make a status code (like the alarm code) so that it can be translated into the desired language. I
t's a pity that no text sensor is needed for this one. I would like to have the one for the last_measure_date
.
No. Only time component is required. Time source can be any type.
Perfect. Good news.
simulate the telegram w/o a connected CC1101?
Pending
Hi Leon,
Are there more ways to test wmbus and CC1101?
CC1101 connection ok, but no telegram because the water meter is too far away.
CC1101 connection fails, There is only an error message if the CC1101 is not recognized. Is there a way to evaluate this via a sensor?
Is there a way to simulate the telegram w/o a connected CC1101?
is
platform: sntp
required ?see: https://github.com/SzczepanLeon/esphome-components#211-example-for-version-2x
Testcase: