- Snímek obrazovky pořízený 2021-10-06 22-02-15.png (93.3 KiB) Zobrazeno 5669 x
- IMG_20211006_215950_442.jpg (910.08 KiB) Zobrazeno 5669 x
Kód: Vybrat vše
ads1115:
id: prvni
address: 0x48
ads1115:
id: druhy
address: 0x44
Kód: Vybrat vše
- name: "string 1 Volt"
id: pvu1
ads1115_id: prvni
multiplexer: 'A0_GND'
gain: 4.096
platform: ads1115
- name: "string 2 Volt"
id: pvu2
ads1115_id: prvni
multiplexer: 'A1_GND'
gain: 4.096
platform: ads1115
Kód: Vybrat vše
- platform: ina3221
address: 0x40
channel_1:
...........
- platform: ina3221
address: 0x44
channel_1:
....
Kód: Vybrat vše
filters:
- calibrate_linear:
- 0.132-> 0.000
- 3.111 -> 34.59
Kód: Vybrat vše
filters:
- calibrate_linear:
0.00-> 0.00
2.00 -> 40.00
Kód: Vybrat vše
output:
- platform: gpio
id: relay_set
pin: GPIO1 # TXD, may not be pulled low at startup (see datasheet ESP8266EX).
inverted: true
- platform: gpio
id: relay_reset
pin: GPIO2 # Do not pull low at startup.
inverted: true
switch:
- platform: template
name: "Wi-Fi switch"
id: wifiswitch
turn_on_action:
# Pulse the Set pin.
- output.turn_on: relay_set
- delay: 0.1s
- output.turn_off: relay_set
turn_off_action:
# Pulse the Reset pin.
- output.turn_on: relay_reset
- delay: 0.1s
- output.turn_off: relay_reset
# Use optocoupler state as switch state.
lambda: return id(optocoupler).state;
# Pushbutton & optocoupler.
binary_sensor:
- platform: gpio
name: "Wi-Fi switch pushbutton"
id: pushbutton
pin:
number: GPIO0 # Do not pull low at startup.
inverted: true
on_press:
then:
- if:
condition:
binary_sensor.is_on: optocoupler
then:
switch.turn_off: wifiswitch
else:
switch.turn_on: wifiswitch
- platform: gpio
name: "Wi-Fi switch optocoupler"
id: optocoupler
pin:
number: GPIO3 # RXD, the only ESP-01 pin that may be pulled low at startup.
inverted: true
Kód: Vybrat vše
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] mosquitto.sh: executing...
[18:48:51] INFO: SSL is not enabled
[cont-init.d] mosquitto.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[18:48:51] INFO: Starting NGINX for authentication handling...
[18:48:51] INFO: Starting mosquitto MQTT broker...
1634921331: mosquitto version 1.6.12 starting
1634921331: |-- *** auth-plug: startup
[18:48:52] INFO: Successfully send discovery information to Home Assistant.
[18:48:52] INFO: Successfully send service information to the Supervisor.
1634921331: Config loaded from /etc/mosquitto/mosquitto.conf.
1634921331: Loading plugin: /usr/share/mosquitto/auth-plug.so
1634921331: ├── Username/password checking enabled.
1634921331: ├── TLS-PSK checking enabled.
1634921331: └── Extended authentication not enabled.
1634921331: Opening ipv4 listen socket on port 1883.
1634921331: Opening ipv6 listen socket on port 1883.
1634921331: Opening websockets listen socket on port 1884.
1634921331: Warning: Mosquitto should not be run as root/administrator.
1634921331: mosquitto version 1.6.12 running
1634921331: New connection from 127.0.0.1 on port 1883.
1634921331: Socket error on client <unknown>, disconnecting.
1634921332: New connection from 192.168.1.129 on port 1883.
{"result": "ok", "data": {}}1634921332: New client connected from 192.168.1.129 as esp8266-02c8f4 (p2, c1, k15, u'karel').
1634921333: New connection from 172.30.32.1 on port 1883.
Kód: Vybrat vše
634921333: New client connected from 172.30.32.1 as 5DoqWiZ2ecxMNCPjB2dH5T (p2, c1, k60, u'karel').
1634921342: New connection from 192.168.1.120 on port 1883.
1634921342: New client connected from 192.168.1.120 as karel (p2, c1, k30, u'karel').
1634921398: New connection from 172.30.32.2 on port 1883.
1634921398: Socket error on client <unknown>, disconnecting.
1634921518: New connection from 172.30.32.2 on port 1883.
1634921518: Socket error on client <unknown>, disconnecting.
1634921559: New connection from 192.168.1.120 on port 1883.
1634921559: Client karel already connected, closing old connection.
1634921559: New client connected from 192.168.1.120 as karel (p2, c1, k30, u'karel').
1634921638: New connection from 172.30.32.2 on port 1883.
1634921638: Socket error on client <unknown>, disconnecting.
1634921758: New connection from 172.30.32.2 on port 1883.
1634921758: Socket error on client <unknown>, disconnecting.
1634921878: New connection from 172.30.32.2 on port 1883.
1634921878: Socket error on client <unknown>, disconnecting.
1634921998: New connection from 172.30.32.2 on port 1883.
Kód: Vybrat vše
logins: []
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
Kód: Vybrat vše
sensor:
- platform: template
sensors:
mainpowerl1:
friendly_name: "Main L1 Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.elektromer_energy_power').split(',')[0].strip('[') |int}}"
mainpowerl2:
friendly_name: "Main L2 Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.elektromer_energy_power').split(',')[1] |int}}"
mainpowerl3:
friendly_name: "Main L3 Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.elektromer_energy_power').split(',')[2].strip(']') |int}}"
mainpowertotal:
friendly_name: "Main Total Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.mainpowerl1')|int + states('sensor.mainpowerl2')|int + states('sensor.mainpowerl3')|int}}"
Kód: Vybrat vše
Tato entita ("sensor.mainpowertotal") nemá jedinečné ID, proto její nastavení nelze spravovat z uživatelského rozhraní. Další podrobnosti naleznete na stránce dokumentace.
Kód: Vybrat vše
Invalid config for [sensor.template]: Entity ID elektromer_mainpowertotal_muj is an invalid entity ID for dictionary value @ data['sensors']['mainpowertotal']['entity_id']. Got 'elektromer_mainpowertotal_muj'. (See ?, line ?).
Kód: Vybrat vše
Nebyly nalezeny žádné odpovídající statistiky
Kód: Vybrat vše
{
"voltage": 3.292,
"vMax": 3.38,
"vMin": 3.182,
"inttemp": 23,
"exttemp": -40,
"bypass": 0,
"PWM": 0,
"bypassT": 0,
"bpc": 0,
"mAh": 2415
}
Kód: Vybrat vše
- platform: mqtt
name: "DiyBMS Napětí baterie"
state_topic: "diybms/bank/0"
unit_of_measurement: "V"
value_template: "{{ value_json.voltage }}"
- platform: mqtt
name: "DiyBMS Článek 1"
state_topic: "diybms/0/0"
unit_of_measurement: "V"
value_template: "{{ value_json.voltage }}"
- platform: mqtt
name: "DiyBMS Článek 2"
state_topic: "diybms/0/1"
unit_of_measurement: "V"
value_template: "{{ value_json.voltage }}"
Kód: Vybrat vše
The system cannot restart because the configuration is not valid: Invalid config for [sensor.template]: [state_class] is an invalid option for [sensor.template]. Check: sensor.template->sensors->mainenergytotal->state_class. (See ?, line ?).
Mě to spadlo celý na: došla paměť... Virtualizace XEN... Ale nenapadlo mě si doteď, že to souviselo s časemringo píše:Taky vám dneska spadl panel energií? Mám tam spotřeby do 2:00 a pak prázdno. Předpokládám že to je nějaký bug související se změnou času.
Vmware esxi: homeassistant padl na OOM. A ja kdyz to nasel v konzoli, tak jsem si rikal ze to je nenazrane a jeste te virtualce 2giga ram prihodil
jdu si dat panaka na uspech..
Kód: Vybrat vše
sensor:
- platform: template
sensors:
mainpowerl1:
unique_id: "mainl1power"
friendly_name: "Main L1 Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.elektromer_energy_power').split(',')[0].strip('[') |int}}"
mainpowerl2:
unique_id: "mainl2power"
friendly_name: "Main L2 Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.elektromer_energy_power').split(',')[1] |int}}"
mainpowerl3:
unique_id: "mainl3power"
friendly_name: "Main L3 Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.elektromer_energy_power').split(',')[2].strip(']') |int}}"
mainpowertotal:
unique_id: "mainpowertotal"
friendly_name: "Main Total Power"
unit_of_measurement: 'W'
value_template: "{{ states('sensor.mainpowerl1')|int + states('sensor.mainpowerl2')|int + states('sensor.mainpowerl3')|int}}"
mainenergytotal:
unique_id: "mainenergytotal"
friendly_name: "Main Total Energy"
unit_of_measurement: 'kWh'
device_class: energy
value_template: "{{ states('sensor.elektromer_energy_total') |int}}"
Kód: Vybrat vše
The documentation doesn’t show the state_class option for legacy Template Sensor. My understanding is that the energy integration includes entities containing that option (and set to measurement). Without that option, the entity is excluded.
Easy way to find out is to convert one or more of your Template Sensors from legacy to the new format and add state_class: measurement.
Kód: Vybrat vše
template:
- sensor:
- name: "house_energy_kwh"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
state: >
{% set phase1 = states('sensor.elektromer_energy_power').split(',')[0].strip('[') |int %}
{% set phase2 = states('sensor.elektromer_energy_power').split(',')[1] |int %}
{% set phase3 = states('sensor.elektromer_energy_power').split(',')[2].strip(']') |int %}
{{ float(phase1) + float(phase2) + float(phase3) }}
attributes:
last_reset: '1970-01-01T00:00:00+00:00'
Kód: Vybrat vše
There is no data to show. It can take up to 2 hours for new data to arrive after you configure your energy dashboard.