Merge branch 'next' into rc

This commit is contained in:
Franck Nijhof 2023-03-29 22:19:05 +02:00
commit 74a41104bf
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
3 changed files with 1 additions and 89 deletions

View File

@ -84,6 +84,7 @@ Known supported devices:
- Marantz SR5015
- Marantz SR6007 - SR6012
- Marantz SR7007
- Marantz SR7010
- Marantz SR7012
- Marantz SR8015
- Marantz NR1504

View File

@ -18,7 +18,6 @@ This integration is limited to detect:
* [Bluesound speakers](/integrations/bluesound)
* [Bose Soundtouch speakers](/integrations/soundtouch)
* [Enigma2 media player](/integrations/enigma2)
* [Frontier Silicon internet radios](/integrations/frontier_silicon)
* [Linn / Openhome](/integrations/openhome)
* [SABnzbd downloader](/integrations/sabnzbd)
* [Yamaha media player](/integrations/yamaha)
@ -49,7 +48,6 @@ Valid values for ignore are:
* `bluesound`: Bluesound speakers
* `bose_soundtouch`: Bose Soundtouch speakers
* `enigma2`: Enigma2 media players
* `frontier_silicon`: Frontier Silicon internet radios
* `lg_smart_device`: LG Soundbars
* `openhome`: Linn / Openhome
* `sabnzbd`: SABnzbd downloader

View File

@ -840,93 +840,6 @@ void send_status_message()
}
```
## Notify
<div class='note warning'>
The Notify platform is deprecated and replaced with the [Text platform](#text).
</div>
Setting the `target` key in the service call will target the name of the MySensors device in Home Assistant. MySensors device names follow the notation: "[Child description]" or alternatively "[Sketch name] [Node id] [Child id]".
#### Notify automation example
```yaml
...
action:
service: notify.mysensors
data:
message: Welcome home!
target: "TextSensor 254 1"
```
The following sensor types are supported:
#### MySensors version 2.0 and higher
| S_TYPE | V_TYPE |
| ------ | ------ |
| S_INFO | V_TEXT |
#### Notify example sketch
```cpp
/*
* Documentation: https://www.mysensors.org
* Support Forum: https://forum.mysensors.org
*/
// Enable debug prints to serial monitor
#define MY_DEBUG
#define MY_RADIO_NRF24
#include <MySensors.h>
#include <SPI.h>
#define SN "TextSensor"
#define SV "1.0"
#define CHILD_ID 1
MyMessage textMsg(CHILD_ID, V_TEXT);
bool initialValueSent = false;
void setup(void) {
}
void presentation() {
sendSketchInfo(SN, SV);
present(CHILD_ID, S_INFO, "TextSensor1");
}
void loop() {
if (!initialValueSent) {
Serial.println("Sending initial value");
// Send initial values.
send(textMsg.set("-"));
Serial.println("Requesting initial value from controller");
request(CHILD_ID, V_TEXT);
wait(2000, C_SET, V_TEXT);
}
}
void receive(const MyMessage &message) {
if (message.type == V_TEXT) {
if (!initialValueSent) {
Serial.println("Receiving initial value from controller");
initialValueSent = true;
}
// Dummy print
Serial.print("Message: ");
Serial.print(message.sensor);
Serial.print(", Message: ");
Serial.println(message.getString());
// Send message to controller
send(textMsg.set(message.getString()));
}
}
```
## Remote
The following type combinations are supported: