Sonoff. 2 Entities as output in same entitie line

Hi.
Currently i have wifi signal strength listed in HA (hassio).
In the same line i want the SSID name, to be listed as well.
value_template: “{{ (value_json.Wifi.SSID) }}” + value_template: “{{ (value_json.Wifi.RSSI) }}”

What is the notation for that?

I am thinking that it should look something like this: (but it is still wrong notation)

Here is my working config for RSSI:

- platform: mqtt
  name: "WiFi kontor loft lys 10"
  state_topic: "tele/kontorloft/STATE"
  value_template: "{{ (value_json.Wifi.RSSI) }}"
  unit_of_measurement: "%"

And this is how i what it to look like:

Regards,

Kenneth

1 Like

I’m pretty sure what you want can be done with the custom-ui add on, but will probably still need to be two sensors to extract both pieces of into

Well. i did make another sensor for the AP info. And i grouped the info. It is a bit messy, but it works.

I still want the AP info in the same line, but i dont know the notation :confused:
Maybe, i will just leave it, as it is.

I still hope, that someone knows how to nest two json values in one value_template.

Here is the output from the Sonoff module:

15:34:41 MQT: tele/kontorloft/STATE = {"Time":"2018-03-05T15:34:41","Uptime":3,"Vcc":3.154,"POWER":"OFF","Wifi":{"AP":1,"SSId":"KL2_4GH","RSSI":82,"APMac":"40:A5:EF:22:E9:3B"}}

I found out that it is from the group, that i want to show the two entities:

sonoff_wifi_signal_strength:
  name: Sonoff wifi signal strength 
  entities:
    - {[sensor.ap_kontor_seng_lys_10],[ sensor.wifi_kontor_seng_lys_10]}

But the syntax is still wrong :roll_eyes: