Witam może ktoś pomoże…
Zakupiłem WI‑MEF‑3‑100A próbuję dodać to do HA niestety ja i restAPI to dwa światy
rest:
- resource: http://192.168.1.100/0000/get_current_parameters
name: current_parameters
method: GET
verify_ssl: false
scan_interval: 60 # opcjonalnie, aby okresowo odświeżać dane
sensor:
- platform: rest
name: Current Parameters
resource: sensor.current_parameters
json_attributes:
- status
- voltage
- current
- power_active
- power_reactive
- frequency
- power_factor
value_template: "{{ value_json.status }}"
To podaje mi API z http://192.168.1.100/0000/get_current_parameters
{
"status":"ok",
"voltage": [239.9, 239.5, 240.0],
"current": [0.47, 1.42, 1.54],
"power_active": [73.3, 250.6, 315.7],
"power_reactive": [-86.8, -229.5, 192.9],
"frequency": [49.971, 49.980, 49.971],
"power_factor": [-0.65, -0.74, 0.85]
}