KnatteAnka / NodeRED_ESPEASY_AutoDiscovery

Node to enable autodiscovery for EasyEsp without have the code on each device
GNU General Public License v3.0
13 stars 2 forks source link

New devices added to settings node and added state_class to main script #5

Open blb4github opened 2 months ago

blb4github commented 2 months ago

Hi, first of all thanks for this tool/flow!! it's a really good way to get auto discovery for own MQTT devices working!! I have to say it is a bit of a steep learning curve to start with the flow, a bit more explanation (can be in the flow itself with some comment nodes and/or on GitHub) would be great for new users.

I have added several devices to the setting node and also added the possibility to add state_class. (I'm using v 3.1.0 but the comment in the flow is still mentioning 3.0.2).

added to settings:

        {
            "ValueName": "energy",
            "Unit": "kWh",
            "Device_Class": "energy",
            "State_Class": "total_increasing"
        },
        {
            "ValueName": "illuminance",
            "Unit": "lx",
            "Device_Class": "illuminance"
        },
        {
            "ValueName": "co2",
            "Unit": "ppm",
            "Device_Class": "carbon_dioxide"
        },
        {
            "ValueName": "pm1",
            "Unit": "µg/m³",
            "Device_Class": "pm1"
        },
        {
            "ValueName": "pm25",
            "Unit": "µg/m³",
            "Device_Class": "pm25"
        },
        {
            "ValueName": "pm10",
            "Unit": "µg/m³",
            "Device_Class": "pm10"
        },
        {
            "ValueName": "uptime",
            "Unit": "min",
            "Device_Class": "duration"
        },
        {
            "ValueName": "load",
            "Unit": "%",
            "Device_Class": "power_factor"
        },
        {
            "ValueName": "rssi",
            "Unit": "dBm",
            "Device_Class": "signal_strength"
        },

Attached my settings and my main script. settings.json main_script.txt

KnatteAnka commented 2 months ago

:O its probobly that i missed update that info Will implement the list with the next release