Skip to content

Maximum Amp (Power) from grid on L1 or L2 or L3 setting #18267

Discussion options

You must be logged in to vote

To format code properly, copy it here, select all and press <>

Hope this is correct now

- name: grid
  type: custom
  power:
    source: http
    uri: http://YOURYOULESSIP/e
    headers:
      - content-type: application/json
    jq: .[0]|.pwr
  energy:
    source: http
    uri: http://YOURYOULESSIP/e
    headers:
      - content-type: application/json
    jq: .[0]|.p1+.p2
  currents:
    - source: http
      uri: http://YOURYOULESSIP/f
      headers:
        - content-type: application/json
      jq: if .l1 < 0 then -.i1 else .i1 end
    - source: http
      uri: http://YOURYOULESSIP/f
      headers:
        - content-type: application/json
      jq: if .l2 < 0 then -.i2 else .i2 end
   …

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mfuchs1984
Comment options

@mfuchs1984
Comment options

Comment options

You must be logged in to vote
5 replies
@mfuchs1984
Comment options

@mfuchs1984
Comment options

@VolkerK62
Comment options

@mfuchs1984
Comment options

@mfuchs1984
Comment options

Comment options

You must be logged in to vote
5 replies
@mfuchs1984
Comment options

@highendsyl
Comment options

@VolkerK62
Comment options

@mfuchs1984
Comment options

Answer selected by highendsyl
@highendsyl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants