commandline: - sensor: name: Raspberry Pi CPU Temperature command: "cat…
- User
command_line:
- sensor: name: Raspberry Pi CPU Temperature command: "cat /sys/class/thermal/thermal_zone0/temp" unit_of_measurement: "°C" value_template: "{{ (value | int / 1000) | round(1) }}" unique_id: raspberry_pi_cpu_temp_001
device_tracker:
- platform: bluetooth_le_tracker interval_seconds: 12 consider_home: 180 track_new_devices: true
shell_command: route_audio_to_bt: ssh -i /config/id_ed25519 -o StrictHostKeyChecking=no root@localhost 'bash /config/scripts/route_audio_to_bt.sh' route_audio_to_usb: ssh -i /config/id_ed25519 -o StrictHostKeyChecking=no root@localhost 'bash /config/scripts/route_audio_to_usb.sh' start_network_monitor: 'bash /config/scripts/network_monitor_once.sh'
Add your ESP32 sensor configuration here
sensor:
-
platform: rest name: ESP3232U Environmental Sensor resource: http://192.168.1.200/sensor scan_interval: 60 json_attributes:
- temperature
- humidity
- updated value_template: 'OK'
-
platform: template sensors: esp3232u_temperature: friendly_name: "ESP3232U Temperature" unique_id: esp3232u_temperature_sensor unit_of_measurement: "°C" value_template: "{{ state_attr('sensor.esp3232u_environmental_sensor', 'temperature') }}" device_class: temperature
esp3232u_humidity: friendly_name: "ESP3232U Humidity" unique_id: esp3232u_humidity_sensor unit_of_measurement: "%" value_template: "{{ state_attr('sensor.esp3232u_environmental_sensor', 'humidity') }}" device_class: humidity
wake_on_lan:
Create a switch that turns the PC on
switch:
- platform: wake_on_lan name: "HAMZAPC" mac: "98:AF:65:12:DE:73" host: "192.168.1.123" turn_off:
this is from my homeassistant's configuration.yaml. I want to add another wake_on_lan pc
- Assistant
To add another Wake-on-LAN (WOL) PC to your
configuration.yaml, you just need to add another switch entry under theswitch:section similar to the existing one forHAMZAPC.Your current configuration has:
yamlswitch: - platform: wake_on_lan name: "HAMZAPC" mac: "98:AF:65:12:DE:73" host: "192.168.1.123" turn_off:If you want to add another PC, for example named
OFFICEPCwith MAC address01:23:45:67:89:ABand IP192.168.1.124, then add it like this:yaml