Home assistant 118 Automations TTS and Playing media for alarm
Average Automation
Setting up some TTS automation in home assistant and also showing how to play sound files stored on the PI,
Updated Code for more than one remote.
platform: mqtt name: 'alarm ButtonS' state_topic: "tele/tasmota/RESULT" command_topic: "tele/tasmota/RESULT" value_template: '{{value_json.RfReceived.Data}}' payload_on: '2C4528' payload_off: '2C4524' state_on: "2C4528" state_off: "2C4524" retain: true
- platform: mqtt name: 'Alarm ButtonR' state_topic: "tele/tasmota/RESULT" command_topic: "tele/tasmota/RESULT" value_template: '{{value_json.RfReceived.Data}}' payload_on: '4E9C28' payload_off: '4E9C24' state_on: "4E9C28" state_off: "4E9C24" retain: true
Code For Code used for playing sound automation.
entity_id: media_player.living_room_speaker media_content_id: 'http://10.0.0.135:8123/local/Sounds/alarm.mp3' media_content_type: audio/mp3
Items used: Fixed code button 10 Pack https://www.banggood.com/custlink/DDGvMZ8HVE
Additional items used not shown in the video. Sonoff RF Bridge https://www.banggood.com/custlink/DGKKnwmNWb
Wireless door sensor with 2 codes https://www.banggood.com/custlink/vDvDN7GQdU
Pir Sensor https://www.banggood.com/custlink/Kvm3NTGbte
Ftdi Programer https://www.banggood.com/custlink/GmvmsfGN5p ... https://www.youtube.com/watch?v=1DfX6n_U_KI
67696297 Bytes