Mqtt sensor configuration assistance

I’m sure you can help me :slight_smile:

I want to write certain values from the mqtt stats to sensors. Sometimes it works, sometimes not. Where is my error?

Here mqtt:

{“uptime”:7578802,“voltage”:3.40,“free memory”:65,“free heap”:25440,“wifi”:100,“mqtt reconnects”:1,“total reads”:1513,“good reads”:1511,“bad crc reads”:0,“bad header reads”:0,“too short reads”:0,“too long reads”:0,“timeout reads”:2,“version”:“Alpha-89e36b2”,“rules active”:18}

Here yaml:

Here Test: No Answer for Aquarea Stats Rules Active

You have an underscore in your value template where you need a space. Try this instead:

value_template: "{{ value_json['rules active'] }}"

Thanks for the hint, but no change :frowning:

Did you restart HA or reload YAML after making that change?

Yes, restart but have not delete the Dot. Now it runs!
Thank you very much :-))