diff --git a/doc/SunSpec_PICS-ABB-TRIO-50.0-TL-OUTD.xlsx b/doc/SunSpec_PICS-ABB-TRIO-50.0-TL-OUTD.xlsx deleted file mode 100644 index 9da92fd..0000000 Binary files a/doc/SunSpec_PICS-ABB-TRIO-50.0-TL-OUTD.xlsx and /dev/null differ diff --git a/doc/SunSpec_REACT2_PICS_Rev_003.xlsx b/doc/SunSpec_REACT2_PICS_Rev_003.xlsx deleted file mode 100644 index 9f3e585..0000000 Binary files a/doc/SunSpec_REACT2_PICS_Rev_003.xlsx and /dev/null differ diff --git a/doc/SunSpec_VSN300register_map.xlsx b/doc/SunSpec_VSN300register_map.xlsx deleted file mode 100644 index fda9e49..0000000 Binary files a/doc/SunSpec_VSN300register_map.xlsx and /dev/null differ diff --git a/doc/alfa-ha-modbus-configuration.yaml b/doc/alfa-ha-modbus-configuration.yaml new file mode 100644 index 0000000..206c31b --- /dev/null +++ b/doc/alfa-ha-modbus-configuration.yaml @@ -0,0 +1,135 @@ +modbus: + - name: Alfa + type: tcp + host: + port: 502 + sensors: + - name: Potenza Attiva Prelevata Istantanea + device_class: power + unit_of_measurement: W + state_class: measurement + data_type: uint16 + address: 2 + - name: Potenza Attiva Immessa Istantanea + device_class: power + unit_of_measurement: W + state_class: measurement + data_type: uint16 + address: 12 + - name: Potenza Attiva Prodotta Istantanea + device_class: power + unit_of_measurement: W + state_class: measurement + data_type: uint16 + address: 921 + - name: Energia Attiva Prelevata Totale + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 5 + - name: Energia Attiva Immessa Totale + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 15 + - name: Energia Attiva Prodotta Totale + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 924 + - name: Pot Att Prel Quart Media + device_class: power + unit_of_measurement: W + state_class: measurement + data_type: uint16 + address: 9 + - name: Pot Att Imm Quart Media + device_class: power + unit_of_measurement: W + state_class: measurement + data_type: uint16 + address: 19 + - name: Tot Energ Att Prel Giorno-1 F1 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 30 + - name: Tot Energ Att Prel Giorno-1 F2 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 32 + - name: Tot Energ Att Prel Giorno-1 F3 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 34 + - name: Tot Energ Att Prel Giorno-1 F4 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 36 + - name: Tot Energ Att Prel Giorno-1 F5 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 38 + - name: Tot Energ Att Prel Giorno-1 F6 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 40 + - name: Tot Energ Att Imm Giorno-1 F1 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 54 + - name: Tot Energ Att Imm Giorno-1 F2 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 56 + - name: Tot Energ Att Imm Giorno-1 F3 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 58 + - name: Tot Energ Att Imm Giorno-1 F4 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 60 + - name: Tot Energ Att Imm Giorno-1 F5 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 62 + - name: Tot Energ Att Imm Giorno-1 F6 + device_class: energy + unit_of_measurement: Wh + state_class: total_increasing + data_type: uint32 + address: 64 + - name: Fascia oraria corrente + data_type: uint16 + address: 203 + - name: Data evento + data_type: uint32 + address: 780 + - name: Tempo residuo distacco + data_type: uint16 + address: 782 \ No newline at end of file diff --git a/doc/distacco.yaml b/doc/distacco.yaml new file mode 100644 index 0000000..19b07ee --- /dev/null +++ b/doc/distacco.yaml @@ -0,0 +1,9 @@ +sensor: + - platform: template + sensors: + distacco: + friendly_name: "Avviso distacco" + value_template: > + {% if (states('sensor.data_evento') | int ) > 4294967294 %} Nessun avviso + {% else %} {{ (states('sensor.data_evento') | int + (states('sensor.tempo_residuo_distacco') | int)) | timestamp_local }} + {% endif %} \ No newline at end of file