Hi,
I have an issue for which I cannot find a solution so far. I have a device (Profilux 4e) to which i can make tcp calls to get informations (code below). The thing is, I have to make seperate calls for each sensor information. I cannopt gather all the sensor informations in one call. When i create multiple sensors they get stuck due to already opened connection.
Does anyone has a solution for this?
#Profilux 4e Demo
sensor:
- platform: tcp
name: Aquarium temperature
host: 10.3.4.113
port: 10002
#timeout: 60
payload: "Get Sensor[0] ActValue\n"
value_template: "{{ value.split('<')[1].split('>')[0] | round(1) }}"
unit_of_measurement: "°C"
- platform: tcp
name: Aquarium PH
host: 10.3.4.113
port: 10002
#timeout: 60
payload: "Get Sensor[1] ActValue\n"
value_template: "{{ value.split('<')[1].split('>')[0] | round(1) }}"
unit_of_measurement: "PH"